|
From: Markus I. <mar...@in...> - 2008-02-25 10:42:12
|
Hi all,
I am trying to read features from a shape file. When the iterator
arrives at the last item (id="l10a_nodes.41") I got that underflow
exception.
Any idea what that might be? Sources and code are included in the
attached file (to be renamed to a zip extension)
Using: Geotools version: 2.4.0
P.S. the shapefile was created originally with oracle spatial
Feature[ id=l10a_nodes.41 , the_geom=POINT (676871.250197
5151902.070055) , NODE_ID=95.0 , NAME=Merano , NAME_D=Meraner Stra?e ]
Exception in thread "main" java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Buffer.java:480)
at java.nio.DirectByteBuffer.getDouble(DirectByteBuffer.java:893)
at
org.geotools.data.shapefile.shp.ShapefileReader.nextRecord(ShapefileReader.java:464)
at
org.geotools.data.shapefile.ShapefileDataStore$Reader.next(ShapefileDataStore.java:1310)
at org.geotools.data.FIDFeatureReader.next(FIDFeatureReader.java:92)
at
org.geotools.data.store.FeatureReaderIterator.next(FeatureReaderIterator.java:64)
at MovingPointBuilder.<init>(MovingPointBuilder.java:47)
at MovingPointBuilder.main(MovingPointBuilder.java:70)
thanks for any help
Markus
|