geotools

View: New views
1 Messages — Rating Filter:   Alert me  

geotools

by kat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, I am having problems using geotools. When I try to access to the feature source of a shapefile that is specified by an url with blank spaces, the method below (getFeatureSource) throws an exception "FileNotFoundException". So I can not visualize shapefiles that have an url with blank spaces. But if I try to access to a file specified by a path that have directories with a name made of blank spaces it access perfectly.
Does anybody know why it happens? Or if this is a bug of geotools...

          final DataStore store = new ShapefileDataStore(url);                      
          final FeatureSource features = store.getFeatureSource(store.getTypeNames()[0]);  ----> This method throws the exception

Thanks in advance!!
kat