I have created a shapefile with approximately 300 feature of shapeType POINTZ. I can fill my attributs and define point. Here is my function that i call for each feature:
def upd_shp(fn, geo, attr): r = shapefile.Reader(fn) w = shapefile.Writer(r.shapeType) w.fields = list(r.fields) w.records.extend(r.records()) w._shapes.extend(r.shapes()) x = geo y = geo z = geo w.point(x, y, z) w.record(*attr) w.save(fn)
Then when i do
ogrinfo -al myshp.shp i can see
POINT (8.833808735269852 42.540690712189829) but there is not 'z' value.
When i do
ogrinfo -al example.shp which it's a shapefile made by my company i can see
POINT (8.75044460305986 42.567946874150579 37.384099928078562).
I know my 'z' is in the shapefile but i don't understand why i can't see it with ogrinfo.
I searched and I found Creating and reading z values (coordinates) with pyshp? but it did not help me much.
I would like to know if i'm missing something?