Jody Garnett wrote:
> Okay so I have started being able to patch these problems (and am
> getting more test cases to pass):
> 1. file.toURI()
> 2. check result; if it contains "+" symbols; unpack; replace; repack into URI
> 3. change to URL
> I am going to wrap this up in a DataUtilities method; this method
> should later take into account the windows \\host\share paths as well.

Wiki page! Wiki page!

Can you update or replace this page? You might need to make it more general.
http://docs.codehaus.org/display/GEOT/5.1.6+Converting+URLs+to+Files

The File/URL/URI debacle bites new and old developers alike.

-- 
Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au>
Software Engineer, CSIRO Exploration and Mining
Australian Resources Research Centre
26 Dick Perry Ave, Kensington WA 6151, Australia

------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to