Sorry to CC the list here - my original email to this user bounded (hopefully "kat" can pick things up here).
Sounds like your URL is not valid, normally url encodes blank spaces with a + character. Try navigating to the file using your web browser, and then cut and paste the URL from the web browser. Or open it as a "File" object in java and call the toURL method. Jody kat wrote: > > 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 > > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
