NetTopologySuite / NetTopologySuite.IO.ShapeFile

The ShapeFile IO module for NTS.
35 stars 25 forks source link

Geometry with only Z aren't supported #68

Closed kristofdegrave closed 1 year ago

kristofdegrave commented 3 years ago

I see that in the ShapeGeometryType geometries with only an additional Z value are present, but when reading a such a value, they aren't added. I see some comment that states that they are unofficial, but I don't find this in the provided link.

Is it possible to also implement this? This is a missing feature for me. I have some cases where I need to read a geometry like PolygonZ

FObermaier commented 3 years ago

According to the Shapefile spec 10ff and 15ff, there is no XYZ geometry type in Shapefiles. Its either XY, XYM or XYZM. In other words The Z-shape types always carry an additional M-value.

kristofdegrave commented 3 years ago

@FObermaier I see, but can I produce a PR that allows to read an XYZ geometry? I understand that writing such type shouldn't be allowed, but allow reading would make it a bit more flexible.

FObermaier commented 3 years ago

You want to change the reader to return a XYZ Geometry when reading a M type shape? I don't see where that would hurt.

KubaSzostak commented 1 year ago

Closing this issue because there has been no response to our request for more information. Please reach out if you have or find the answers we need so that we can investigate further.