Hi list,

I'm doing the following:

1: theShape = new File("/path/to/shape.shp");
2: DataStore store = new ShapefileDataStore(theShape.toURL());
3: FeatureSource features = store.getFeatureSource(store.getTypeNames()[0]);
4: FeatureCollection col = features.getFeatures().collection();
5: System.out.println("Grundstücke: " + col.size());

after executing line 3, the following warnings appear at the console:
09.01.2006 12:18:54 org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNUNG: projection (.prj) for shapefile not available
09.01.2006 12:18:54 org.geotools.data.shapefile.ShapefileDataStore openPrjReader
WARNUNG: projection (.prj) for shapefile not available

yes, they appear twice...

before finishing line 4, it throws the following:
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: Java heap space

Line 5 is never reached.

Does that mean that the shapefile is simply too big? What can I do to avoid the warnings, or don't they effect me anyways?

greetings
Bernhard


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to