Re: [Geotools-devel] Thoughts about ShapefileDataStore.isLocal

2009-09-08 Thread Andrea Aime
Stefan Krüger ha scritto: > At the moment an index is only used when it's a "file://" URL. > Is there a reason to only use indexes when we are really local? > Is there a reason to only use indexes when we the shapefile is writable? Index access is performed exclusively via NIO, channels, and us

[Geotools-devel] Thoughts about ShapefileDataStore.isLocal

2009-09-08 Thread Stefan Krüger
Hi I think the naming and usage of ShapefileDataStore.isLocal() aka ShpFiles.isLocal() is not consistant. The JavaDoc says: "Determine if the location of this shapefile is local or remote." But it would return false for http://localhost/some.shp and for jar://some.jar!some.shp and for jar:/