invalid shapefile DBF header Arc9.2
-----------------------------------

                 Key: GEOT-1386
                 URL: http://jira.codehaus.org/browse/GEOT-1386
             Project: GeoTools
          Issue Type: Bug
          Components: data shapefile
         Environment: Windows Server 2003, Apache 2, Tomcat 5.5, Java 5
            Reporter: S. Scott
            Assignee: Jesse Eichar
         Attachments: usdm070307.zip

We are using GeoTools to automatically update a MySQL database for a set of 
shapefiles each week. We updated our desktop software to ArcGIS 9.2 (for the 
shapefile editing and creation) but haven't modified the web application in 
well over a year. About 4 months ago, the GeoTools update started to fail with 
the following error message:

java.io.IOException: Unsupported DBF fileType 47
at 
org.geotools.data.shapefile.dbf.DbaseFileHeader.readHeader(DbaseFileHeader.java:418)
at 
org.geotools.data.shapefile.dbf.DbaseFileReader.<init>(DbaseFileReader.java:144)
at 
org.geotools.data.shapefile.dbf.DbaseFileReader.<init>(DbaseFileReader.java:125)
at 
org.geotools.data.shapefile.ShapefileDataStore.openDbfReader(ShapefileDataStore.java:456)
at 
org.geotools.data.shapefile.ShapefileDataStore.readAttributes(ShapefileDataStore.java:597)
at 
org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:557)
at 
org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:551)
at 
org.geotools.data.shapefile.ShapefileDataStore.getFeatureSource(ShapefileDataStore.java:797)
at 
com.gisworkshop.drought.servlet.DroughtMonitor.clipShapefiles(DroughtMonitor.java:363)

We haven't changed anything about how the shapefiles are made or delivered 
other than upgrading to Arc 9.2. And, as far as we have been able to determine, 
no one else is having any issues with the files. A set of shapefiles that 
failed is attached. Any information, even if it's confirmation that GeoTools 
can read the shapefiles, is much appreciated as the error message outlined 
above is the only information we can get from the sysadmin (no access to the 
source code, no idea which version of GeoTools). 

Thank you.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to