Lines Matching refs:hGeom

47 static inline OGRGeometry* ToPointer(OGRGeometryH hGeom)
49 return reinterpret_cast<OGRGeometry *>(hGeom);
74 int OGR_G_GetPointCount( OGRGeometryH hGeom )
77 VALIDATE_POINTER1( hGeom, "OGR_G_GetPointCount", 0 ); in MakeGMLCoordinate()
80 wkbFlatten(ToPointer(hGeom)->getGeometryType()); in MakeGMLCoordinate()
87 return ToPointer(hGeom)->toCurve()->getNumPoints(); in MakeGMLCoordinate()
113 void OGR_G_SetPointCount( OGRGeometryH hGeom, int nNewPointCount ) in AppendString()
116 VALIDATE_POINTER0( hGeom, "OGR_G_SetPointCount" ); in AppendString()
118 switch( wkbFlatten(ToPointer(hGeom)-> in AppendString()
124 OGRSimpleCurve* poSC = ToPointer(hGeom)->toSimpleCurve(); in AppendString()
139 static double OGR_G_Get_Component( OGRGeometryH hGeom, int i )
141 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
147 return Getter::get(ToPointer(hGeom)->toPoint());
160 OGRSimpleCurve* poSC = ToPointer(hGeom)->toSimpleCurve();
187 double OGR_G_GetX( OGRGeometryH hGeom, int i )
190 VALIDATE_POINTER1( hGeom, "OGR_G_GetX", 0 );
196 return OGR_G_Get_Component<Getter>(hGeom, i);
210 double OGR_G_GetY( OGRGeometryH hGeom, int i )
213 VALIDATE_POINTER1( hGeom, "OGR_G_GetY", 0 );
219 return OGR_G_Get_Component<Getter>(hGeom, i);
233 double OGR_G_GetZ( OGRGeometryH hGeom, int i )
236 VALIDATE_POINTER1( hGeom, "OGR_G_GetZ", 0 );
242 return OGR_G_Get_Component<Getter>(hGeom, i);
256 double OGR_G_GetM( OGRGeometryH hGeom, int i )
259 VALIDATE_POINTER1( hGeom, "OGR_G_GetM", 0 );
265 return OGR_G_Get_Component<Getter>(hGeom, i);
297 int OGR_G_GetPoints( OGRGeometryH hGeom,
302 VALIDATE_POINTER1( hGeom, "OGR_G_GetPoints", 0 );
304 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
308 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
319 OGRSimpleCurve* poSC = ToPointer(hGeom)->toSimpleCurve();
365 int OGR_G_GetPointsZM( OGRGeometryH hGeom,
371 VALIDATE_POINTER1( hGeom, "OGR_G_GetPointsZM", 0 );
373 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
377 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
389 OGRSimpleCurve* poSC = ToPointer(hGeom)->toSimpleCurve();
418 void OGR_G_GetPoint( OGRGeometryH hGeom, int i,
422 VALIDATE_POINTER0( hGeom, "OGR_G_GetPoint" );
424 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
430 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
447 OGRSimpleCurve* poSC = ToPointer(hGeom)->toSimpleCurve();
488 void OGR_G_GetPointZM( OGRGeometryH hGeom, int i,
492 VALIDATE_POINTER0( hGeom, "OGR_G_GetPointZM" );
494 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
500 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
519 OGRSimpleCurve* poSC = ToPointer(hGeom)->toSimpleCurve();
569 void CPL_DLL OGR_G_SetPoints( OGRGeometryH hGeom, int nPointsIn, in OGR2GML3GeometryAppend()
575 VALIDATE_POINTER0( hGeom, "OGR_G_SetPoints" ); in OGR2GML3GeometryAppend()
588 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) ) in OGR2GML3GeometryAppend()
592 OGRPoint *poPoint = ToPointer(hGeom)->toPoint(); in OGR2GML3GeometryAppend()
602 OGRSimpleCurve* poSC = ToPointer(hGeom)->toSimpleCurve(); in OGR2GML3GeometryAppend()
667 void CPL_DLL OGR_G_SetPointsZM( OGRGeometryH hGeom, int nPointsIn,
674 VALIDATE_POINTER0( hGeom, "OGR_G_SetPointsZM" );
692 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
696 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
708 OGRSimpleCurve* poSC = ToPointer(hGeom)->toSimpleCurve();
817 void OGR_G_SetPoint( OGRGeometryH hGeom, int i,
821 VALIDATE_POINTER0( hGeom, "OGR_G_SetPoint" );
823 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
829 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
850 ToPointer(hGeom)->toSimpleCurve()->setPoint(i, dfX, dfY, dfZ);
878 void OGR_G_SetPoint_2D( OGRGeometryH hGeom, int i,
882 VALIDATE_POINTER0( hGeom, "OGR_G_SetPoint_2D" );
884 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
890 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
910 ToPointer(hGeom)->toSimpleCurve()->setPoint(i, dfX, dfY);
939 void OGR_G_SetPointM( OGRGeometryH hGeom, int i,
943 VALIDATE_POINTER0( hGeom, "OGR_G_SetPointM" );
945 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
951 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
972 ToPointer(hGeom)->toSimpleCurve()->
1003 void OGR_G_SetPointZM( OGRGeometryH hGeom, int i,
1007 VALIDATE_POINTER0( hGeom, "OGR_G_SetPointZM" );
1009 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
1015 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
1037 ToPointer(hGeom)->toSimpleCurve()->setPoint(i, dfX, dfY, dfZ, dfM);
1063 void OGR_G_AddPoint( OGRGeometryH hGeom,
1067 VALIDATE_POINTER0( hGeom, "OGR_G_AddPoint" );
1069 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
1073 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
1082 ToPointer(hGeom)->toSimpleCurve()->addPoint(dfX, dfY, dfZ);
1106 void OGR_G_AddPoint_2D( OGRGeometryH hGeom,
1110 VALIDATE_POINTER0( hGeom, "OGR_G_AddPoint_2D" );
1112 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
1116 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
1124 ToPointer(hGeom)->toSimpleCurve()->addPoint(dfX, dfY);
1149 void OGR_G_AddPointM( OGRGeometryH hGeom,
1153 VALIDATE_POINTER0( hGeom, "OGR_G_AddPointM" );
1155 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) )
1159 OGRPoint *poPoint = ToPointer(hGeom)->toPoint();
1168 ToPointer(hGeom)->toSimpleCurve()->addPointM(dfX, dfY, dfM); in OGR_G_ExportToGMLTree()
1194 void OGR_G_AddPointZM( OGRGeometryH hGeom,
1198 VALIDATE_POINTER0( hGeom, "OGR_G_AddPointZM" ); in OGR_G_ExportToGML()
1200 switch( wkbFlatten(ToPointer(hGeom)->getGeometryType()) ) in OGR_G_ExportToGML()
1204 OGRPoint *poPoint = ToPointer(hGeom)->toPoint(); in OGR_G_ExportToGML()
1214 ToPointer(hGeom)->toSimpleCurve()->addPoint(dfX, dfY, dfZ, dfM); in OGR_G_ExportToGML()
1243 int OGR_G_GetGeometryCount( OGRGeometryH hGeom )
1246 VALIDATE_POINTER1( hGeom, "OGR_G_GetGeometryCount", 0 );
1248 const auto poGeom = ToPointer(hGeom);
1308 OGRGeometryH OGR_G_GetGeometryRef( OGRGeometryH hGeom, int iSubGeom )
1311 VALIDATE_POINTER1( hGeom, "OGR_G_GetGeometryRef", nullptr );
1313 const auto poGeom = ToPointer(hGeom);
1374 OGRErr OGR_G_AddGeometry( OGRGeometryH hGeom, OGRGeometryH hNewSubGeom )
1377 VALIDATE_POINTER1( hGeom, "OGR_G_AddGeometry",
1384 auto poGeom = ToPointer(hGeom);
1439 OGRErr OGR_G_AddGeometryDirectly( OGRGeometryH hGeom,
1443 VALIDATE_POINTER1( hGeom, "OGR_G_AddGeometryDirectly",
1450 auto poGeom = ToPointer(hGeom);
1513 OGRErr OGR_G_RemoveGeometry( OGRGeometryH hGeom, int iGeom, int bDelete )
1516 VALIDATE_POINTER1( hGeom, "OGR_G_RemoveGeometry", OGRERR_FAILURE );
1518 const auto poGeom = ToPointer(hGeom);
1559 double OGR_G_Length( OGRGeometryH hGeom )
1562 VALIDATE_POINTER1( hGeom, "OGR_G_GetLength", 0 );
1566 const auto poGeom = ToPointer(hGeom);
1568 wkbFlatten(ToPointer(hGeom)->getGeometryType());
1607 double OGR_G_Area( OGRGeometryH hGeom )
1610 VALIDATE_POINTER1( hGeom, "OGR_G_Area", 0 );
1614 const auto poGeom = ToPointer(hGeom);
1646 double OGR_G_GetArea( OGRGeometryH hGeom )
1649 return OGR_G_Area( hGeom );
1681 int OGR_G_HasCurveGeometry( OGRGeometryH hGeom, int bLookForNonLinear )
1683 VALIDATE_POINTER1( hGeom, "OGR_G_HasCurveGeometry", FALSE );
1684 return ToPointer(hGeom)->
1718 OGRGeometryH CPL_DLL OGR_G_GetLinearGeometry( OGRGeometryH hGeom,
1722 VALIDATE_POINTER1( hGeom, "OGR_G_GetLinearGeometry", nullptr );
1724 ToPointer(hGeom)->
1758 OGRGeometryH CPL_DLL OGR_G_GetCurveGeometry( OGRGeometryH hGeom,
1761 VALIDATE_POINTER1( hGeom, "OGR_G_GetCurveGeometry", nullptr );
1764 ToPointer(hGeom)->
1787 OGRGeometryH OGR_G_Value( OGRGeometryH hGeom, double dfDistance )
1789 VALIDATE_POINTER1( hGeom, "OGR_G_Value", nullptr );
1791 const auto poGeom = ToPointer(hGeom);