In my java application, I'm using geotools to read shapefiles.
The following code shows how I am reading the shapefile
Map<String, Serializable> connectParameters = new HashMap<String,
Serializable>();
connectParameters.put("url", shapeFile.toURI().toURL());
connectParameters.put("create spatial index", true);
ShapefileDataStore dataStore = (ShapefileDataStore)
DataStoreFinder.getDataStore(connectParameters);
// do some more stuff with the datastore
This works. However, on my linux build server, I have multiple processes
running. They are both running this code, but they are accessing different
shapefiles (the shapefiles are actually the same but in different locations -
each copy of the build checks out its own local copy of the files).
When both builds are running at the same time, the build just fails with no
real error message while trying to read the shapefile, and I have no idea why.
My only guess is that there is some shared configuration that the geotools
library is writing to that is causing this, but I cannot seem to figure it out.
I have changed the location of EPSG-HSQL.directory but didn't know if there
were more locations that geotools reads/writes.
Any ideas why this is happening?
Thanks,
Jeff
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users