Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpatialIndexHandler::checkSpatialIndexEntries does not work for shape files with "empty" records #46

Open
cmadsen opened this issue Jul 10, 2018 · 0 comments

Comments

@cmadsen
Copy link
Contributor

cmadsen commented Jul 10, 2018

The code in SpatialIndexHandler::checkSpatialIndexEntries assumes the length of spatialIndex and bufferedList are equal:

        Iterator<?> entryIt = spatialIndex.entryIterator();
        Iterator<?> omgIt = bufferedList.iterator();
        while (entryIt.hasNext() && omgIt.hasNext()) {

but when the shape file contains empty records this is not the case.

This is only a problem if buffered is set to true in SpatialIndexHandler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant