Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Proposed change to URLUtils

Please ignore I am going to try to follow the instructions on the wiki on how to make a change.

On Wed, Nov 17, 2010 at 3:08 PM, Justin Lynch <jlynch@xxxxxxxxxxxxxx> wrote:
In plug-in 'net.refractions.udig.catalog' package 'net.refractions.udig.catalog' file URLUtils.java 

in function urlEquals -which starts at about line 47. 

Currently has:

66 String string1 = URLUtils.urlToString(url1, stripRef);
67 String string2 = URLUtils.urlToString(url2, stripRef);
   
I propose changing it to:

66 String string1 = URLUtils.urlToString(url1, stripRef).replace("%20", " ").toLowerCase();
67 String string2 = URLUtils.urlToString(url2, stripRef).replace("%20", " ").toLowerCase();

This fixes a lot of the problems I run into with spaces and fixes where a shapefile gets added to the catalog with capital drive letter and then something trys to load it using a lowercase drive letter. The only downside I can see is if you are on a *nix box and someone really wants to have different shapefiles with the same name and only capitalization differences, something that seems silly to do and impossible on at least windows.  

Thank you for your time,
Justin Lynch



Back to the top