Changes between Version 28 and Version 29 of rfc61_support_for_measured_geometries
- Timestamp:
- Jan 30, 2016, 10:18:08 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
rfc61_support_for_measured_geometries
v28 v29 155 155 }}} 156 156 157 ogr_api.h: (New versions of some functions are needed, use postfix M. If not 3D, Z value is ignored.) 157 The current behavior is that calling SetPoint on a point with coordinate dimension 2 upgrades 158 the coordinate dimension 3. To keep 2D points 2D SetPoint_2D must be used. Thus we need 159 separate functions for M and ZM geometries. The proposal is to use postfixes M and ZM, i.e., 160 SetPointM, SetPointZM. Similarly for Add and Get and Points. 161 162 ogr_api.h: 158 163 {{{ 159 164 void CPL_DLL OGR_G_Is3D( OGRGeometryH ); … … 164 169 165 170 double CPL_DLL OGR_G_GetM( OGRGeometryH, int ); 166 167 void CPL_DLL OGR_G_AddPointM( OGRGeometryH, double, double, double, double );168 169 void CPL_DLL OGR_G_GetPointM( OGRGeometryH, int iPoint,170 double *, double *, double *, double * );171 172 int CPL_DLL OGR_G_GetPointsM( OGRGeometryH hGeom,173 void* pabyX, int nXStride,174 void* pabyY, int nYStride,175 void* pabyZ, int nZStride,176 void* pabyM, int nMStride);177 178 void CPL_DLL OGR_G_SetPointM( OGRGeometryH, int iPoint,179 double, double, double, double );180 181 void CPL_DLL OGR_G_SetPointsM( OGRGeometryH hGeom, int nPointsIn,182 void* pabyX, int nXStride,183 void* pabyY, int nYStride,184 void* pabyZ, int nZStride,185 void* pabyM, int nMStride );186 171 187 172 }}}