ThinkGeo.com    |     Documentation    |     Premium Support

Z value for a PointShape

Hi
A question for the Z value of a PointShape

        var pt = new PointShape(aX, aY, aZ);
        var fea = pt.GetFeature();
        var pt2 =(PointShape)fea.GetShape();

pt2 lost the Z value ??

Best Regards
Laurent M

Hi Laurent M,

The Z value in point is reserved. At present, we only support 2D geometry primitives, and we will support 3D in the future. Because Wikipedia also exist 2D geometry primitives data structure but doesn’t exist 3D data structure in https://en.wikipedia.org/wiki/Well-known_text. Z in point will be filtered when point shape convert to Well-known text. When GetFeature() function is called, point shape will convert to Well-known text, then convert to feature, so PointShape(x,y,z) change to Feature{Point(x,y)}.

Thanks,
Peter