I have a dataframe which contains easting and northing columns from Sweden which cuts across 32 to 35 UTM zones

sweden_Utm_converted <- utm2lonlat(Sweden_MM$east, Sweden_MM$north, zone =33, hemisphere = "N") #convert easting and Northing columns to lat/long

but this code does not classify the dataframe into the 4 UTM zones coordinates might fall into and automatically converts the coordinates using the UTM zone 33

sample data

1224811 6534899
1302992 6528556
1300748 6432977
1415499 6514773
1415499 6514773
1223433 6540588
1291574 6560289
  • Do you have a field with the UTM zone?
    – aldo_tapia
    Commented Jul 17, 2023 at 12:39
  • no. I don't know the zone, but from a UTM map, I think it would between 32 and 35 for Sweden. Still not getting the expected lat/longs when I do the conversion though.
    – Stone Bee
    Commented Jul 17, 2023 at 12:40
  • That's unfortunate. Each UTM zone has 6 degrees of longitude in width, and the x coordinate is the distance between the position and the beginning of the position, so without the zone is mostly guessing
    – aldo_tapia
    Commented Jul 17, 2023 at 12:50
  • so is there no way to extract the zones from the UTM coordinates knowing the country they are in before doing the conversion to lat/long?
    – Stone Bee
    Commented Jul 17, 2023 at 12:57
  • Can you show us some of the numbers you do have, and where you expect them to be on the map? Or, if locations are sensitive, similar numbers?
    – Spacedman
    Commented Jul 17, 2023 at 13:02

1 Answer 1


If those coordinates are UTM zone 35, then according to the code in utm2lonlat, they should be here, mostly in Russia:

enter image description here

Zone 31 puts the points mostly in southern Sweden:

enter image description here

If all your points are in the same zone, and this looks like the right place for these points, then they will all be zone 31. If you have a mix of zones in your data with no indicator of which is which, then you'll have to guess or figure it out somehow, for example converting via all the reasonable zones and using the one that generates lat-longs nearest Sweden.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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