We are trying to figure out a way to tell GeoTools to not use "strict"
checking when reading our shapefiles.  We get the error
"java.io.IOException: Wrong version, expected 9994, got 1001".  Can anyone
advise?  We are on GeoTools 2.7.0.1.

Here is a stack with code snippets.  If we set the strict tag below from
true to false, it would solve our problem.  Is there a way we can do this
without changing code?  Thanks!


ShapefileHeader.read(ByteBuffer, boolean) line:91
--checkVersion(strict);

ShapefileReader.init(boolean, GeometryFactory) line: 353
header.read(buffer, strict);

ShapefileReader.<init>(ShpFiles, boolean, boolean, GeometryFactory) line:
246
--init(strict, gf);

ShapefileDataStore.openShapeReader(GeometryFactory) line: 529
--return new ShapefileReader(shpFiles, *true*, useMemoryMappedBuffer, gf);

ShapefileDataStore.readAttributes() line: 756
--ShapefileReader shp = openShapeReader(new GeometryFactory());

ShapefileDataStore.getSchema() line: 714
--List<AttributeDescriptor> types = readAttributes();

ShapefileDataStore(AbstractFileDataStore).getFeatureSource() line: 75
--return getFeatureSource(getSchema().getTypeName());

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/ShapefileHeader-checkVersion-problem-question-tp6870118p6870118.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to