Changes between Version 28 and Version 29 of rfc61_support_for_measured_geometries


Ignore:
Timestamp:
Jan 30, 2016, 10:18:08 PM (8 years ago)
Author:
Ari Jolma
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rfc61_support_for_measured_geometries

    v28 v29  
    155155}}}
    156156
    157 ogr_api.h: (New versions of some functions are needed, use postfix M. If not 3D, Z value is ignored.)
     157The current behavior is that calling SetPoint on a point with coordinate dimension 2 upgrades
     158the coordinate dimension 3. To keep 2D points 2D SetPoint_2D must be used. Thus we need
     159separate functions for M and ZM geometries. The proposal is to use postfixes M and ZM, i.e.,
     160SetPointM, SetPointZM. Similarly for Add and Get and Points.
     161
     162ogr_api.h:
    158163{{{
    159164void   CPL_DLL OGR_G_Is3D( OGRGeometryH );
     
    164169
    165170double 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 );
    186171
    187172}}}