Hello,

I use gt2-2.4.4 and found the following lines in 
ArcGridReader.getCoordinateReferenceSystem(), wenn the CRS should be 
interpreted from the .prj file:

if (source instanceof File || (source instanceof URL && (((URL) 
source).getProtocol() == "file"))) {
...
}

Unfortunately this code fails, when the ascii raster is loaded from 
inside a JAR file. In this case the protocol is "jar" (not "file"), so 
the .prj file is not used and a warning "Unable to find crs, continuing 
with default WGS4 CRS" occurs.

I don't know why the condition ((URL) source).getProtocol() == "file" is 
necessary. Maybe someone can fix this in the next release...

Kind regards

Martin



-------------------------------------------------------------------------
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