NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

-3
1

I have some coordinates in datum REGCAN95, and I want to know how to convert them to something usable in OpenStreetMap.

I have found that REGCAN95 uses the EPSG codes as follows:

  • 4082 REGCAN95 for UTM 27
  • 4083 REGCAN95 for UTM 28

For example I have the coordinate 28BR205306 or 28BR067530, which I want to find in OpenStreetMap or other webmaps. How can I convert them?

PS: I have also asked this on GIS.stackexchange.com and got some comments with hints, but no answer. I answered it myself, as I have found a solution via the Wikipedia page abouth the MGRS reference system.

asked 15 Mar '16, 19:51

erik's gravatar image

erik
558152234
accept rate: 9%

edited 16 Mar '16, 15:31

1

Please dont duplicate questions here & on GIS Stack Exchange. Or if you do, say so; and certainly take the trouble to update the query when it's already answered. It's very frustrating to start writing an answer & find the query has already been answered. I like to help, NOT HAVE MY TIME WASTED.

(16 Mar '16, 13:50) SK53 ♦

Conversion to & from various co-ordinate systems is usually done using the Proj4 library. This projection occurs in proj4 with the following parameters: "+proj=utm +zone=27 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs", which appears to be identical to EPSG:3187 shown here on Spatial Reference.

This site allows on-line conversions between many reference systems. Otherwise you will have to make use of tools provided by OSGeo.

This question has been asked & answered on GIS Stack Exchange also. The OP did not provide this information.

permanent link

answered 16 Mar '16, 13:48

SK53's gravatar image

SK53 ♦
28.1k48268433
accept rate: 22%

Thank you for your answer. I like this proj4 tool, because you can convert many coordinates per script at once. Well, theoretically.

I tried it with your command: cs2cs +proj=utm +zone=28 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs <(echo 28RBR205306) but didn’t get a coordinate. The result was 19d29'18.575"W 0dN 0.000RBR205306. Something must be wrong, but I don’t know what. I tried it both with 28BR205306 and 28RBR205306. Same, false result. :-(

(16 Mar '16, 15:26) erik

I have searched on spatialreference.org and there seems no data about EPSG:4083.

(16 Mar '16, 15:36) erik

To use cs2cs/proj4 to convert the locations, you would first need to translate the MGRS representation to a UTM representation. proj4 doesn't understand the MGRS representation.

(16 Mar '16, 16:10) maxerickson

@erik Re: EPSG:4082. Yes I'd have told you that but thought I was wasting my time with my answer. However I thought what I had written might be of some use to someone else.

(16 Mar '16, 21:37) SK53 ♦

@maxerickson Would you mind telling me how to do so? I mean, how to translate MGRS to UTM with cs2cs? Or is that impossible? Maybe another commandline tool?

(17 Mar '16, 00:56) erik

There is no support for MGRS in cs2cs so you would need to use another tool.

(17 Mar '16, 13:10) maxerickson
showing 5 of 6 show 1 more comments

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×9
×7
×3

question asked: 15 Mar '16, 19:51

question was seen: 3,241 times

last updated: 17 Mar '16, 13:10

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum