Hi all,
I am using the following code to find out the number of features in the
shapefile:
public static int getFeatureCount(String shapefilePath)
{
ShapefileDataStore shapefileDataStore = ...;
FeatureSource featureSource =
shapefileDataStore.getFeatureSource(shapefileDataStore.getTypeNames()[0]);
return featureSource.getCount(Query.ALL);
}
But it is very slow.
Are there more effective ways?
Thanks,
Sergey
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users