Create a geometry from WKT

Mar 29, 2011 at 11:21 PM

I am currently saving  a geometry to my database using wkt (using GEOM.ToText() function )

how can i get back to construct a geometry from the text  ( which is in WKT i suppose) ?

Jul 9, 2011 at 4:13 PM

This is very usefull .... have you found a way ?

Jul 12, 2011 at 12:56 PM

There should be a WktReader class somewhere around, but apparently there isn't.

Why not use Geometry.ToBinary() and for parsing purposes the WkbReader?

Hth FObermaier

Jul 12, 2011 at 2:45 PM

Lol i answered to myself!

I am unfortunate as this time it is not possible to write the db field value myself as my source is in WKT. :(

Is Dotspatial using GeoAPI ? I remember from sharpmap that this was provided by GeoAPI.