6

My question is similar to this one: Are there any online WKT editors? The links given in answers have been very useful to me.

However, it seems that when the tools in question display maps, they assume the WKT describes a geometry and not a geography.

By this I mean that they assume the geometry is on a Cartesian coordinate system, and not a geographic coordinate system.

This causes the edges of the polygon to just connect the vertices with the shortest distance on the map, and not great circle distances on the map.

Is there any Viewer which displays the polygons assuming great circle lines for the edges, instead of assuming that edges are in Cartesian space?

8
  • 2
    Please clarify what you mean by geographies ? Well-known text (WKT) is a text markup language for representing vector geometry objects on a map.
    – gene
    May 19, 2015 at 15:37
  • But PostGIS has a GeogFromText function, which accepts WKT input without trouble. This gives different results than GeomFromText does, for logical reasons. So how is WKT geometry-only? May 19, 2015 at 16:47
  • But what you mean by geographies ? What is the difference with geometries for you ?
    – gene
    May 19, 2015 at 16:49
  • 1
    I think what you are trying to ask is: "Is there any Viewer which displays the polygons assuming Great Circle Lines for the edges, instead of assuming that Edges are in Cartesian Space" Is this correct? May 19, 2015 at 16:53
  • Devdatta Tengshe, yes May 19, 2015 at 17:08

2 Answers 2

2

I've made an attempt at this using Leaflet, Mapbox.js and the Arc.js plugin:

http://snorf.net/wkt_gc/

Currently this works with LINESTRING and POLYGON strings. Just enter the WKT in the input box to the top right and it will update.

2
  • Any plans to bring this back online?
    – dbaston
    May 7, 2018 at 14:16
  • 1
    @dbaston I think this got wiped out accidentally when I changed blogging platform. I'll try and get it (or something similar) back up this week. May 14, 2018 at 8:31
0

You can try this (in case you still need it)

https://asapelkin.github.io/wkt_3d_viewer

(repo with examples and readme https://github.com/asapelkin/wkt_3d_viewer)

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.