From: David A. <da...@ri...> - 2006-11-08 11:56:18
|
I'm not sure why you commented about the DBF files. The new Spearfish demo has all of the components of the shapefiles. What I probably forgot to highlight is that you need to modify the spearfish.properties file to point to where the shapefiles reside. It is actually called 'sldpath' in the properties file and is currently setup for my Windows environment. Each shapefile has an associated .sld file. I haven't actually tried running on Linux. Regards, David At 03:16 AM 11/8/2006, Andrea Aime wrote: >Gabriella Turek ha scritto: > > OK, I got it to run (simple matter of replacing hardcode file separator > > with File.separator in code), but it still does not run. > > I am running it with out a DB > > gaby > > > > /home/turekg/dev/java/tools/gtexamples/spearfish22/shapefiles/archsites.shp > > java.io.EOFException: Premature end of file > > at > > > org.geotools.data.shapefile.dbf.DbaseFileHeader.read(DbaseFileHeader.java:98) > > at > > > org.geotools.data.shapefile.dbf.DbaseFileHeader.readHeader(DbaseFileHeader.java:459) > > at > > > org.geotools.data.shapefile.dbf.DbaseFileReader.<init>(DbaseFileReader.java:129 > > > >The shapefile data store simply does not work without a dbf file >around... a proper shapefile by spec is a three files set, .shp, .shx >and .dbf, with one record in the dbf for each shape. >It would be possible to write the datastore to work without the .dbf >file around, but no-one has really cared to do so, so far... > >Cheers >Andrea > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Geotools-gt2-users mailing list >Geo...@li... >https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users |