> I added the new ShapefileDataStore(file.toURI()) section, but when
> selectting the toURI i get an error of a cannot find symbol message. I also
> noticed that URL is deprecated which i understand programmers should avoid
> using.  Although, when i do add this, i get a line going through the words
> of toURL

OK, you must be using Java 6.  Do this...

File f = ...
URL url = f.toURI().toURL();

http://java.sun.com/javase/6/docs/api/java/io/File.html#toURL()

Michael

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to