Ushant Suman (19) [Avatar] Offline
#1
Hi ,

I recently come across a line data of pipeline stored in ArcSDE in Shape Attribute along with X Y it has also M value stored in it.If I export these to shape files will these M-Values will also be exported in .shp??How to print those M values along with X Y using GDAL/OGR??
chris.garrard (24) [Avatar] Offline
#2
According to http://www.gdal.org/drv_shapefile.html, M-values are supported starting with GDAL version 2.1. If you have that, you can use GetM() the same way you use GetX() and GetY().

If you have an older version of GDAL, it seems that you can get M-values with GetZ(), but only if the shapefile has M-values but not Z-values.

I'm guessing that you'd need the new version of GDAL to export the M-values from SDE.
Ushant Suman (19) [Avatar] Offline
#3
Thanks chris