Hi, i'm with problems reading shapefiles and then save the edited shapefile
in the same directory (URL).

The major problem that I have already identified is when I get the features
from the shape with:

 

connectParameters.put("url", this.file.toURI().toURL());

                  connectParameters.put("create spatial index", true);

                  DataStore dataStore = DataStoreFinder

                             .getDataStore(connectParameters);

 

                  String[] typeNames = dataStore.getTypeNames();

                  String typeName = typeNames[0];

 

                  this.featureSource = dataStore.getFeatureSource(typeName);

 

Because after I call this method "dataStore.getFeatureSource(typeName);"
Some of the shapefile files cannot be deleted or moved because they are in
use by some process. I think is the DataStore but I don't now how to stop it
or close the access to the shapefile.

 

I want to know if there is any method to read features from one shapefile
and then free the access to the shape files, so then I can write the new
shape in the same URL.

 

Thks

 

 

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to