WKT with z-values

May 13, 2011 at 11:40 AM

Hello,

i have a general question:

Is it possible to Read WKT-defined polygons with z-values in Sharpmap?

I tryed it in different ways and i always get an exception!

here is some code:

the wkt-string:

POLYGON((102.1501333247000 19.87659922971030 267.867,102.1501080026360 19.87655717892480 267.934,102.1501368653800 19.87640287176520 267.672,102.1501053833450 19.87621893373990 267.808,102.1502119109080 19.87617295878540 268.340,102.1502034261260 19.87625051266780 268.183,102.1502391657240 19.87637777996320 267.963,102.1502416030580 19.87643890301930 268.088,102.1502291861880 19.87648763949420 268.081,102.1501602595510 19.87658841850960 268.586,102.1501333247000 19.87659922971030 267.867))
var sharpGeom = Geometry.GeomFromText(geom.wkt);
var test = SharpMap.Converters.WellKnownText.GeometryFromWKT.Parse(geom.wkt);

I tryed both and both threw the exception, that they expected a bracket or a comma. I could convert that geometry without any problems in Postgis!

thanks for any answers!