<div dir="ltr"><div>In Python, I want to find the coordinate dimension of my source. For example,<span style="background-color:transparent"> with a postgis table with geometry(MultiLineStringZM,4326). My Python:</span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>in_lyr = in_ds.ExecuteSQL(select)</div><div>feature0 = in_lyr.GetNextFeature()</div><div>feature0_geom = feature0.GetGeometryRef()</div>feature0_geom<span style="background-color:transparent">.GetGeometryType()        # 3005</span><div>ogr.GeometryTypeToName(3005)            #  '3D Measured Multi Line String'</div>feature0_geom.GetCoordinateDimension()<span style="background-color:transparent">  # 3</span></blockquote><div>Based on: <a href="https://gdal.org/en/stable/api/vector_c_api.html#_CPPv425OGR_G_CoordinateDimension12OGRGeometryH">https://gdal.org/en/stable/api/vector_c_api.html#_CPPv425OGR_G_CoordinateDimension12OGRGeometryH</a></div><div>I am expecting the coordinate dimension to be 4. Am I approaching this incorrectly?</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Richard W. Greenwood<br></div></div></div>