The only change I made to shapefile was to add Character set to it. So what I guess is happening is that the Shapefile does not use the same Charset as you have set up as the default on your computer. Try manually setting the charset to... What was the default before. It was an ISO 1XXXXX something.

Jesse

On 8-Sep-08, at 10:25 PM, Jan Jezek wrote:

Hi,

does any one can help why below code doesn't work with uDig 1.1 SC1 (it worked with RC14) ?

     FeatureSource source = (FeatureSource) sourceLayer
               .getResource(FeatureSource.class, null);

FeatureCollection collection = new MemoryFeatureCollection(source
                   .getSchema());

         collection.addAll(source.getFeatures());

it woks in the case that 'sourceLayer' is PostGIS or Layer in Memory. When it is shapefile it throws:

java.lang.IndexOutOfBoundsException
        at java.nio.Buffer.checkIndex(Buffer.java:514)
        at java.nio.HeapCharBuffer.get(HeapCharBuffer.java:121)
at org .geotools .data.shapefile.dbf.DbaseFileReader.readObject(DbaseFileReader.java: 444) at org.geotools.data.shapefile.dbf.DbaseFileReader.access $100(DbaseFileReader.java:70) at org.geotools.data.shapefile.dbf.DbaseFileReader $Row.read(DbaseFileReader.java:75) at org.geotools.data.shapefile.indexed.IndexedShapefileDataStore $Reader.read(IndexedShapefileDataStore.java:1306) at org.geotools.data.FIDFeatureReader.readFeature(FIDFeatureReader.java: 123)
        at org.geotools.data.FIDFeatureReader.next(FIDFeatureReader.java:95)
at org .geotools .data.store.FeatureReaderIterator.next(FeatureReaderIterator.java:65) at org .geotools .feature .collection .AbstractResourceCollection.addAll(AbstractResourceCollection.java: 233)
.....

I understand that it is probably GeoTools issue but you may know what has happened there.

Thanks,
Jan.
______________________________________________________________
Od: [EMAIL PROTECTED]
Komu: User-friendly Desktop Internet GIS <[email protected] >
Datum: 08.09.2008 21:59
Předmět: Re: [udig-devel] uDig 1.1 SC1

Thanks Jody, I have removed the build from 1.2 It obviously wasn't supposed to be there... Although why it was so big... Scary :)

As for putting it out to a larger base. I will probably tomorrow. But I am a little overbooked and I want a second opinion before I put it out.

Jesse

On 8-Sep-08, at 8:09 PM, Jody Garnett wrote:

There are two SDKs in there; one is massive weighing in at 140 megs; > what is it about?
Jody

Jesse Eichar wrote:
I have created a new Release which I am dubbing SC1 Sanity Check >> 1. It works with all the plugins that I have downloaded from the >> update sites... Although I don't know how to use all of them :). I >> have posted it online as an unofficial release until the usual >> suspects have downloaded it out and made sure it doesn't completely >> go crazy.

Jesse

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to