From: Simon Sandlund (JIRA) <jira@co...> - 2012-03-26 14:06:13
Simon Sandlund created GEOT-4090:
Summary: Features missing when importing shapefile
Issue Type: Bug
Components: shapefile plugin
Affects Versions: 8.0-M4
Reporter: Simon Sandlund
Assignee: Andrea Aime
We've had reports of shapefiles not being completely imported into our system (no error message but more than 50% of the features missing). Notably, QGis handles these files fine. I've attached some test data and created a small test case. It shows that the FeatureCollection returned does contain the correct number of features, except that many of them are null values! This is the output I'm getting:
Found 2272 features.
Iterated through 418 features using FeatureIterator.
Iterated through 2272 features using Array. Found 1854 nulls.
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.64 sec <<< FAILURE!
testShapeIO(org.geotools.testcase.TestShapeIO): Nulls found!
We were using the FeatureIterator and didn't even notice that features we're missing until we had it reported to us.
The test case should be runnable by typing:
$ mvn test
Any idea what's going on? Like I said QGis seems to handle the data fine. The test case has some code commented out for exporting whatever geotools reads from the shapefile. Opening this export alongside the shapefile import.shp in QGis clearly illustrates the missing features.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
Get latest updates about Open Source Projects, Conferences and News.