OGR
ogreditablelayer.h
1 /******************************************************************************
2  * $Id: ogreditablelayer.h 2c3d60220a2d6b41496ded571e231b96435bffa0 2016-11-25 14:09:24Z Even Rouault $
3  *
4  * Project: OpenGIS Simple Features Reference Implementation
5  * Purpose: Defines OGREditableLayer class
6  * Author: Even Rouault <even.rouault at spatialys.com>
7  *
8  ******************************************************************************
9  * Copyright (c) 2015, Even Rouault <even.rouault at spatialys.com>
10  *
11  * Permission is hereby granted, free of charge, to any person obtaining a
12  * copy of this software and associated documentation files (the "Software"),
13  * to deal in the Software without restriction, including without limitation
14  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15  * and/or sell copies of the Software, and to permit persons to whom the
16  * Software is furnished to do so, subject to the following conditions:
17  *
18  * The above copyright notice and this permission notice shall be included
19  * in all copies or substantial portions of the Software.
20  *
21  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27  * DEALINGS IN THE SOFTWARE.
28  ****************************************************************************/
29 
30 #ifndef OGREDITABLELAYER_H_INCLUDED
31 #define OGREDITABLELAYER_H_INCLUDED
32 
34 #include "ogrlayerdecorator.h"
35 #include <set>
36 
37 class CPL_DLL IOGREditableLayerSynchronizer
38 {
39  public:
40  virtual ~IOGREditableLayerSynchronizer();
41 
42  virtual OGRErr EditableSyncToDisk(OGRLayer* poEditableLayer,
43  OGRLayer** ppoDecoratedLayer) = 0;
44 };
45 
46 class CPL_DLL OGREditableLayer : public OGRLayerDecorator
47 {
48  protected:
49 
50  IOGREditableLayerSynchronizer *m_poSynchronizer;
51  bool m_bTakeOwnershipSynchronizer;
52  OGRFeatureDefn *m_poEditableFeatureDefn;
53  GIntBig m_nNextFID;
54  std::set<GIntBig> m_oSetCreated;
55  std::set<GIntBig> m_oSetEdited;
56  std::set<GIntBig> m_oSetDeleted;
57  std::set<GIntBig>::iterator m_oIter;
58  std::set<CPLString> m_oSetDeletedFields;
59  OGRLayer *m_poMemLayer;
60  bool m_bStructureModified;
61  bool m_bSupportsCreateGeomField;
62  bool m_bSupportsCurveGeometries;
63 
64  OGRFeature *Translate(OGRFeatureDefn* poTargetDefn,
65  OGRFeature* poSrcFeature,
66  bool bCanStealSrcFeature,
67  bool bHideDeletedFields);
68  void DetectNextFID();
69  int GetSrcGeomFieldIndex(int iGeomField);
70 
71  public:
72 
73  OGREditableLayer(OGRLayer* poDecoratedLayer,
74  bool bTakeOwnershipDecoratedLayer,
75  IOGREditableLayerSynchronizer* poSynchronizer,
76  bool bTakeOwnershipSynchronizer);
77  virtual ~OGREditableLayer();
78 
79  void SetNextFID(GIntBig nNextFID);
80  void SetSupportsCreateGeomField(bool SupportsCreateGeomField);
81  void SetSupportsCurveGeometries(bool bSupportsCurveGeometries);
82 
83  virtual OGRGeometry *GetSpatialFilter() override;
84  virtual void SetSpatialFilter( OGRGeometry * ) override;
85  virtual void SetSpatialFilterRect( double dfMinX, double dfMinY,
86  double dfMaxX, double dfMaxY ) override;
87  virtual void SetSpatialFilter( int iGeomField, OGRGeometry * ) override;
88  virtual void SetSpatialFilterRect( int iGeomField, double dfMinX, double dfMinY,
89  double dfMaxX, double dfMaxY ) override;
90 
91  virtual OGRErr SetAttributeFilter( const char * ) override;
92 
93  virtual void ResetReading() override;
94  virtual OGRFeature *GetNextFeature() override;
95  virtual OGRErr SetNextByIndex( GIntBig nIndex ) override;
96  virtual OGRFeature *GetFeature( GIntBig nFID ) override;
97  virtual OGRErr ISetFeature( OGRFeature *poFeature ) override;
98  virtual OGRErr ICreateFeature( OGRFeature *poFeature ) override;
99  virtual OGRErr DeleteFeature( GIntBig nFID ) override;
100 
101  virtual OGRwkbGeometryType GetGeomType() override;
102  virtual OGRFeatureDefn *GetLayerDefn() override;
103 
104  virtual OGRSpatialReference *GetSpatialRef() override;
105 
106  virtual GIntBig GetFeatureCount( int bForce = TRUE ) override;
107  virtual OGRErr GetExtent(int iGeomField, OGREnvelope *psExtent, int bForce = TRUE) override;
108  virtual OGRErr GetExtent(OGREnvelope *psExtent, int bForce = TRUE) override;
109 
110  virtual int TestCapability( const char * ) override;
111 
112  virtual OGRErr CreateField( OGRFieldDefn *poField,
113  int bApproxOK = TRUE ) override;
114  virtual OGRErr DeleteField( int iField ) override;
115  virtual OGRErr ReorderFields( int* panMap ) override;
116  virtual OGRErr AlterFieldDefn( int iField, OGRFieldDefn* poNewFieldDefn, int nFlags ) override;
117 
118  virtual OGRErr CreateGeomField( OGRGeomFieldDefn *poField,
119  int bApproxOK = TRUE ) override;
120 
121  virtual OGRErr SyncToDisk() override;
122 
123  virtual OGRErr StartTransaction() override;
124  virtual OGRErr CommitTransaction() override;
125  virtual OGRErr RollbackTransaction() override;
126 
127  virtual const char *GetGeometryColumn() override;
128 };
130 
131 #endif // OGREDITABLELAYER_H_INCLUDED
OLCReorderFields
#define OLCReorderFields
Definition: ogr_core.h:756
OGRSimpleCurve::setPoint
void setPoint(int, OGRPoint *)
Set the location of a vertex in line string.
Definition: ogrlinestring.cpp:526
OGR_SRSNode::GetChildCount
int GetChildCount() const
Definition: ogr_spatialref.h:86
OGRSimpleCurve::getEnvelope
virtual void getEnvelope(OGREnvelope *psEnvelope) const override
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure.
Definition: ogrlinestring.cpp:2279
OGRCurvePolygon::getEnvelope
virtual void getEnvelope(OGREnvelope *psEnvelope) const override
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure.
Definition: ogrcurvepolygon.cpp:622
OGRGeometry::Is3D
OGRBoolean Is3D() const
Definition: ogr_geometry.h:362
OGRGeometry::IsEmpty
virtual OGRBoolean IsEmpty() const =0
Returns TRUE (non-zero) if the object has no points.
OGR_DS_Destroy
void OGR_DS_Destroy(OGRDataSourceH)
Closes opened datasource and releases allocated resources.
Definition: ogrdatasource.cpp:58
OGRGeometry::setCoordinateDimension
virtual void setCoordinateDimension(int nDimension)
Set the coordinate dimension.
Definition: ogrgeometry.cpp:1007
OGRCurvePolygon::addRingDirectly
virtual OGRErr addRingDirectly(OGRCurve *)
Add a ring to a polygon.
Definition: ogrcurvepolygon.cpp:422
OGRCompoundCurve::segmentize
virtual void segmentize(double dfMaxLength) override
Modify the geometry such it has no segment longer then the given distance.
Definition: ogrcompoundcurve.cpp:647
OGRCurve::CastToLineString
static OGRLineString * CastToLineString(OGRCurve *poCurve)
Cast to linestring.
Definition: ogrcurve.cpp:355
OGRCompoundCurve::addCurve
OGRErr addCurve(OGRCurve *, double dfToleranceEps=1e-14)
Add a curve to the container.
Definition: ogrcompoundcurve.cpp:527
ogr_spatialref.h
OGRSimpleCurve::getX
double getX(int i) const
Get X at vertex.
Definition: ogr_geometry.h:1160
OGRSimpleCurve::empty
virtual void empty() override
Clear geometry information. This restores the geometry to its initial state after construction,...
Definition: ogrlinestring.cpp:162
OGRCompoundCurve::WkbSize
virtual int WkbSize() const override
Returns size of related binary representation.
Definition: ogrcompoundcurve.cpp:131
OGRCurve::get_AreaOfCurveSegments
virtual double get_AreaOfCurveSegments() const =0
Get the area of the purely curve portions of a (closed) curve.
CPL_SWAP32
#define CPL_SWAP32(x)
Definition: cpl_port.h:709
wkbCurvePolygonZM
@ wkbCurvePolygonZM
Definition: ogr_core.h:390
OGRSimpleCurve::Iterator::Private
Definition: ogrcurve.cpp:459
CSLTokenizeString2
char ** CSLTokenizeString2(const char *pszString, const char *pszDelimiter, int nCSLTFlags)
Definition: cpl_string.cpp:836
OGRLineString
Definition: ogr_geometry.h:1241
OGRSimpleCurve::setNumPoints
void setNumPoints(int nNewPointCount, int bZeroizeNewContent=TRUE)
Set number of points in geometry.
Definition: ogrlinestring.cpp:434
OGRGeometry::Contains
virtual OGRBoolean Contains(const OGRGeometry *) const
Test for containment.
Definition: ogrgeometry.cpp:4709
OLCCreateGeomField
#define OLCCreateGeomField
Definition: ogr_core.h:763
OGR_DS_GetName
const char * OGR_DS_GetName(OGRDataSourceH)
Returns the name of the data source.
Definition: ogrdatasource.cpp:305
OGR_DS_GetLayerCount
int OGR_DS_GetLayerCount(OGRDataSourceH)
Get the number of layers in this data source.
Definition: ogrdatasource.cpp:268
OGRFeature::SetFID
virtual OGRErr SetFID(GIntBig nFIDIn)
Set the feature identifier.
Definition: ogrfeature.cpp:5436
OGRCompoundCurve::transform
virtual OGRErr transform(OGRCoordinateTransformation *poCT) override
Apply arbitrary coordinate transformation to geometry.
Definition: ogrcompoundcurve.cpp:629
OGRCircularString::OGRCircularString
OGRCircularString()
Create an empty circular string.
Definition: ogrcircularstring.cpp:58
OGRCompoundCurve::getNumPoints
virtual int getNumPoints() const override
Return the number of points of a curve geometry.
Definition: ogrcompoundcurve.cpp:690
CPLGetSymbol
void * CPLGetSymbol(const char *, const char *)
Definition: cplgetsymbol.cpp:89
OGRERR_UNSUPPORTED_GEOMETRY_TYPE
#define OGRERR_UNSUPPORTED_GEOMETRY_TYPE
Definition: ogr_core.h:295
OGRFeature::StealGeometry
OGRGeometry * StealGeometry() CPL_WARN_UNUSED_RESULT
Take away ownership of geometry.
Definition: ogrfeature.cpp:498
OGRGeometry::getCoordinateDimension
virtual int getCoordinateDimension() const
Get the dimension of the coordinates in this object.
Definition: ogrgeometry.cpp:864
OGRCircularString::exportToWkb
virtual OGRErr exportToWkb(OGRwkbByteOrder, unsigned char *, OGRwkbVariant=wkbVariantOldOgc) const override
Convert a geometry into well known binary format.
Definition: ogrcircularstring.cpp:166
OGRProj4CT::Transform
virtual int Transform(int nCount, double *x, double *y, double *z=nullptr) override
Definition: ogrct.cpp:1011
OGRSimpleCurve::get_LinearArea
virtual double get_LinearArea() const
Compute area of ring / closed linestring.
Definition: ogrlinestring.cpp:2774
VALIDATE_POINTER0
#define VALIDATE_POINTER0(ptr, func)
Definition: cpl_error.h:251
OGRPointIterator::getNextPoint
virtual OGRBoolean getNextPoint(OGRPoint *p)=0
Returns the next point followed by the iterator.
OGRPointIterator
Definition: ogr_geometry.h:907
OGRCompoundCurve::importFromWkb
virtual OGRErr importFromWkb(const unsigned char *, int, OGRwkbVariant, int &nBytesConsumedOut) override
Assign geometry from well known binary data.
Definition: ogrcompoundcurve.cpp:151
OGRCompoundCurve::exportToWkt
virtual OGRErr exportToWkt(char **ppszDstText, OGRwkbVariant=wkbVariantOldOgc) const override
Convert a geometry into well known text format.
Definition: ogrcompoundcurve.cpp:214
OGRCurvePolygon::flattenTo2D
virtual void flattenTo2D() override
Convert geometry to strictly 2D. In a sense this converts all Z coordinates to 0.0.
Definition: ogrcurvepolygon.cpp:168
cpl_error.h
OGRCircularString::exportToWkt
virtual OGRErr exportToWkt(char **ppszDstText, OGRwkbVariant=wkbVariantOldOgc) const override
Convert a geometry into well known text format.
Definition: ogrcircularstring.cpp:209
OGRCompoundCurve
Definition: ogr_geometry.h:1579
OGRSimpleCurve::getNumPoints
virtual int getNumPoints() const override
Fetch vertex count.
Definition: ogr_geometry.h:1158
OGRCompoundCurve::get_Area
virtual double get_Area() const override
Get the area of the (closed) curve.
Definition: ogrcompoundcurve.cpp:864
OGRGeometry::getGeometryType
virtual OGRwkbGeometryType getGeometryType() const =0
Fetch geometry type.
OGRGeometry::swapXY
virtual void swapXY()
Swap x and y coordinates.
Definition: ogrgeometry.cpp:5523
OGRFeature::SetNativeMediaType
void SetNativeMediaType(const char *pszNativeMediaType)
Sets the native media type for the feature.
Definition: ogrfeature.cpp:6887
OGRCompoundCurve::importFromWkt
OGRErr importFromWkt(const char **) override
Definition: ogrcompoundcurve.cpp:201
OGRSimpleCurve::importFromWkt
OGRErr importFromWkt(const char **) override
Definition: ogrlinestring.cpp:1719
OGRGeometry::toCurve
OGRCurve * toCurve()
Definition: ogr_geometry.h:537
wkbPoint
@ wkbPoint
Definition: ogr_core.h:321
OGRCurvePolygon::IsEmpty
virtual OGRBoolean IsEmpty() const override
Returns TRUE (non-zero) if the object has no points.
Definition: ogrcurvepolygon.cpp:720
OGRCompoundCurve::setMeasured
virtual void setMeasured(OGRBoolean bIsMeasured) override
Add or remove the M coordinate dimension.
Definition: ogrcompoundcurve.cpp:407
OGRCurvePolygon::get_Area
virtual double get_Area() const override
Get the area of the surface object.
Definition: ogrcurvepolygon.cpp:671
CPLString::Printf
CPLSTRING_DLL CPLString & Printf(const char *pszFormat,...)
Definition: cplstring.cpp:67
OGRSimpleCurve::exportToWkb
virtual OGRErr exportToWkb(OGRwkbByteOrder, unsigned char *, OGRwkbVariant=wkbVariantOldOgc) const override
Convert a geometry into well known binary format.
Definition: ogrlinestring.cpp:1621
OGRSimpleCurve::begin
Iterator begin()
Definition: ogrcurve.cpp:514
OGRFieldDefn::SetName
void SetName(const char *)
Reset the name of this field.
Definition: ogrfielddefn.cpp:157
OGRCurve::end
ConstIterator end() const
Definition: ogrcurve.cpp:620
wkbCurvePolygonZ
@ wkbCurvePolygonZ
Definition: ogr_core.h:354
OGRCircularString::get_Length
virtual double get_Length() const override
Returns the length of the curve.
Definition: ogrcircularstring.cpp:227
VSI_REALLOC_VERBOSE
#define VSI_REALLOC_VERBOSE(pOldPtr, nNewSize)
Definition: cpl_vsi.h:285
OGR_DS_GetDriver
OGRSFDriverH OGR_DS_GetDriver(OGRDataSourceH)
Returns the driver that the dataset was opened with.
Definition: ogrdatasource.cpp:333
OGRCurve::begin
ConstIterator begin() const
Definition: ogrcurve.cpp:615
OGRStyleTable
Definition: ogr_featurestyle.h:84
OGRCurvePolygon::CurvePolyToPoly
virtual OGRPolygon * CurvePolyToPoly(double dfMaxAngleStepSizeDegrees=0, const char *const *papszOptions=nullptr) const
Return a polygon from a curve polygon.
Definition: ogrcurvepolygon.cpp:572
OGRGeometry::set3D
virtual void set3D(OGRBoolean bIs3D)
Add or remove the Z coordinate dimension.
Definition: ogrgeometry.cpp:1030
wkbCompoundCurveZM
@ wkbCompoundCurveZM
Definition: ogr_core.h:389
OGRGeometryCollection::getNumGeometries
int getNumGeometries() const
Fetch number of geometries in container.
Definition: ogrgeometrycollection.cpp:258
CPLCalloc
void * CPLCalloc(size_t, size_t)
Definition: cpl_conv.cpp:138
OGRFieldDefn::SetType
void SetType(OGRFieldType eTypeIn)
Set the type of this field. This should never be done to an OGRFieldDefn that is already part of an O...
Definition: ogrfielddefn.cpp:277
OGRGeometry::FromHandle
static OGRGeometry * FromHandle(OGRGeometryH hGeom)
Definition: ogr_geometry.h:516
OGRLayer::GetSpatialRef
virtual OGRSpatialReference * GetSpatialRef()
Fetch the spatial reference system for this layer.
Definition: ogrlayer.cpp:1036
wkbNDR
@ wkbNDR
Definition: ogr_core.h:492
OGRCompoundCurvePointIterator
Definition: ogrcompoundcurve.cpp:706
OGRCurvePolygon::hasCurveGeometry
virtual OGRBoolean hasCurveGeometry(int bLookForNonLinear=FALSE) const override
Returns if this geometry is or has curve geometry.
Definition: ogrcurvepolygon.cpp:597
OGRFeatureDefn::GetGeomFieldIndex
virtual int GetGeomFieldIndex(const char *) const
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:915
OGRGeometryCollection
Definition: ogr_geometry.h:2091
CPLPopErrorHandler
void CPLPopErrorHandler(void)
Definition: cpl_error.cpp:1223
OGRGeometry::hasCurveGeometry
virtual OGRBoolean hasCurveGeometry(int bLookForNonLinear=FALSE) const
Returns if this geometry is or has curve geometry.
Definition: ogrgeometry.cpp:3085
wkbVariantOldOgc
@ wkbVariantOldOgc
Definition: ogr_core.h:425
OGRFieldDefn::GetWidth
int GetWidth() const
Get the formatting width for this field.
Definition: ogr_feature.h:127
cpl_vsi.h
OGRCoordinateTransformation::GetTargetCS
virtual OGRSpatialReference * GetTargetCS()=0
OGRSpatialReference
Definition: ogr_spatialref.h:145
wkbCompoundCurve
@ wkbCompoundCurve
Definition: ogr_core.h:335
OGRProj4CT::GetTargetCS
virtual OGRSpatialReference * GetTargetCS() override
Definition: ogrct.cpp:999
OGRGeometryCollection::getGeometryRef
OGRGeometry * getGeometryRef(int)
Fetch geometry from container.
Definition: ogrgeometrycollection.cpp:283
OGRCreateCoordinateTransformation
OGRCoordinateTransformation * OGRCreateCoordinateTransformation(OGRSpatialReference *poSource, OGRSpatialReference *poTarget)
Definition: ogrct.cpp:493
OGRLayer::GetFeatureCount
virtual GIntBig GetFeatureCount(int bForce=TRUE)
Fetch the feature count in this layer.
Definition: ogrlayer.cpp:172
OGRSpatialReference::exportToProj4
OGRErr exportToProj4(char **) const
Export coordinate system in PROJ.4 format.
Definition: ogr_srs_proj4.cpp:1482
OGRCompoundCurvePointIterator::getNextPoint
virtual OGRBoolean getNextPoint(OGRPoint *p) override
Returns the next point followed by the iterator.
Definition: ogrcompoundcurve.cpp:724
OGRCircularString::segmentize
virtual void segmentize(double dfMaxLength) override
Modify the geometry such it has no segment longer then the given distance.
Definition: ogrcircularstring.cpp:353
OGRSpatialReference::Clone
OGRSpatialReference * Clone() const
Make a duplicate of this OGRSpatialReference.
Definition: ogrspatialreference.cpp:590
OGRFeature::GetFieldCount
int GetFieldCount() const
Fetch number of fields on this feature. This will always be the same as the field count for the OGRFe...
Definition: ogr_feature.h:599
OGRCircularString::get_Area
virtual double get_Area() const override
Get the area of the (closed) curve.
Definition: ogrcircularstring.cpp:867
wkbVariantPostGIS1
@ wkbVariantPostGIS1
Definition: ogr_core.h:427
OGRCircularString::IsValid
virtual OGRBoolean IsValid() const override
Test if the geometry is valid.
Definition: ogrcircularstring.cpp:707
OGRCurvePolygon::Intersects
virtual OGRBoolean Intersects(const OGRGeometry *) const override
Do these features intersect?
Definition: ogrcurvepolygon.cpp:802
OLCSequentialWrite
#define OLCSequentialWrite
Definition: ogr_core.h:749
OGRCurve::IsConvex
virtual OGRBoolean IsConvex() const
Returns if a (closed) curve forms a convex shape.
Definition: ogrcurve.cpp:278
OGRGeometry
Definition: ogr_geometry.h:286
OGRGeometry::IsValid
virtual OGRBoolean IsValid() const
Test if the geometry is valid.
Definition: ogrgeometry.cpp:2052
OGRGeometry::getGeometryName
virtual const char * getGeometryName() const =0
Fetch WKT name for geometry type.
OGR_DS_ExecuteSQL
OGRLayerH OGR_DS_ExecuteSQL(OGRDataSourceH, const char *, OGRGeometryH, const char *)
Execute an SQL statement against the data store.
Definition: ogrdatasource.cpp:214
OGRSFDriverH
void * OGRSFDriverH
Definition: ogr_api.h:512
ograpispy.h
wkbCircularString
@ wkbCircularString
Definition: ogr_core.h:333
OGRSimpleCurve::IsEmpty
virtual OGRBoolean IsEmpty() const override
Returns TRUE (non-zero) if the object has no points.
Definition: ogrlinestring.cpp:2494
OGR_DS_DeleteLayer
OGRErr OGR_DS_DeleteLayer(OGRDataSourceH, int)
Delete the indicated layer from the datasource.
Definition: ogrdatasource.cpp:175
OGRCompoundCurve::getEnvelope
virtual void getEnvelope(OGREnvelope *psEnvelope) const override
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure.
Definition: ogrcompoundcurve.cpp:252
OGRSpatialReference::FromHandle
static OGRSpatialReference * FromHandle(OGRSpatialReferenceH hSRS)
Definition: ogr_spatialref.h:652
OGRLayer
Definition: ogrsf_frmts.h:70
CPLString
Convenient string class based on std::string.
Definition: cpl_string.h:336
OGRPoint
Definition: ogr_geometry.h:809
OGRPointIterator::destroy
static void destroy(OGRPointIterator *)
Destroys a point iterator.
Definition: ogrcurve.cpp:450
OGRFieldDefn::GetPrecision
int GetPrecision() const
Get the formatting precision for this field. This should normally be zero for fields of types other t...
Definition: ogr_feature.h:130
OGRCompoundCurve::stealCurve
OGRCurve * stealCurve(int)
"Steal" reference to curve.
Definition: ogrcompoundcurve.cpp:500
ogr_geometry.h
OGRSimpleCurve::getY
double getY(int i) const
Get Y at vertex.
Definition: ogr_geometry.h:1161
OGRLayer::GetGeometryColumn
virtual const char * GetGeometryColumn()
This method returns the name of the underlying database column being used as the geometry column,...
Definition: ogrlayer.cpp:1623
OGRLayer::GetSpatialFilter
virtual OGRGeometry * GetSpatialFilter()
This method returns the current spatial filter for this layer.
Definition: ogrlayer.cpp:1084
OGRCurvePolygon::empty
virtual void empty() override
Clear geometry information. This restores the geometry to its initial state after construction,...
Definition: ogrcurvepolygon.cpp:131
OGRFeature::SetNativeData
void SetNativeData(const char *pszNativeData)
Sets the native data for the feature.
Definition: ogrfeature.cpp:6831
OGRGeometry::operator=
OGRGeometry & operator=(const OGRGeometry &other)
Assignment operator.
Definition: ogrgeometry.cpp:142
CPLRealloc
void * CPLRealloc(void *, size_t)
Definition: cpl_conv.cpp:225
OGRGeomFieldDefn::GetNameRef
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:203
OGRProj4CT
Definition: ogrct.cpp:151
wkbCircularStringZM
@ wkbCircularStringZM
Definition: ogr_core.h:388
OGRCompoundCurve::getGeometryType
virtual OGRwkbGeometryType getGeometryType() const override
Fetch geometry type.
Definition: ogrcompoundcurve.cpp:105
OGRCoordinateTransformation::DestroyCT
static void DestroyCT(OGRCoordinateTransformation *poCT)
OGRCoordinateTransformation destructor.
Definition: ogrct.cpp:465
OGRCompoundCurve::EndPoint
virtual void EndPoint(OGRPoint *) const override
Return the curve end point.
Definition: ogrcompoundcurve.cpp:303
EQUAL
#define EQUAL(a, b)
Definition: cpl_port.h:559
OGR_DS_SyncToDisk
OGRErr OGR_DS_SyncToDisk(OGRDataSourceH)
Definition: ogrdatasource.cpp:317
OGRStyleTableH
void * OGRStyleTableH
Definition: ogr_api.h:303
wkbHasZ
#define wkbHasZ(x)
Definition: ogr_core.h:446
OGRProj4CT::SetEmitErrors
virtual void SetEmitErrors(bool bEmitErrors) override
Definition: ogrct.cpp:214
OGRFeature::SetFieldsFrom
OGRErr SetFieldsFrom(const OGRFeature *, const int *, int=TRUE)
Set fields from another feature.
Definition: ogrfeature.cpp:5959
OGRFieldDefn::GetNameRef
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:113
wkbCircularStringZ
@ wkbCircularStringZ
Definition: ogr_core.h:352
OGRBoolean
int OGRBoolean
Definition: ogr_core.h:306
OGRCircularString::hasCurveGeometry
virtual OGRBoolean hasCurveGeometry(int bLookForNonLinear=FALSE) const override
Returns if this geometry is or has curve geometry.
Definition: ogrcircularstring.cpp:718
OGR_SRSNode::GetValue
const char * GetValue() const
Definition: ogr_spatialref.h:100
OGR_DS_TestCapability
int OGR_DS_TestCapability(OGRDataSourceH, const char *)
Test if capability is available.
Definition: ogrdatasource.cpp:255
OGRFieldDefn::SetPrecision
void SetPrecision(int nPrecisionIn)
Set the formatting precision for this field in characters.
Definition: ogr_feature.h:131
OGRPoint::setX
void setX(double xIn)
Assign point X coordinate.
Definition: ogr_geometry.h:865
OGRLayer::StartTransaction
virtual OGRErr StartTransaction() CPL_WARN_UNUSED_RESULT
For datasources which support transactions, StartTransaction creates a transaction.
Definition: ogrlayer.cpp:911
VSI_MALLOC2_VERBOSE
#define VSI_MALLOC2_VERBOSE(nSize1, nSize2)
Definition: cpl_vsi.h:270
OGRCompoundCurve::IsEmpty
virtual OGRBoolean IsEmpty() const override
Returns TRUE (non-zero) if the object has no points.
Definition: ogrcompoundcurve.cpp:270
OLCCurveGeometries
#define OLCCurveGeometries
Definition: ogr_core.h:764
wkbFlatten
#define wkbFlatten(x)
Definition: ogr_core.h:440
OGR_DS_ReleaseResultSet
void OGR_DS_ReleaseResultSet(OGRDataSourceH, OGRLayerH)
Release results of OGR_DS_ExecuteSQL().
Definition: ogrdatasource.cpp:238
CPLPushErrorHandler
void CPLPushErrorHandler(CPLErrorHandler)
Definition: cpl_error.cpp:1166
OGRGeometryFactory::curveToLineString
static OGRLineString * curveToLineString(double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2, int bHasZ, double dfMaxAngleStepSizeDegrees, const char *const *papszOptions=nullptr)
Converts an arc circle into an approximate line string.
Definition: ogrgeometryfactory.cpp:4831
OLCAlterFieldDefn
#define OLCAlterFieldDefn
Definition: ogr_core.h:757
OGRGeometry::exportToWkb
virtual OGRErr exportToWkb(OGRwkbByteOrder, unsigned char *, OGRwkbVariant=wkbVariantOldOgc) const =0
Convert a geometry into well known binary format.
CPLAssert
#define CPLAssert(expr)
Definition: cpl_error.h:182
OGRCompoundCurve::Value
virtual void Value(double, OGRPoint *) const override
Fetch point at given distance along curve.
Definition: ogrcompoundcurve.cpp:313
OGRRawPoint
Definition: ogr_geometry.h:63
OGRGeometry::clone
virtual OGRGeometry * clone() const CPL_WARN_UNUSED_RESULT=0
Make a copy of this object.
OGRCurvePolygon::exportToWkt
virtual OGRErr exportToWkt(char **ppszDstText, OGRwkbVariant eWkbVariant=wkbVariantOldOgc) const override
Convert a geometry into well known text format.
Definition: ogrcurvepolygon.cpp:542
OGRGeometry::flattenTo2D
virtual void flattenTo2D()=0
Convert geometry to strictly 2D. In a sense this converts all Z coordinates to 0.0.
OGRCurve::StartPoint
virtual void StartPoint(OGRPoint *) const =0
Return the curve start point.
OGRCompoundCurve::Equals
virtual OGRBoolean Equals(const OGRGeometry *) const override
Returns TRUE if two geometries are equivalent.
Definition: ogrcompoundcurve.cpp:382
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Definition: ogr_api.h:74
OGRLayer::RollbackTransaction
virtual OGRErr RollbackTransaction()
For datasources which support transactions, RollbackTransaction will roll back a datasource to its st...
Definition: ogrlayer.cpp:965
OGRCurvePolygon::WkbSize
virtual int WkbSize() const override
Returns size of related binary representation.
Definition: ogrcurvepolygon.cpp:443
OGRCompoundCurve::hasCurveGeometry
virtual OGRBoolean hasCurveGeometry(int bLookForNonLinear=FALSE) const override
Returns if this geometry is or has curve geometry.
Definition: ogrcompoundcurve.cpp:665
OGRCompoundCurve::set3D
virtual void set3D(OGRBoolean bIs3D) override
Add or remove the Z coordinate dimension.
Definition: ogrcompoundcurve.cpp:402
OGRGeomFieldDefn::GetSpatialRef
virtual OGRSpatialReference * GetSpatialRef() const
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:435
OCTTransformEx
int CPL_STDCALL OCTTransformEx(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, int *pabSuccess)
Definition: ogrct.cpp:1428
OGRSurface
Definition: ogr_geometry.h:1724
CPLTestBool
bool CPLTestBool(const char *pszValue)
Definition: cpl_string.cpp:1526
OGRSimpleCurve::operator=
OGRSimpleCurve & operator=(const OGRSimpleCurve &other)
Assignment operator.
Definition: ogrlinestring.cpp:113
OGRLineString::get_Area
virtual double get_Area() const override
Get the area of the (closed) curve.
OGRCurve::getNumPoints
virtual int getNumPoints() const =0
Return the number of points of a curve geometry.
OGRwkbByteOrder
OGRwkbByteOrder
Definition: ogr_core.h:489
OGRCoordinateTransformationH
void * OGRCoordinateTransformationH
Definition: ogr_api.h:76
OCTDestroyCoordinateTransformation
void CPL_STDCALL OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH)
OGRCoordinateTransformation destructor.
Definition: ogrct.cpp:438
OGRFeatureDefn::GetGeomFieldDefn
virtual OGRGeomFieldDefn * GetGeomFieldDefn(int i)
Fetch geometry field definition.
Definition: ogrfeaturedefn.cpp:680
OGRCircularString
Definition: ogr_geometry.h:1394
OGRCurvePolygon::OGRCurvePolygon
OGRCurvePolygon()
Create an empty curve polygon.
Definition: ogrcurvepolygon.cpp:52
OLCDeleteFeature
#define OLCDeleteFeature
Definition: ogr_core.h:759
OGRGeometryFactory::createGeometry
static OGRGeometry * createGeometry(OGRwkbGeometryType)
Create an empty geometry of desired type.
Definition: ogrgeometryfactory.cpp:527
OGRProj4CT::TransformEx
virtual int TransformEx(int nCount, double *x, double *y, double *z=nullptr, int *panSuccess=nullptr) override
Definition: ogrct.cpp:1069
wkbCurvePolygon
@ wkbCurvePolygon
Definition: ogr_core.h:336
OGRFeature::GetStyleString
virtual const char * GetStyleString() const
Fetch style string for this feature.
Definition: ogrfeature.cpp:6114
OGRGeometry::Intersects
virtual OGRBoolean Intersects(const OGRGeometry *) const
Do these features intersect?
Definition: ogrgeometry.cpp:491
OGRFeature::GetFieldIndex
int GetFieldIndex(const char *pszName) const
Fetch the field index given field name.
Definition: ogr_feature.h:605
CPLE_ObjectNull
#define CPLE_ObjectNull
Definition: cpl_error.h:117
OGRSimpleCurve::StartPoint
virtual void StartPoint(OGRPoint *) const override
Return the curve start point.
Definition: ogrlinestring.cpp:1956
OGRCompoundCurve::addCurveDirectly
OGRErr addCurveDirectly(OGRCurve *, double dfToleranceEps=1e-14)
Add a curve directly to the container.
Definition: ogrcompoundcurve.cpp:558
OGRLayer::ToHandle
static OGRLayerH ToHandle(OGRLayer *poLayer)
Definition: ogrsf_frmts.h:252
OGRGeometry::toPoint
OGRPoint * toPoint()
Definition: ogr_geometry.h:523
VALIDATE_POINTER1
#define VALIDATE_POINTER1(ptr, func, rc)
Definition: cpl_error.h:260
OGRLayer::CommitTransaction
virtual OGRErr CommitTransaction() CPL_WARN_UNUSED_RESULT
For datasources which support transactions, CommitTransaction commits a transaction.
Definition: ogrlayer.cpp:938
OGRCurvePolygon::set3D
virtual void set3D(OGRBoolean bIs3D) override
Add or remove the Z coordinate dimension.
Definition: ogrcurvepolygon.cpp:697
OGRERR_FAILURE
#define OGRERR_FAILURE
Definition: ogr_core.h:298
OGR_SRSNode::GetChild
OGR_SRSNode * GetChild(int)
Definition: ogr_srsnode.cpp:122
wkbCircularStringM
@ wkbCircularStringM
Definition: ogr_core.h:370
OGRCompoundCurve::get_Length
virtual double get_Length() const override
Returns the length of the curve.
Definition: ogrcompoundcurve.cpp:281
OGRERR_NOT_ENOUGH_MEMORY
#define OGRERR_NOT_ENOUGH_MEMORY
Definition: ogr_core.h:294
OGRCompoundCurve::clone
virtual OGRGeometry * clone() const override
Make a copy of this object.
Definition: ogrcompoundcurve.cpp:225
OGRSimpleCurve::importFromWkb
virtual OGRErr importFromWkb(const unsigned char *, int, OGRwkbVariant, int &nBytesConsumedOut) override
Assign geometry from well known binary data.
Definition: ogrlinestring.cpp:1505
ogrsf_frmts.h
wkbCurvePolygonM
@ wkbCurvePolygonM
Definition: ogr_core.h:372
OGRCurvePolygon::transform
virtual OGRErr transform(OGRCoordinateTransformation *poCT) override
Apply arbitrary coordinate transformation to geometry.
Definition: ogrcurvepolygon.cpp:661
OGRSpatialReference::Dereference
int Dereference()
Decrements the reference count by one.
Definition: ogrspatialreference.cpp:348
OGRSimpleCurve::end
Iterator end()
Definition: ogrcurve.cpp:519
CPLDebug
void CPLDebug(const char *, const char *,...)
Definition: cpl_error.cpp:544
OGRLineString::CurveToLine
virtual OGRLineString * CurveToLine(double dfMaxAngleStepSizeDegrees=0, const char *const *papszOptions=nullptr) const override
Return a linestring from a curve geometry.
Definition: ogrlinestring.cpp:2752
OGRCurve::ContainsPoint
virtual int ContainsPoint(const OGRPoint *p) const
Returns if a point is contained in a (closed) curve.
Definition: ogrcurve.cpp:398
OGRCurvePolygon::setCoordinateDimension
virtual void setCoordinateDimension(int nDimension) override
Set the coordinate dimension.
Definition: ogrcurvepolygon.cpp:691
OGRDataSourceH
void * OGRDataSourceH
Definition: ogr_api.h:510
OGRFieldDefn
Definition: ogr_feature.h:92
ogr_srs_api.h
OGRCurve::getDimension
virtual int getDimension() const override
Get the dimension of this object.
Definition: ogrcurve.cpp:74
OGRFeature::SetStyleString
virtual void SetStyleString(const char *)
Set feature style string.
Definition: ogrfeature.cpp:6166
OGRCurvePolygon::importFromWkb
virtual OGRErr importFromWkb(const unsigned char *, int, OGRwkbVariant, int &nBytesConsumedOut) override
Assign geometry from well known binary data.
Definition: ogrcurvepolygon.cpp:467
CPLMalloc
void * CPLMalloc(size_t)
Definition: cpl_conv.cpp:168
wkbVariantIso
@ wkbVariantIso
Definition: ogr_core.h:426
OGR_GT_IsCurve
int OGR_GT_IsCurve(OGRwkbGeometryType)
Return if a geometry type is an instance of Curve.
Definition: ogrgeometry.cpp:6499
OGRSimpleCurve::addSubLineString
void addSubLineString(const OGRLineString *, int nStartVertex=0, int nEndVertex=-1)
Add a segment of another linestring to this one.
Definition: ogrlinestring.cpp:1416
OGRSimpleCurve::addPoint
void addPoint(const OGRPoint *)
Add a point to a line string.
Definition: ogrlinestring.cpp:783
OGRGeometry::assignSpatialReference
virtual void assignSpatialReference(OGRSpatialReference *poSR)
Assign spatial reference to this object.
Definition: ogrgeometry.cpp:421
OGRCurvePolygon::getGeometryType
virtual OGRwkbGeometryType getGeometryType() const override
Fetch geometry type.
Definition: ogrcurvepolygon.cpp:141
OGRCurve::toSimpleCurve
OGRSimpleCurve * toSimpleCurve()
Definition: ogr_geometry.h:1001
cpl_conv.h
OGRCircularString::getGeometryName
virtual const char * getGeometryName() const override
Fetch WKT name for geometry type.
Definition: ogrcircularstring.cpp:127
wkbNone
@ wkbNone
Definition: ogr_core.h:349
OGRCurvePolygon::CastToPolygon
static OGRPolygon * CastToPolygon(OGRCurvePolygon *poCP)
Convert to polygon.
Definition: ogrcurvepolygon.cpp:833
cpl_string.h
OGRGeometry::getSpatialReference
OGRSpatialReference * getSpatialReference(void) const
Returns spatial reference system for object.
Definition: ogr_geometry.h:434
OGRGeometry::toLineString
OGRLineString * toLineString()
Definition: ogr_geometry.h:565
OGRFeature::SetGeomFieldDirectly
OGRErr SetGeomFieldDirectly(int iField, OGRGeometry *)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:802
OGRCurve::CastToCompoundCurve
static OGRCompoundCurve * CastToCompoundCurve(OGRCurve *puCurve)
Cast to compound curve.
Definition: ogrcurve.cpp:324
OGR_DS_CopyLayer
OGRLayerH OGR_DS_CopyLayer(OGRDataSourceH, OGRLayerH, const char *, char **)
Duplicate an existing layer.
Definition: ogrdatasource.cpp:157
OGRCurve::EndPoint
virtual void EndPoint(OGRPoint *) const =0
Return the curve end point.
OGRCurvePolygon::clone
virtual OGRGeometry * clone() const override
Make a copy of this object.
Definition: ogrcurvepolygon.cpp:106
OLCRandomWrite
#define OLCRandomWrite
Definition: ogr_core.h:750
OGRCompoundCurve::exportToWkb
virtual OGRErr exportToWkb(OGRwkbByteOrder, unsigned char *, OGRwkbVariant=wkbVariantOldOgc) const override
Convert a geometry into well known binary format.
Definition: ogrcompoundcurve.cpp:177
VSI_CALLOC_VERBOSE
#define VSI_CALLOC_VERBOSE(nCount, nSize)
Definition: cpl_vsi.h:280
CPLErrorReset
void CPLErrorReset(void)
Definition: cpl_error.cpp:710
wkbCompoundCurveM
@ wkbCompoundCurveM
Definition: ogr_core.h:371
OGR_DS_GetLayer
OGRLayerH OGR_DS_GetLayer(OGRDataSourceH, int)
Fetch a layer by index.
Definition: ogrdatasource.cpp:285
OGRDataSource
Definition: ogrsf_frmts.h:315
OGRSimpleCurve
Definition: ogr_geometry.h:1034
OGRCircularString::importFromWkt
OGRErr importFromWkt(const char **) override
Definition: ogrcircularstring.cpp:189
OGRCompoundCurve::swapXY
virtual void swapXY() override
Swap x and y coordinates.
Definition: ogrcompoundcurve.cpp:656
OGRLayer::SetSpatialFilterRect
virtual void SetSpatialFilterRect(double dfMinX, double dfMinY, double dfMaxX, double dfMaxY)
Set a new rectangular spatial filter.
Definition: ogrlayer.cpp:1183
OGRGeometryH
void * OGRGeometryH
Definition: ogr_api.h:60
CPLError
void CPLError(CPLErr eErrClass, CPLErrorNum err_no, const char *fmt,...)
Definition: cpl_error.cpp:232
OGRGeomFieldDefn
Definition: ogr_feature.h:182
OGRSimpleCurve::exportToWkt
virtual OGRErr exportToWkt(char **ppszDstText, OGRwkbVariant=wkbVariantOldOgc) const override
Convert a geometry into well known text format.
Definition: ogrlinestring.cpp:1838
OGRCompoundCurve::getNumCurves
int getNumCurves() const
Return the number of curves.
Definition: ogrcompoundcurve.cpp:435
OGRLayer::FromHandle
static OGRLayer * FromHandle(OGRLayerH hLayer)
Definition: ogrsf_frmts.h:258
VSIFree
void VSIFree(void *)
Definition: cpl_vsisimple.cpp:823
OGRCompoundCurve::getCurve
OGRCurve * getCurve(int)
Fetch reference to indicated internal ring.
Definition: ogrcompoundcurve.cpp:459
CPLE_NotSupported
#define CPLE_NotSupported
Definition: cpl_error.h:109
OGRERR_NOT_ENOUGH_DATA
#define OGRERR_NOT_ENOUGH_DATA
Definition: ogr_core.h:293
OGRERR_CORRUPT_DATA
#define OGRERR_CORRUPT_DATA
Definition: ogr_core.h:297
OGRCoordinateTransformation
Definition: ogr_spatialref.h:673
OLCCreateField
#define OLCCreateField
Definition: ogr_core.h:754
OGRCompoundCurve::StartPoint
virtual void StartPoint(OGRPoint *) const override
Return the curve start point.
Definition: ogrcompoundcurve.cpp:293
OGRCurve::getPointIterator
virtual OGRPointIterator * getPointIterator() const =0
Returns a point iterator over the curve.
OGRCircularString::importFromWkb
virtual OGRErr importFromWkb(const unsigned char *, int, OGRwkbVariant, int &nBytesConsumedOut) override
Assign geometry from well known binary data.
Definition: ogrcircularstring.cpp:140
OGRFieldDefn::GetType
OGRFieldType GetType() const
Fetch type of this field.
Definition: ogr_feature.h:115
OGRCoordinateTransformation::FromHandle
static OGRCoordinateTransformation * FromHandle(OGRCoordinateTransformationH hCT)
Definition: ogr_spatialref.h:742
OGRSpatialReference::GetExtension
const char * GetExtension(const char *pszTargetKey, const char *pszName, const char *pszDefault=nullptr) const
Fetch extension value.
Definition: ogrspatialreference.cpp:8077
OGRSimpleCurve::getZ
double getZ(int i) const
Get Z at vertex.
Definition: ogrlinestring.cpp:380
OGRCurve::get_IsClosed
virtual int get_IsClosed() const
Return TRUE if curve is closed.
Definition: ogrcurve.cpp:97
OGR_DS_SetStyleTableDirectly
void OGR_DS_SetStyleTableDirectly(OGRDataSourceH, OGRStyleTableH)
Definition: ogrdatasource.cpp:359
OGRGeometry::toLinearRing
OGRLinearRing * toLinearRing()
Definition: ogr_geometry.h:579
OGRErr
int OGRErr
Definition: ogr_core.h:290
wkbCompoundCurveZ
@ wkbCompoundCurveZ
Definition: ogr_core.h:353
OGRGeometry::toCurvePolygon
OGRCurvePolygon * toCurvePolygon()
Definition: ogr_geometry.h:663
OGRProj4CT::GetEmitErrors
virtual bool GetEmitErrors() override
Definition: ogrct.cpp:213
OGRGeometry::segmentize
virtual void segmentize(double dfMaxLength)
Modify the geometry such it has no segment longer then the given distance.
Definition: ogrgeometry.cpp:789
CSLDestroy
void CSLDestroy(char **papszStrList)
Definition: cpl_string.cpp:200
M_PI
#define M_PI
Definition: cpl_port.h:407
GIntBig
long long GIntBig
Definition: cpl_port.h:246
OCTTransform
int CPL_STDCALL OCTTransform(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z)
Definition: ogrct.cpp:1046
OGRFeature::GetFieldDefnRef
const OGRFieldDefn * GetFieldDefnRef(int iField) const
Fetch definition for this field.
Definition: ogr_feature.h:601
OGRCompoundCurve::getLinearGeometry
virtual OGRGeometry * getLinearGeometry(double dfMaxAngleStepSizeDegrees=0, const char *const *papszOptions=nullptr) const override
Return, possibly approximate, non-curve version of this geometry.
Definition: ogrcompoundcurve.cpp:680
OGRGeometry::toGeometryCollection
OGRGeometryCollection * toGeometryCollection()
Definition: ogr_geometry.h:677
OGRCurvePolygon::getExteriorRingCurve
OGRCurve * getExteriorRingCurve()
Fetch reference to external polygon ring.
Definition: ogrcurvepolygon.cpp:204
OGRCurvePolygon::getNumInteriorRings
int getNumInteriorRings() const
Fetch the number of internal rings.
Definition: ogrcurvepolygon.cpp:241
OLCTransactions
#define OLCTransactions
Definition: ogr_core.h:758
OGRGeometryFactory::GetCurveParmeters
static int GetCurveParmeters(double x0, double y0, double x1, double y1, double x2, double y2, double &R, double &cx, double &cy, double &alpha0, double &alpha1, double &alpha2)
Returns the parameter of an arc circle.
Definition: ogrgeometryfactory.cpp:4571
VSI_MALLOC_VERBOSE
#define VSI_MALLOC_VERBOSE(size)
Definition: cpl_vsi.h:265
OGRCompoundCurve::empty
virtual void empty() override
Clear geometry information. This restores the geometry to its initial state after construction,...
Definition: ogrcompoundcurve.cpp:243
OGRSimpleCurve::EndPoint
virtual void EndPoint(OGRPoint *) const override
Return the curve end point.
Definition: ogrlinestring.cpp:1966
OGRwkbGeometryType
OGRwkbGeometryType
Definition: ogr_core.h:317
OGRCurvePolygon::Equals
virtual OGRBoolean Equals(const OGRGeometry *) const override
Returns TRUE if two geometries are equivalent.
Definition: ogrcurvepolygon.cpp:642
OGRGeometryFactory::createFromWkb
static OGRErr createFromWkb(const void *, OGRSpatialReference *, OGRGeometry **, int=-1, OGRwkbVariant=wkbVariantOldOgc)
Create a geometry object of the appropriate type from its well known binary representation.
Definition: ogrgeometryfactory.cpp:105
CPL_UNUSED
#define CPL_UNUSED
Definition: cpl_port.h:938
OLCDeleteField
#define OLCDeleteField
Definition: ogr_core.h:755
OGR_DS_GetStyleTable
OGRStyleTableH OGR_DS_GetStyleTable(OGRDataSourceH)
Definition: ogrdatasource.cpp:346
OGRCircularString::operator=
OGRCircularString & operator=(const OGRCircularString &other)
Assignment operator.
Definition: ogrcircularstring.cpp:97
OGRFeature
Definition: ogr_feature.h:353
cpl_port.h
OGRCurvePolygon::getGeometryName
virtual const char * getGeometryName() const override
Fetch WKT name for geometry type.
Definition: ogrcurvepolygon.cpp:178
OGRPoint::setY
void setY(double yIn)
Assign point Y coordinate.
Definition: ogr_geometry.h:869
OGRCompoundCurve::flattenTo2D
virtual void flattenTo2D() override
Convert geometry to strictly 2D. In a sense this converts all Z coordinates to 0.0.
Definition: ogrcompoundcurve.cpp:638
OGRCurvePolygon::removeRing
OGRErr removeRing(int iIndex, bool bDelete=true)
Remove a geometry from the container.
Definition: ogrcurvepolygon.cpp:342
OGRFeature::GetNativeMediaType
const char * GetNativeMediaType() const
Returns the native media type for the feature.
Definition: ogr_feature.h:745
OGRCompoundCurve::get_AreaOfCurveSegments
virtual double get_AreaOfCurveSegments() const override
Definition: ogrcompoundcurve.cpp:904
ogr_api.h
OGRFeature::SetGeomField
OGRErr SetGeomField(int iField, const OGRGeometry *)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:880
OGRCurve::ConstIterator::Private
Definition: ogrcurve.cpp:577
OGRPoint::getZ
double getZ() const
Fetch Z coordinate.
Definition: ogr_geometry.h:856
OGRPoint::setZ
void setZ(double zIn)
Assign point Z coordinate. Calling this method will force the geometry coordinate dimension to 3D (wk...
Definition: ogr_geometry.h:873
OCTNewCoordinateTransformation
OGRCoordinateTransformationH CPL_STDCALL OCTNewCoordinateTransformation(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS)
Definition: ogrct.cpp:542
OGRCurvePolygon::addRing
virtual OGRErr addRing(OGRCurve *)
Add a ring to a polygon.
Definition: ogrcurvepolygon.cpp:365
OGRGeometry::WkbSize
virtual int WkbSize() const =0
Returns size of related binary representation.
OGRCompoundCurve::assignSpatialReference
virtual void assignSpatialReference(OGRSpatialReference *poSR) override
Assign spatial reference to this object.
Definition: ogrcompoundcurve.cpp:416
OGRCompoundCurve::getPointIterator
virtual OGRPointIterator * getPointIterator() const override
Returns a point iterator over the curve.
Definition: ogrcompoundcurve.cpp:748
OGRGeometry::IsMeasured
OGRBoolean IsMeasured() const
Definition: ogr_geometry.h:364
OGRCurvePolygon::operator=
OGRCurvePolygon & operator=(const OGRCurvePolygon &other)
Assignment operator.
Definition: ogrcurvepolygon.cpp:91
OGRCompoundCurve::setCoordinateDimension
virtual void setCoordinateDimension(int nDimension) override
Set the coordinate dimension.
Definition: ogrcompoundcurve.cpp:397
OGRCurve
Definition: ogr_geometry.h:925
OGRCurvePolygon::assignSpatialReference
virtual void assignSpatialReference(OGRSpatialReference *poSR) override
Assign spatial reference to this object.
Definition: ogrcurvepolygon.cpp:711
OGRPoint::getY
double getY() const
Fetch Y coordinate.
Definition: ogr_geometry.h:854
OGRCompoundCurve::OGRCompoundCurve
OGRCompoundCurve()
Create an empty compound curve.
Definition: ogrcompoundcurve.cpp:51
OGRCurvePolygon::segmentize
virtual void segmentize(double dfMaxLength) override
Modify the geometry such it has no segment longer then the given distance.
Definition: ogrcurvepolygon.cpp:729
wkbGeometryCollection
@ wkbGeometryCollection
Definition: ogr_core.h:330
OGRFeatureDefn::GetGeomFieldCount
virtual int GetGeomFieldCount() const
Fetch number of geometry fields on this feature.
Definition: ogrfeaturedefn.cpp:631
OGRCircularString::getGeometryType
virtual OGRwkbGeometryType getGeometryType() const override
Fetch geometry type.
Definition: ogrcircularstring.cpp:110
OGRCircularString::getLinearGeometry
virtual OGRGeometry * getLinearGeometry(double dfMaxAngleStepSizeDegrees=0, const char *const *papszOptions=nullptr) const override
Return, possibly approximate, non-curve version of this geometry.
Definition: ogrcircularstring.cpp:728
OGRCurvePolygon::Contains
virtual OGRBoolean Contains(const OGRGeometry *) const override
Test for containment.
Definition: ogrcurvepolygon.cpp:786
OGRLayer::SetNextByIndex
virtual OGRErr SetNextByIndex(GIntBig nIndex)
Move read cursor to the nIndex'th feature in the current resultset.
Definition: ogrlayer.cpp:498
OGRGeometry::transform
virtual OGRErr transform(OGRCoordinateTransformation *poCT)=0
Apply arbitrary coordinate transformation to geometry.
OGRSpatialReference::GetAttrNode
OGR_SRSNode * GetAttrNode(const char *)
Find named node in tree.
Definition: ogrspatialreference.cpp:465
OGRProj4CT::GetSourceCS
virtual OGRSpatialReference * GetSourceCS() override
Definition: ogrct.cpp:989
OGRSimpleCurve::ConstIterator::Private
Definition: ogrcurve.cpp:528
OGRFieldDefn::SetWidth
void SetWidth(int nWidthIn)
Set the formatting width for this field in characters.
Definition: ogr_feature.h:128
OGRLinearRing
Definition: ogr_geometry.h:1312
OGRERR_NONE
#define OGRERR_NONE
Definition: ogr_core.h:292
CPLStrdup
char * CPLStrdup(const char *)
Definition: cpl_conv.cpp:293
OGRFeatureDefn
Definition: ogr_feature.h:259
CPLAtof
double CPLAtof(const char *)
Definition: cpl_strtod.cpp:117
OGRCircularString::Value
virtual void Value(double, OGRPoint *) const override
Fetch point at given distance along curve.
Definition: ogrcircularstring.cpp:567
OGRLayer::GetGeomType
virtual OGRwkbGeometryType GetGeomType()
Return the layer geometry type.
Definition: ogrlayer.cpp:1754
OGRCircularString::getEnvelope
virtual void getEnvelope(OGREnvelope *psEnvelope) const override
Computes and returns the bounding envelope for this geometry in the passed psEnvelope structure.
Definition: ogrcircularstring.cpp:331
CPLGetLastErrorType
CPLErr CPLGetLastErrorType(void)
Definition: cpl_error.cpp:823
OGRCurve::CastToLinearRing
static OGRLinearRing * CastToLinearRing(OGRCurve *poCurve)
Cast to linear ring.
Definition: ogrcurve.cpp:377
CPLE_IllegalArg
#define CPLE_IllegalArg
Definition: cpl_error.h:107
OGR_SRSNode
Definition: ogr_spatialref.h:65
OGRCurvePolygon::importFromWkt
OGRErr importFromWkt(const char **) override
Definition: ogrcurvepolygon.cpp:526
OGRLayer::SetAttributeFilter
virtual OGRErr SetAttributeFilter(const char *)
Set a new attribute query.
Definition: ogrlayer.cpp:337
OGR_DS_SetStyleTable
void OGR_DS_SetStyleTable(OGRDataSourceH, OGRStyleTableH)
Definition: ogrdatasource.cpp:373
wkbLineString
@ wkbLineString
Definition: ogr_core.h:322
OGRCurvePolygon::setMeasured
virtual void setMeasured(OGRBoolean bIsMeasured) override
Add or remove the M coordinate dimension.
Definition: ogrcurvepolygon.cpp:702
OGRCurve::IntersectsPoint
virtual int IntersectsPoint(const OGRPoint *p) const
Returns if a point intersects a (closed) curve.
Definition: ogrcurve.cpp:418
OGRFeature::GetGeomFieldRef
OGRGeometry * GetGeomFieldRef(int iField)
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:666
OGRPolygon
Definition: ogr_geometry.h:1909
wkbMultiLineString
@ wkbMultiLineString
Definition: ogr_core.h:328
OGRCurvePolygon
Definition: ogr_geometry.h:1759
OGRCompoundCurve::CurveToLine
virtual OGRLineString * CurveToLine(double dfMaxAngleStepSizeDegrees=0, const char *const *papszOptions=nullptr) const override
Return a linestring from a curve geometry.
Definition: ogrcompoundcurve.cpp:372
OGRCurvePolygon::getInteriorRingCurve
OGRCurve * getInteriorRingCurve(int)
Fetch reference to indicated internal ring.
Definition: ogrcurvepolygon.cpp:269
CPLQuietErrorHandler
void CPLQuietErrorHandler(CPLErr, CPLErrorNum, const char *)
Definition: cpl_error.cpp:948
ogr_core.h
OGRCircularString::CurveToLine
virtual OGRLineString * CurveToLine(double dfMaxAngleStepSizeDegrees=0, const char *const *papszOptions=nullptr) const override
Return a linestring from a curve geometry.
Definition: ogrcircularstring.cpp:664
OGRCompoundCurve::operator=
OGRCompoundCurve & operator=(const OGRCompoundCurve &other)
Assignment operator.
Definition: ogrcompoundcurve.cpp:90
OGRERR_NON_EXISTING_FEATURE
#define OGRERR_NON_EXISTING_FEATURE
Definition: ogr_core.h:301
OGRLayerH
void * OGRLayerH
Definition: ogr_api.h:508
OGRERR_INVALID_HANDLE
#define OGRERR_INVALID_HANDLE
Definition: ogr_core.h:300
OGRCurvePolygon::getDimension
virtual int getDimension() const override
Get the dimension of this object.
Definition: ogrcurvepolygon.cpp:158
OGRCurvePolygon::getLinearGeometry
virtual OGRGeometry * getLinearGeometry(double dfMaxAngleStepSizeDegrees=0, const char *const *papszOptions=nullptr) const override
Return, possibly approximate, non-curve version of this geometry.
Definition: ogrcurvepolygon.cpp:612
OGRSpatialReference::IsGeographic
int IsGeographic() const
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:6542
CPLFree
#define CPLFree
Definition: cpl_conv.h:81
wkbUnknown
@ wkbUnknown
Definition: ogr_core.h:319
OGRSimpleCurve::reversePoints
void reversePoints(void)
Reverse point order.
Definition: ogrlinestring.cpp:1378
OGRGeometry::setMeasured
virtual void setMeasured(OGRBoolean bIsMeasured)
Add or remove the M coordinate dimension.
Definition: ogrgeometry.cpp:1053
OGRCurvePolygon::exportToWkb
virtual OGRErr exportToWkb(OGRwkbByteOrder, unsigned char *, OGRwkbVariant=wkbVariantOldOgc) const override
Convert a geometry into well known binary format.
Definition: ogrcurvepolygon.cpp:498
OGRFeature::GetNativeData
const char * GetNativeData() const
Returns the native data for the feature.
Definition: ogr_feature.h:744
OGRwkbVariant
OGRwkbVariant
Definition: ogr_core.h:423
OGRFeature::GetFID
GIntBig GetFID() const
Get feature identifier.
Definition: ogr_feature.h:711
OGRCurvePolygon::stealExteriorRingCurve
OGRCurve * stealExteriorRingCurve()
"Steal" reference to external ring.
Definition: ogrcurvepolygon.cpp:310
OGRGeometry::toCompoundCurve
OGRCompoundCurve * toCompoundCurve()
Definition: ogr_geometry.h:607
OGRCurvePolygon::swapXY
virtual void swapXY() override
Swap x and y coordinates.
Definition: ogrcurvepolygon.cpp:743
OGRPoint::getX
double getX() const
Fetch X coordinate.
Definition: ogr_geometry.h:852
CPLGetConfigOption
const char * CPLGetConfigOption(const char *, const char *)
Definition: cpl_conv.cpp:1690
OGRGeometry::getIsoGeometryType
OGRwkbGeometryType getIsoGeometryType() const
Get the geometry type that conforms with ISO SQL/MM Part3.
Definition: ogrgeometry.cpp:761
OGR_DS_GetLayerByName
OGRLayerH OGR_DS_GetLayerByName(OGRDataSourceH, const char *)
Fetch a layer by name.
Definition: ogrdatasource.cpp:194
OGRCurve::get_Area
virtual double get_Area() const =0
Get the area of the (closed) curve.
OGR_DS_CreateLayer
OGRLayerH OGR_DS_CreateLayer(OGRDataSourceH, const char *, OGRSpatialReferenceH, OGRwkbGeometryType, char **)
This function attempts to create a new layer on the data source with the indicated name,...
Definition: ogrdatasource.cpp:127
STARTS_WITH_CI
#define STARTS_WITH_CI(a, b)
Definition: cpl_port.h:570
OGRCompoundCurve::getGeometryName
virtual const char * getGeometryName() const override
Fetch WKT name for geometry type.
Definition: ogrcompoundcurve.cpp:122
CPLE_AppDefined
#define CPLE_AppDefined
Definition: cpl_error.h:99
GUInt32
unsigned int GUInt32
Definition: cpl_port.h:205

Generated for GDAL by doxygen 1.8.17.