[udig-devel] Class IGeoResourceInfo
iomeneandrei
aborruso at tin.it
Thu May 29 07:43:19 PDT 2008
Hi Jesse,
Jesse Eichar-2 wrote:
>
> I think we use to WKT to display the crs information.
>
I have modified my code, and I have inserted "toWKT":
public String getCRS(ILayer l){
String s_crs="";
IGeoResource resource = l.getGeoResource();
try {
IGeoResourceInfo info = resource.getInfo( new
NullProgressMonitor() );
CoordinateReferenceSystem crs=info.getCRS();
s_crs = crs.toString();
System.out.println("WKT:\n"+crs.toWKT()+"****************\n");//qui
System.out.println("wkt2:");
System.out.println(info.getCRS().toWKT());
} catch (IOException e) {
e.printStackTrace();
}
return s_crs;
}
I have always a difference between what I'm able to read in UDig and what
Eclipse read for the some layer.
Do you know why?
Thank you,
Andrea
-----
Andrea Borruso
----------------------------------------------------
email: aborruso at tin.it
blog: http://blog.spaziogis.it
----------------------------------------------------
--
View this message in context: http://www.nabble.com/Class-IGeoResourceInfo-tp17532399p17536257.html
Sent from the udig-devel mailing list archive at Nabble.com.
More information about the udig-devel
mailing list