Changes between Version 2 and Version 3 of rfc61_support_for_measured_geometries
- Timestamp:
- Jan 27, 2016, 1:25:36 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
rfc61_support_for_measured_geometries
v2 v3 38 38 !IsEmpty = !(flags & OGR_G_NOT_EMPTY), Is3D = flags & OGR_G_3D, !IsMeasured = flags & OGR_G_MEASURED. 39 39 40 Keep , but deprecate40 Keep (with original semantics, i.e., coordinate dimension is 2 or 3), but deprecate 41 41 {{{ 42 42 getCoordinateDimension(); … … 46 46 class OGRGeometry: 47 47 {{{ 48 //Add methods: 49 int CoordinateDimension(); 48 //Possibly add methods (SF Common Architecture): 49 int Dimension(); // -1 for empty geometries, 0 for points, 1 for curves, 2 for surfaces, max of components for collections 50 int CoordinateDimension(); // 2 if not 3D and not measured, 3 if 3D or measured, 4 if 3D and measured 51 int SpatialDimension(); // ?? 52 char *GeometryType(); // calls OGRToOGCGeomType (which needs to be enhanced) 53 54 //Add methods (SF Common Architecture): 50 55 OGRBoolean Is3D(); 51 56 OGRBoolean IsMeasured(); 57 58 //Add methods (non-standard, may cause internal changes, e.g., allocate memory for Z or M values): 52 59 virtual void set3D(OGRBoolean bIs3D); 53 60 virtual void setMeasured(OGRBoolean bIsMeasured); … … 57 64 virtual OGRGeometry *LocateBetween(double mStart, double mEnd); 58 65 }}} 66 67 int !CoordinateDimension() should have the new semantics. The method name in simple features documents actually is without prefix get. Similarly, 59 68 60 69 Add property double m to class OGRPoint. Add constructor, getters, and setters for it.