Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

How to covert Gauss-Kruger coordinates to UTM coordinates with GeoTools java library? As I have figured out the location (zone, country) is important. I need the calculation for Slovenia.

share|improve this question
How to covert UTM coordinates to Gauss-Kruger coordinates –  user21915 Sep 11 '13 at 20:10

1 Answer 1

up vote 3 down vote accepted

There is example code on using the GeoTools CRS module at http://docs.geotools.org/stable/userguide/examples/crslab.html which shows how to make the transformation if you know the EPSG codes of the two projections you want to use.

If you don't know the EPSG codes then you can look them up at http://spatialreference.org, if however the code you want doesn't have an EPSG code then you will need to look at http://docs.codehaus.org/display/GEOTDOC/01+CRS+Helper+Class to find an example of how to build a CRS from a WKT string (available from http://spatialreference.org or your shapefiles .prj file).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.