In Python, I want to find the coordinate dimension of my source. For example, with a postgis table with geometry(MultiLineStringZM,4326). My Python:
in_lyr = in_ds.ExecuteSQL(select) feature0 = in_lyr.GetNextFeature() feature0_geom = feature0.GetGeometryRef() feature0_geom.GetGeometryType() # 3005 ogr.GeometryTypeToName(3005) # '3D Measured Multi Line String' feature0_geom.GetCoordinateDimension() # 3 Based on: https://gdal.org/en/stable/api/vector_c_api.html#_CPPv425OGR_G_CoordinateDimension12OGRGeometryH I am expecting the coordinate dimension to be 4. Am I approaching this incorrectly? -- Richard W. Greenwood
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
