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.

I'd like to use Proj(4j) to convert between UTM and Lat/Long coordinates.

I used to use JScience for UTM <-> LatLong conversions like this:

UTM.latLongToUtm(latlong, ReferenceEllipsoid.WGS84);
UTM.utmToLatLong(coordinate, ReferenceEllipsoid.WGS84);

But I would like to accomplish this using Proj4j. So I'm currently having set up two CoordinateReferenceSystems:

CRS_FACTORY.createFromParameters("EPSG:4326", "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs");
CRS_FACTORY.createFromParameters("?", "+proj=utm +? +zone=?);

Where I don't know how to fill up the ? gaps.

Why do I have to specify a zone-parameter? Is there a way to accomplish the same above in JScience using proj4j?

share|improve this question

2 Answers 2

Newer used JScience, but in PostGIS/FME/Proj4 enviroment it works something like this...

See UTM zones http://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system and http://www.dmap.co.uk/utmworld.htm

You select UTM zone depending which area you want to be moust accurate. For an example if you you zone 35 with data from Asia you will have lot of distortion.

first ? can be EPSG code http://spatialreference.org/ref/epsg/?search=UTM second ? no idea third is zone

share|improve this answer
Thank you very much. But that means you basically can't because JScience is using some formulas found in earth-info.nga.mil/GandG/publications/tm8358.2/TM8358_2.pdf ( Defense Mapping Agency Technical Manual 8358.2.) which "automatically" determine the UTM zones. (java.net/projects/jscience/sources/svn/content/tags/V4_3_1/src/… JScience UTM) ??? –  implicit_knowledge Sep 11 '12 at 13:10
Here's a way to compute the zones from latitude/longitude (gis.stackexchange.com/questions/13291/…), but I still need to assign a EPSG code. How can I get the code for a specific zone (is there a pattern), or is there a general EPSG code I can use with the -zone attribute? –  implicit_knowledge Sep 11 '12 at 13:54
i have seen proj4 string without epsg parts. Have you tried use just "+proj=utm +zone=xx" ? –  simplexio Sep 12 '12 at 6:23

If you're using WGS84, for a northern hemisphere zone, concatenate 326 + zone number. For a southern hemisphere zone, concatenate 327 + zone number. The 326 comes from 4326, the code for a 2D WGS84.

So for zone 30N, 32630.

There are a few other drop-first-integer-and-concatenate-zone-number, but none as complete as WGS84. Others, like NAD83, the first zones added follow the same convention but later ones do not.

I should have made this a comment on simplexio's answer--vote for that answer!

share|improve this answer
Thanks a lot, I'd like to upvote both of you, but unfortunately I don't have enough reputation. –  implicit_knowledge Sep 13 '12 at 12:39

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.