Simon Sandlund created GEOT-4090:
------------------------------------
Summary: Features missing when importing shapefile
Key: GEOT-4090
URL: https://jira.codehaus.org/browse/GEOT-4090
Project: GeoTools
Issue Type: Bug
Components: shapefile plugin
Affects Versions: 8.0-M4
Reporter: Simon Sandlund
Assignee: Andrea Aime
Attachments: geotools-shape-test.zip
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!
Results :
Failed tests:
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
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel