I have two tools that produce output in OGC WKT format. But they look different. Could you please explain this(I am very new to GIS).

For my project I want the coordinates in the second format. Is it possible to convert from first format to second?

Tool 1: http://dev.giscloud.com/examples/drawingtools.html

POLYGON ((16136169.435794141 -4553684.305378843,16136205.862815436 -4553671.31705568,16136219.448302884 -4553708.341241255,16136182.424117308 -4553720.433817994,16136169.435794141 -4553684.305378843))

Tool 2: https://arthur-e.github.io/Wicket/sandbox-gmaps3.html

POLYGON((144.95369132692065 -37.81764246645652,144.9540426963016 -37.81754923679548,144.9541714423343 -37.81782468772676,144.95381470853533 -37.8179263924262,144.95369132692065 -37.81764246645652))

  • 3
    That's the same format, i.e. POLYGON ((cood pair, coord pair, etc...)). What you are seeing is the coordinates output in different coordinate reference systems (CRS). The top coords look like metres in a projected CRS and the lower ones are Longitude and Latitude in a geographic CRS. – user2856 Jun 26 '18 at 3:15
  • 3
    Please rewrite the question to focus on this new topic. – Vince Jun 26 '18 at 3:38
  • 1
    Yes, it's possible @Hydrogirl, please edit your question to specify the software you use and what CRS each output is in. – user2856 Jun 26 '18 at 3:44
  • 1
    Is the polygon in the 'first tool' supposed to be the same polygon as in the 'second tool'? Or do they represent different places? If different places, do you know what location the first polygon represents? Otherwise, we can't identify what the CRS could be. – mkennedy Jun 26 '18 at 17:45
  • 1
    It's EPSG::3857 AKA "Web Mercator". – mkennedy Jun 27 '18 at 19:59

Finally found the answer with proj4js library http://proj4js.org/

var proj4 = require('proj4');

var firstProjection = 'EPSG:3857'
var cod = proj4(firstProjection).inverse([16136169.435794141, -4553684.305378843]);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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