Martin Schmitz ha scritto:
> Hello,
>
> is there a way in GT2.2.0 to convert UTM coordinates to a "degrees,
> minutes, seconds" format?
> I found several classes in the org.geotools.referencing.operation.*
> package, but I don't know, how to use them...
You can use the CRS class for setting up a transformation.
CoordinateReferenceSystem utm = CRS.decode("EPSG:32632"); // utm 32n
CoordinateReferenceSystem wgs84 = CRS.decode("EPSG:4326"); // lat/lon
MathTransform t = CRS.findMathTransform(utm, wgs84);
t.transform(...)
that would give you coordinates in lat/lon, but in decimal
degrees, not degrees, minutes, seconds. I don't know if we have a class
to perform the latter conversion, afaik JScience has something
thought.
Hope this helps
Cheers
Andrea
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users