|
From: Jan G. <gre...@gm...> - 2006-10-09 12:56:30
|
hello,
I'm using following code to get features from shapefile. Problem is
that that it depends on dbf file and I don't want to depend on bad dbf
file. Last case is two columns (in dbf) with same name, following code
generates java.lang.IllegalArgumentException ...
thanks, Jan
URL shapeURL = new java.io.File(shpFile).toURL();
ShapefileDataStore store = new
ShapefileDataStore(shapeURL);
String name = store.getTypeNames()[0];
FeatureSource source = store.getFeatureSource(name);
fsShapes = source.getFeatures();
|