Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] url to file and the magic of C:\

A couple of the conversations on the list lately have been concerning things not working when on windows drives other than C:

I found the following code in AbstractRasterService:
AbstractGridFormat frmt = (AbstractGridFormat) getFormat();
URL id = getIdentifier();
if( id.toExternalForm().startsWith("C:/")){
    id = new URL("file:///"+id.toExternalForm());
}
this.reader = frmt.getReader(getIdentifier());
I wonder if it is the source of some of our problems? Does anyone have suggestions on what we can do better here?

Jody


Back to the top