Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

Convert list of coordinates to OGRGeometry or WKT

$
0
0

I am using a Visvalingam-Whyatt simplification script and the output is a list of coordinates such:

[[[[-10885205.10690245   3525662.26531131]
   [-10885369.01690829   3525374.0741439 ]
   [-10885424.08206484   3525269.35422813]
   [-10885439.88685361   3525278.66051977]
   [-10885600.07792469   3525092.02164548]
   [-10885623.88512575   3525100.58301066]
   [-10885627.28152936   3525101.52167386]
   [-10885630.67801411   3525102.45679679]]]]

I would like to create OGRGeometry object from that list. Is there any function that can do that?

Edit: A simple WKT would be correct.


Viewing all articles
Browse latest Browse all 397

Trending Articles