OGR
ogrunionlayer.h
1 /******************************************************************************
2  * $Id: ogrunionlayer.h 10e54d45fee8229428eb8ab22949aa46eb9da150 2018-05-06 11:07:25 +0200 Even Rouault $
3  *
4  * Project: OpenGIS Simple Features Reference Implementation
5  * Purpose: Defines OGRUnionLayer class
6  * Author: Even Rouault, even dot rouault at mines dash paris dot org
7  *
8  ******************************************************************************
9  * Copyright (c) 2012-2014, Even Rouault <even dot rouault at mines-paris dot org>
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 OGRUNIONLAYER_H_INCLUDED
31 #define OGRUNIONLAYER_H_INCLUDED
32 
33 #ifndef DOXYGEN_SKIP
34 
35 #include "ogrsf_frmts.h"
36 
37 /************************************************************************/
38 /* OGRUnionLayerGeomFieldDefn */
39 /************************************************************************/
40 
41 class OGRUnionLayerGeomFieldDefn: public OGRGeomFieldDefn
42 {
43  public:
44 
45  int bGeomTypeSet = false;
46  int bSRSSet = false;
47  OGREnvelope sStaticEnvelope{};
48 
49  OGRUnionLayerGeomFieldDefn(const char* pszName, OGRwkbGeometryType eType);
50  explicit OGRUnionLayerGeomFieldDefn(OGRGeomFieldDefn* poSrc);
51  explicit OGRUnionLayerGeomFieldDefn(OGRUnionLayerGeomFieldDefn* poSrc);
52  ~OGRUnionLayerGeomFieldDefn();
53 };
54 
55 /************************************************************************/
56 /* OGRUnionLayer */
57 /************************************************************************/
58 
59 typedef enum
60 {
61  FIELD_FROM_FIRST_LAYER,
62  FIELD_UNION_ALL_LAYERS,
63  FIELD_INTERSECTION_ALL_LAYERS,
64  FIELD_SPECIFIED,
65 } FieldUnionStrategy;
66 
67 class OGRUnionLayer : public OGRLayer
68 {
69  CPL_DISALLOW_COPY_ASSIGN(OGRUnionLayer)
70 
71  protected:
72  CPLString osName;
73  int nSrcLayers;
74  OGRLayer **papoSrcLayers;
75  int bHasLayerOwnership;
76 
77  OGRFeatureDefn *poFeatureDefn;
78  int nFields;
79  OGRFieldDefn **papoFields;
80  int nGeomFields;
81  OGRUnionLayerGeomFieldDefn **papoGeomFields;
82  FieldUnionStrategy eFieldStrategy;
83  CPLString osSourceLayerFieldName{};
84 
85  int bPreserveSrcFID;
86 
87  GIntBig nFeatureCount;
88 
89  int iCurLayer;
90  char *pszAttributeFilter;
91  int nNextFID;
92  int *panMap;
93  char **papszIgnoredFields;
94  int bAttrFilterPassThroughValue;
95  int *pabModifiedLayers;
96  int *pabCheckIfAutoWrap;
97  OGRSpatialReference *poGlobalSRS;
98 
99  void AutoWarpLayerIfNecessary(int iSubLayer);
100  OGRFeature *TranslateFromSrcLayer(OGRFeature* poSrcFeature);
101  void ApplyAttributeFilterToSrcLayer(int iSubLayer);
102  int GetAttrFilterPassThroughValue();
103  void ConfigureActiveLayer();
104  void SetSpatialFilterToSourceLayer(OGRLayer* poSrcLayer);
105 
106  public:
107  OGRUnionLayer( const char* pszName,
108  int nSrcLayers, /* must be >= 1 */
109  OGRLayer** papoSrcLayers, /* array itself ownership always transferred, layer ownership depending on bTakeLayerOwnership */
110  int bTakeLayerOwnership);
111 
112  virtual ~OGRUnionLayer();
113 
114  /* All the following non virtual methods must be called just after the constructor */
115  /* and before any virtual method */
116  void SetFields(FieldUnionStrategy eFieldStrategy,
117  int nFields,
118  OGRFieldDefn** papoFields, /* duplicated by the method */
119  int nGeomFields, /* maybe -1 to explicitly disable geometry fields */
120  OGRUnionLayerGeomFieldDefn** papoGeomFields /* duplicated by the method */);
121  void SetSourceLayerFieldName(const char* pszSourceLayerFieldName);
122  void SetPreserveSrcFID(int bPreserveSrcFID);
123  void SetFeatureCount(int nFeatureCount);
124  virtual const char *GetName() override { return osName.c_str(); }
125  virtual OGRwkbGeometryType GetGeomType() override;
126 
127  virtual void ResetReading() override;
128  virtual OGRFeature *GetNextFeature() override;
129 
130  virtual OGRFeature *GetFeature( GIntBig nFeatureId ) override;
131 
132  virtual OGRErr ICreateFeature( OGRFeature* poFeature ) override;
133 
134  virtual OGRErr ISetFeature( OGRFeature* poFeature ) override;
135 
136  virtual OGRFeatureDefn *GetLayerDefn() override;
137 
138  virtual OGRSpatialReference *GetSpatialRef() override;
139 
140  virtual GIntBig GetFeatureCount( int ) override;
141 
142  virtual OGRErr SetAttributeFilter( const char * ) override;
143 
144  virtual int TestCapability( const char * ) override;
145 
146  virtual OGRErr GetExtent(int iGeomField, OGREnvelope *psExtent, int bForce = TRUE) override;
147  virtual OGRErr GetExtent( OGREnvelope *psExtent, int bForce ) override;
148 
149  virtual void SetSpatialFilter( OGRGeometry * poGeomIn ) override;
150  virtual void SetSpatialFilter( int iGeomField, OGRGeometry * ) override;
151 
152  virtual OGRErr SetIgnoredFields( const char **papszFields ) override;
153 
154  virtual OGRErr SyncToDisk() override;
155 };
156 
157 #endif /* #ifndef DOXYGEN_SKIP */
158 
159 #endif // OGRUNIONLAYER_H_INCLUDED
OGRLayer::GetName
virtual const char * GetName()
Return the layer name.
Definition: ogrlayer.cpp:1728
OGRSpatialReference::SetAxisMappingStrategy
void SetAxisMappingStrategy(OSRAxisMappingStrategy)
Set the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:10635
OGRSpatialReference::exportToPrettyWkt
OGRErr exportToPrettyWkt(char **, int=FALSE) const
Definition: ogrspatialreference.cpp:1266
OGRSpatialReference::GetPrimeMeridian
double GetPrimeMeridian(char **) const CPL_WARN_DEPRECATED("Use GetPrimeMeridian( const char**) instead")
Fetch prime meridian info.
Definition: ogrspatialreference.cpp:2765
OGRSpatialReference::SetEC
OGRErr SetEC(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5434
OGR_SRSNode::DestroyChild
void DestroyChild(int)
Definition: ogr_srsnode.cpp:322
SRS_PP_CENTRAL_MERIDIAN
#define SRS_PP_CENTRAL_MERIDIAN
Definition: ogr_srs_api.h:247
SRS_UA_DEGREE_CONV
#define SRS_UA_DEGREE_CONV
Definition: ogr_srs_api.h:424
OGR_SRSNode::GetChildCount
int GetChildCount() const
Definition: ogr_spatialref.h:88
OLCFastSpatialFilter
#define OLCFastSpatialFilter
Definition: ogr_core.h:755
OGRSpatialReference::importFromCRSURL
OGRErr importFromCRSURL(const char *)
Initialize from OGC URL.
Definition: ogrspatialreference.cpp:3801
OGRGeometry::Is3D
OGRBoolean Is3D() const
Definition: ogr_geometry.h:363
OSRSetEC
OGRErr OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5454
OLCIgnoreFields
#define OLCIgnoreFields
Definition: ogr_core.h:766
OSRSetMercator
OGRErr OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6459
OGRSpatialReference::SetAngularUnits
OGRErr SetAngularUnits(const char *pszName, double dfInRadians)
Set the angular units for the geographic coordinate system.
Definition: ogrspatialreference.cpp:1974
wkbTINM
@ wkbTINM
Definition: ogr_core.h:378
CPLHTTPFetch
CPLHTTPResult * CPLHTTPFetch(const char *pszURL, CSLConstList papszOptions)
Fetch a document from an url and return in a string.
Definition: cpl_http.cpp:648
OGRGeometryCollection::addGeometryDirectly
virtual OGRErr addGeometryDirectly(OGRGeometry *)
Add a geometry directly to the container.
Definition: ogrgeometrycollection.cpp:374
OGRCreateCoordinateTransformation
OGRCoordinateTransformation * OGRCreateCoordinateTransformation(const OGRSpatialReference *poSource, const OGRSpatialReference *poTarget)
Definition: ogrct.cpp:465
OGRSpatialReference::EPSGTreatsAsNorthingEasting
int EPSGTreatsAsNorthingEasting() const
This method returns TRUE if EPSG feels this projected coordinate system should be treated as having n...
Definition: ogrspatialreference.cpp:10353
OSRSetUTM
OGRErr OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth)
Set UTM projection definition.
Definition: ogrspatialreference.cpp:6995
ogr_spatialref.h
OGRSpatialReference::SetVertCS
OGRErr SetVertCS(const char *pszVertCSName, const char *pszVertDatumName, int nVertDatumClass=2005)
Set the user visible VERT_CS name.
Definition: ogrspatialreference.cpp:4455
OGRSpatialReference::SetMercator2SP
OGRErr SetMercator2SP(double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6477
OAO_North
@ OAO_North
Definition: ogr_srs_api.h:50
OGRSpatialReference::morphToESRI
OGRErr morphToESRI()
Convert in place to ESRI WKT format.
Definition: ogrspatialreference.cpp:9850
OAMS_CUSTOM
@ OAMS_CUSTOM
Definition: ogr_srs_api.h:655
OGRSpatialReference::Validate
OGRErr Validate() const
Validate CRS imported with importFromWkt() or with modified with direct node manipulations....
Definition: ogrspatialreference.cpp:1753
OSRSetStereographic
OGRErr OSRSetStereographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6855
OGRMultiPolygon
Definition: ogr_geometry.h:2312
OGRSpatialReference::ImportFromESRIWisconsinWKT
OGRErr ImportFromESRIWisconsinWKT(const char *pszPrjName, double dfCentralMeridian, double dfLatOfOrigin, const char *pszUnitsName, const char *pszCRSName=nullptr)
Definition: ogrspatialreference.cpp:10453
OGRSpatialReference::SetNode
OGRErr SetNode(const char *, const char *)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:1836
OGRPolyhedralSurface::addGeometryDirectly
OGRErr addGeometryDirectly(OGRGeometry *poNewGeom)
Add a geometry directly to the container.
Definition: ogrpolyhedralsurface.cpp:877
OGRFeature::SetFID
virtual OGRErr SetFID(GIntBig nFIDIn)
Set the feature identifier.
Definition: ogrfeature.cpp:5440
SRS_PT_MERCATOR_1SP
#define SRS_PT_MERCATOR_1SP
Definition: ogr_srs_api.h:145
OSR_CRS_TYPE_PROJECTED
@ OSR_CRS_TYPE_PROJECTED
Definition: ogr_srs_api.h:955
OSRGetInvFlattening
double OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr *)
Get spheroid inverse flattening.
Definition: ogrspatialreference.cpp:4183
OSRSetMercator2SP
OGRErr OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6510
OGRERR_UNSUPPORTED_GEOMETRY_TYPE
#define OGRERR_UNSUPPORTED_GEOMETRY_TYPE
Definition: ogr_core.h:295
OSRSetHOM2PNO
OGRErr OSRSetHOM2PNO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Set a Hotine Oblique Mercator projection using two points on projection centerline.
Definition: ogrspatialreference.cpp:6091
OSRCRSInfo
Structure given overall description of a CRS.
Definition: ogr_srs_api.h:969
VSIFReadL
size_t VSIFReadL(void *, size_t, size_t, VSILFILE *) EXPERIMENTAL_CPL_WARN_UNUSED_RESULT
Read bytes from file.
Definition: cpl_vsil.cpp:1690
VALIDATE_POINTER0
#define VALIDATE_POINTER0(ptr, func)
Definition: cpl_error.h:267
OSRSetTMG
OGRErr OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5248
OSRSetAxisMappingStrategy
void OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS, OSRAxisMappingStrategy strategy)
Set the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:10650
OSRExportToWkt
OGRErr CPL_STDCALL OSRExportToWkt(OGRSpatialReferenceH, char **)
Convert this SRS into WKT 1 format.
Definition: ogrspatialreference.cpp:1541
OAO_Down
@ OAO_Down
Definition: ogr_srs_api.h:55
cpl_error.h
OGRSpatialReference::SetMercator
OGRErr SetMercator(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6432
OSRGetDataAxisToSRSAxisMapping
const int * OSRGetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int *pnCount)
Return the data axis to SRS axis mapping.
Definition: ogrspatialreference.cpp:10687
OSRMorphToESRI
OGRErr OSRMorphToESRI(OGRSpatialReferenceH)
Convert in place to ESRI WKT format.
Definition: ogrspatialreference.cpp:9869
OSRImportFromMICoordSys
OGRErr OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *)
Import Mapinfo style CoordSys definition.
Definition: ogrspatialreference.cpp:9413
OGRSpatialReference::GetSemiMinor
double GetSemiMinor(OGRErr *=nullptr) const
Get spheroid semi minor axis.
Definition: ogrspatialreference.cpp:4262
OGRFeatureDefn::AddFieldDefn
virtual void AddFieldDefn(OGRFieldDefn *)
Add a new field definition.
Definition: ogrfeaturedefn.cpp:433
OGRSpatialReference::~OGRSpatialReference
virtual ~OGRSpatialReference()
OGRSpatialReference destructor.
Definition: ogrspatialreference.cpp:732
OSRConvertToOtherProjection
OGRSpatialReferenceH OSRConvertToOtherProjection(OGRSpatialReferenceH hSRS, const char *pszTargetProjection, const char *const *papszOptions)
Convert to another equivalent projection.
Definition: ogrspatialreference.cpp:8395
OGRSpatialReference::Release
void Release()
Decrements the reference count by one, and destroy if zero.
Definition: ogrspatialreference.cpp:931
OGRSpatialReference::SetWellKnownGeogCS
OGRErr SetWellKnownGeogCS(const char *)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:2953
OSRSetIWMPolyconic
OGRErr OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6164
SRS_PP_RECTIFIED_GRID_ANGLE
#define SRS_PP_RECTIFIED_GRID_ANGLE
Definition: ogr_srs_api.h:283
OGRSpatialReference::SetTOWGS84
OGRErr SetTOWGS84(double, double, double, double=0.0, double=0.0, double=0.0, double=0.0)
Set the Bursa-Wolf conversion to WGS84.
Definition: ogrspatialreference.cpp:8516
OGR_SRSNode::importFromWkt
OGRErr importFromWkt(char **)
Definition: ogr_srsnode.cpp:647
OGRTriangle::~OGRTriangle
~OGRTriangle() override
Destructor.
OGRLayer::GetNextFeature
virtual OGRFeature * GetNextFeature() CPL_WARN_UNUSED_RESULT=0
Fetch the next available feature from this layer.
OGRLayer::ResetReading
virtual void ResetReading()=0
Reset feature reading to start on the first feature.
OGRSpatialReference::SetTMG
OGRErr SetTMG(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5233
OSRSetProjParm
OGRErr OSRSetProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter value.
Definition: ogrspatialreference.cpp:4788
OSRGetName
const char * OSRGetName(OGRSpatialReferenceH hSRS)
Return the CRS name.
Definition: ogrspatialreference.cpp:1166
OGRSpatialReference::IsLongitudeParameter
static int IsLongitudeParameter(const char *)
Definition: ogrspatialreference.cpp:8763
CPLHTTPDestroyResult
void CPLHTTPDestroyResult(CPLHTTPResult *psResult)
Clean the memory associated with the return value of CPLHTTPFetch()
Definition: cpl_http.cpp:2080
CPLString::Printf
CPLSTRING_METHOD_DLL CPLString & Printf(const char *pszFormat,...)
Definition: cplstring.cpp:59
OGRSpatialReference::SetEckert
OGRErr SetEckert(int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5473
OGRSpatialReference::SetEquirectangular
OGRErr SetEquirectangular(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5617
OGR_SRSNode::GetNode
OGR_SRSNode * GetNode(const char *)
Definition: ogr_srsnode.cpp:199
OGRSpatialReference::StripVertical
OGRErr StripVertical()
Convert a compound cs into a horizontal CS.
Definition: ogrspatialreference.cpp:7542
OGRSpatialReference::importFromMICoordSys
OGRErr importFromMICoordSys(const char *)
Import Mapinfo style CoordSys definition.
Definition: ogrspatialreference.cpp:9439
OGRSpatialReference::GetAuthorityCode
const char * GetAuthorityCode(const char *pszTargetKey) const
Get the authority code for a node.
Definition: ogrspatialreference.cpp:7381
OAO_West
@ OAO_West
Definition: ogr_srs_api.h:53
wkbTriangleZ
@ wkbTriangleZ
Definition: ogr_core.h:361
OSRGetNormProjParm
double OSRGetNormProjParm(OGRSpatialReferenceH hSRS, const char *pszParmName, double dfDefault, OGRErr *)
This function is the same as OGRSpatialReference::
Definition: ogrspatialreference.cpp:4986
OGRSpatialReference::SetLCC1SP
OGRErr SetLCC1SP(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6325
OSRAddGuessedTOWGS84
OGRErr OSRAddGuessedTOWGS84(OGRSpatialReferenceH hSRS)
Try to add a a 3-parameter or 7-parameter Helmert transformation to WGS84.
Definition: ogrspatialreference.cpp:10170
SRS_PT_EQUIRECTANGULAR
#define SRS_PT_EQUIRECTANGULAR
Definition: ogr_srs_api.h:104
OGRSpatialReference::SetDataAxisToSRSAxisMapping
OGRErr SetDataAxisToSRSAxisMapping(const std::vector< int > &mapping)
Set a custom data axis to CRS axis mapping.
Definition: ogrspatialreference.cpp:10709
OGRSpatialReference::morphFromESRI
OGRErr morphFromESRI()
Convert in place from ESRI WKT format.
Definition: ogrspatialreference.cpp:9900
OGRSpatialReference::GetAttrValue
const char * GetAttrValue(const char *, int=0) const
Fetch indicated attribute of named node.
Definition: ogrspatialreference.cpp:1099
OSR_CRS_TYPE_GEOGRAPHIC_3D
@ OSR_CRS_TYPE_GEOGRAPHIC_3D
Definition: ogr_srs_api.h:951
CPLStringList
String list class designed around our use of C "char**" string lists.
Definition: cpl_string.h:438
OSRSetOrthographic
OGRErr OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6647
CPLCalloc
void * CPLCalloc(size_t, size_t)
Definition: cpl_conv.cpp:138
OGRPolygon::importFromWkb
virtual OGRErr importFromWkb(const unsigned char *, int, OGRwkbVariant, int &nBytesConsumedOut) override
Assign geometry from well known binary data.
Definition: ogrpolygon.cpp:318
OSRGetAreaOfUse
int OSRGetAreaOfUse(OGRSpatialReferenceH hSRS, double *pdfWestLongitudeDeg, double *pdfSouthLatitudeDeg, double *pdfEastLongitudeDeg, double *pdfNorthLatitudeDeg, const char **ppszAreaName)
Return the area of use of the CRS.
Definition: ogrspatialreference.cpp:10782
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
OGRSpatialReference::SetExtension
OGRErr SetExtension(const char *pszTargetKey, const char *pszName, const char *pszValue)
Set extension value.
Definition: ogrspatialreference.cpp:8883
OGRLayer::GetSpatialRef
virtual OGRSpatialReference * GetSpatialRef()
Fetch the spatial reference system for this layer.
Definition: ogrlayer.cpp:1037
OGRSpatialReference::FindMatches
OGRSpatialReferenceH * FindMatches(char **papszOptions, int *pnEntries, int **ppanMatchConfidence) const
Try to identify a match between the passed SRS and a related SRS in a catalog (currently EPSG only)
Definition: ogrspatialreference.cpp:9970
OSR_CRS_TYPE_GEOCENTRIC
@ OSR_CRS_TYPE_GEOCENTRIC
Definition: ogr_srs_api.h:953
OGRFeatureDefn::GetGeomFieldIndex
virtual int GetGeomFieldIndex(const char *) const
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:916
OSRSetEquirectangular2
OGRErr OSRSetEquirectangular2(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5697
OGRSpatialReference::SetAE
OGRErr SetAE(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5304
OGRFieldDefn::GetWidth
int GetWidth() const
Get the formatting width for this field.
Definition: ogr_feature.h:127
OGR_Dr_TestCapability
int OGR_Dr_TestCapability(OGRSFDriverH, const char *)
Test if capability is available.
cpl_vsi.h
CSLFetchNameValueDef
const char * CSLFetchNameValueDef(CSLConstList papszStrList, const char *pszName, const char *pszDefault)
Definition: cpl_string.cpp:1646
OGRSpatialReference
Definition: ogr_spatialref.h:156
OGRSpatialReference::SetACEA
OGRErr SetACEA(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5265
OGRSpatialReference::GetName
const char * GetName() const
Return the CRS name.
Definition: ogrspatialreference.cpp:1146
OGRPolyhedralSurface
Definition: ogr_geometry.h:2397
OSRDestroyCRSInfoList
void OSRDestroyCRSInfoList(OSRCRSInfo **list)
Destroy the result returned by OSRGetCRSInfoListFromDatabase().
Definition: ogrspatialreference.cpp:10886
OGRLayer::GetFeatureCount
virtual GIntBig GetFeatureCount(int bForce=TRUE)
Fetch the feature count in this layer.
Definition: ogrlayer.cpp:173
OGRSpatialReference::exportToProj4
OGRErr exportToProj4(char **) const
Export coordinate system in PROJ format.
Definition: ogrspatialreference.cpp:9752
SRS_PT_TRANSVERSE_MERCATOR
#define SRS_PT_TRANSVERSE_MERCATOR
Definition: ogr_srs_api.h:178
CPLsnprintf
int CPLsnprintf(char *str, size_t size, const char *fmt,...)
Definition: cpl_string.cpp:1337
OSRSetGnomonic
OGRErr OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5901
OGRFeature::GetFieldAsString
const char * GetFieldAsString(int i) const
Fetch field value as a string.
Definition: ogrfeature.cpp:2297
OGRSpatialReference::Clone
OGRSpatialReference * Clone() const
Make a duplicate of this OGRSpatialReference.
Definition: ogrspatialreference.cpp:1187
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:600
OSRImportFromProj4
OGRErr OSRImportFromProj4(OGRSpatialReferenceH, const char *)
Import PROJ coordinate string.
Definition: ogrspatialreference.cpp:9568
OGRSpatialReference::GetNormProjParm
double GetNormProjParm(const char *, double=0.0, OGRErr *=nullptr) const
Fetch a normalized projection parameter value.
Definition: ogrspatialreference.cpp:4952
OGRSpatialReference::IsLocal
int IsLocal() const
Check if local coordinate system.
Definition: ogrspatialreference.cpp:7823
OLCSequentialWrite
#define OLCSequentialWrite
Definition: ogr_core.h:753
OGRTriangulatedSurface::CastToPolyhedralSurface
static OGRPolyhedralSurface * CastToPolyhedralSurface(OGRTriangulatedSurface *poTS)
Casts the OGRTriangulatedSurface to an OGRPolyhedralSurface.
Definition: ogrtriangulatedsurface.cpp:255
OGRGeometry
Definition: ogr_geometry.h:286
OGRSpatialReference::IsSame
int IsSame(const OGRSpatialReference *) const
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:8157
wkbTriangleM
@ wkbTriangleM
Definition: ogr_core.h:379
OGRFeatureDefn::GetName
virtual const char * GetName() const
Get name of this OGRFeatureDefn.
Definition: ogrfeaturedefn.cpp:249
OGRSpatialReference::SetSinusoidal
OGRErr SetSinusoidal(double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6803
OSRMorphFromESRI
OGRErr OSRMorphFromESRI(OGRSpatialReferenceH)
Convert in place from ESRI WKT format.
Definition: ogrspatialreference.cpp:9919
OGRSpatialReference::SetLinearUnits
OGRErr SetLinearUnits(const char *pszName, double dfInMeters)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2255
OGRGeometry::getGeometryName
virtual const char * getGeometryName() const =0
Fetch WKT name for geometry type.
OGRSFDriverH
void * OGRSFDriverH
Definition: ogr_api.h:513
ograpispy.h
CSLCount
int CSLCount(CSLConstList papszStrList)
Definition: cpl_string.cpp:147
OSR_CRS_TYPE_VERTICAL
@ OSR_CRS_TYPE_VERTICAL
Definition: ogr_srs_api.h:957
OSRSetTPED
OGRErr OSRSetTPED(OGRSpatialReferenceH hSRS, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5215
OGRSpatialReference::importFromURN
OGRErr importFromURN(const char *)
Initialize from OGC URN.
Definition: ogrspatialreference.cpp:3649
OGRSpatialReference::FromHandle
static OGRSpatialReference * FromHandle(OGRSpatialReferenceH hSRS)
Definition: ogr_spatialref.h:663
OGRLayer
Definition: ogrsf_frmts.h:70
OGRSpatialReference::Private
Definition: ogrspatialreference.cpp:65
CPLString
Convenient string class based on std::string.
Definition: cpl_string.h:329
OGROpen
OGRDataSourceH OGROpen(const char *, int, OGRSFDriverH *) CPL_WARN_UNUSED_RESULT
Open a file / data source with one of the registered drivers.
OSRSetAuthority
OGRErr OSRSetAuthority(OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszAuthority, int nCode)
Set the authority for a node.
Definition: ogrspatialreference.cpp:7344
OGRSpatialReference::SetProjParm
OGRErr SetProjParm(const char *, double)
Set a projection parameter value.
Definition: ogrspatialreference.cpp:4738
OGRSpatialReference::SetPS
OGRErr SetPS(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6698
OGRSpatialReference::IsProjected
int IsProjected() const
Check if projected coordinate system.
Definition: ogrspatialreference.cpp:7642
OGRSpatialReference::GetWGS84SRS
static OGRSpatialReference * GetWGS84SRS()
Returns an instance of a SRS object with WGS84 WKT.
Definition: ogrspatialreference.cpp:9534
OGR_SRSNode::SetValue
void SetValue(const char *)
Definition: ogr_srsnode.cpp:390
OGRSpatialReference::CopyGeogCSFrom
OGRErr CopyGeogCSFrom(const OGRSpatialReference *poSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition: ogrspatialreference.cpp:3081
OGRPoint
Definition: ogr_geometry.h:810
OGRSpatialReference::ToHandle
static OGRSpatialReferenceH ToHandle(OGRSpatialReference *poSRS)
Definition: ogr_spatialref.h:657
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
OGRSpatialReference::Reference
int Reference()
Increments the reference count by one.
Definition: ogrspatialreference.cpp:844
ogr_geometry.h
OSRCleanup
void OSRCleanup(void)
Cleanup cached SRS related memory.
Definition: ogrspatialreference.cpp:8943
OGRTriangulatedSurface::addGeometry
virtual OGRErr addGeometry(const OGRGeometry *) override
Add a new geometry to a collection.
Definition: ogrtriangulatedsurface.cpp:180
OSRSetLinearUnits
OGRErr OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2271
SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP
#define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP
Definition: ogr_srs_api.h:136
OGRCleanupAll
void OGRCleanupAll(void)
OGRSpatialReference::importFromWMSAUTO
OGRErr importFromWMSAUTO(const char *pszAutoDef)
Initialize from WMSAUTO string.
Definition: ogrspatialreference.cpp:3944
OGRGeomFieldDefn::SetType
void SetType(OGRwkbGeometryType eTypeIn)
Set the geometry type of this field. This should never be done to an OGRGeomFieldDefn that is already...
Definition: ogrgeomfielddefn.cpp:319
OGRCurvePolygon::empty
virtual void empty() override
Clear geometry information. This restores the geometry to its initial state after construction,...
Definition: ogrcurvepolygon.cpp:128
OGRSpatialReference::SetGEOS
OGRErr SetGEOS(double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5810
OSRAxisMappingStrategy
OSRAxisMappingStrategy
Definition: ogr_srs_api.h:651
OAO_East
@ OAO_East
Definition: ogr_srs_api.h:52
OGRGeometry::operator=
OGRGeometry & operator=(const OGRGeometry &other)
Assignment operator.
Definition: ogrgeometry.cpp:137
OGRLayer::SetSpatialFilter
virtual void SetSpatialFilter(OGRGeometry *)
Set a new spatial filter.
Definition: ogrlayer.cpp:1113
OGRSpatialReference::IsSameGeogCS
int IsSameGeogCS(const OGRSpatialReference *) const
Do the GeogCS'es match?
Definition: ogrspatialreference.cpp:8009
OGRSpatialReference::SetPolyconic
OGRErr SetPolyconic(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6663
OGRSpatialReference::SetLCCB
OGRErr SetLCCB(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6361
OGRGeomFieldDefn::GetNameRef
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:203
OLCFastFeatureCount
#define OLCFastFeatureCount
Definition: ogr_core.h:756
OSRCRSListParameters
struct OSRCRSListParameters OSRCRSListParameters
Structure to describe optional parameters to OSRGetCRSInfoListFromDatabase()
Definition: ogr_srs_api.h:1003
OGRGeometry::importFromWkt
virtual OGRErr importFromWkt(const char **ppszInput)=0
Assign geometry from well known text data.
OGRSpatialReference::GetTargetLinearUnits
double GetTargetLinearUnits(const char *pszTargetKey, char **ppszRetName) const CPL_WARN_DEPRECATED("Use GetTargetLinearUnits( const char*
Fetch linear units for target.
Definition: ogrspatialreference.cpp:2646
OGRPolygon::operator=
OGRPolygon & operator=(const OGRPolygon &other)
Assignment operator.
Definition: ogrpolygon.cpp:91
OGRSpatialReference::GetUTMZone
int GetUTMZone(int *pbNorth=nullptr) const
Get utm zone information.
Definition: ogrspatialreference.cpp:7024
EQUAL
#define EQUAL(a, b)
Definition: cpl_port.h:569
OGRSpatialReference::SetProjCS
OGRErr SetProjCS(const char *)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:4613
VSIFCloseL
int VSIFCloseL(VSILFILE *) EXPERIMENTAL_CPL_WARN_UNUSED_RESULT
Close file.
Definition: cpl_vsil.cpp:1472
OSRSetHOMAC
OGRErr OSRSetHOMAC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfRectToSkew, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Set an Oblique Mercator projection using azimuth angle.
Definition: ogrspatialreference.cpp:5963
OGRFieldDefn::GetNameRef
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:113
OGRBoolean
int OGRBoolean
Definition: ogr_core.h:306
OGRSpatialReference::IsEmpty
bool IsEmpty() const
Return if the SRS is not set.
Definition: ogrspatialreference.cpp:7740
OGRSFDriverRegistrar
Definition: ogrsf_frmts.h:385
OGRSpatialReference::IsCompound
int IsCompound() const
Check if coordinate system is compound.
Definition: ogrspatialreference.cpp:7601
OSRSetLinearUnitsAndUpdateParameters
OGRErr OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2220
OSRSetGEOS
OGRErr OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5828
OGR_SRSNode::GetValue
const char * GetValue() const
Definition: ogr_spatialref.h:102
OSRSetSOC
OGRErr OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6906
OGRFieldDefn::SetPrecision
void SetPrecision(int nPrecisionIn)
Set the formatting precision for this field in characters.
Definition: ogr_feature.h:131
OGRLayer::GetLayerDefn
virtual OGRFeatureDefn * GetLayerDefn()=0
Fetch the schema information for this layer.
OGRFeatureDefn::GetFieldDefn
virtual OGRFieldDefn * GetFieldDefn(int i)
Fetch field definition.
Definition: ogrfeaturedefn.cpp:330
OGRSpatialReference::GetReferenceCount
int GetReferenceCount() const
Fetch current reference count.
Definition: ogrspatialreference.cpp:916
OGRSpatialReference::GetSemiMajor
double GetSemiMajor(OGRErr *=nullptr) const
Get spheroid semi major axis (in metres starting with GDAL 3.0)
Definition: ogrspatialreference.cpp:4084
cpl_http.h
wkbTINZM
@ wkbTINZM
Definition: ogr_core.h:396
OSRDereference
int OSRDereference(OGRSpatialReferenceH)
Decrements the reference count by one.
Definition: ogrspatialreference.cpp:899
OGRSpatialReference::SetEquirectangular2
OGRErr SetEquirectangular2(double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5665
OGRSpatialReference::SetQSC
OGRErr SetQSC(double dfCenterLat, double dfCenterLong)
Definition: ogrspatialreference.cpp:7171
SRS_PP_LATITUDE_OF_CENTER
#define SRS_PP_LATITUDE_OF_CENTER
Definition: ogr_srs_api.h:259
OSRSetEckertIV
OGRErr OSRSetEckertIV(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5569
OLCCurveGeometries
#define OLCCurveGeometries
Definition: ogr_core.h:768
OSRClone
OGRSpatialReferenceH CPL_STDCALL OSRClone(OGRSpatialReferenceH)
Make a duplicate of this OGRSpatialReference.
Definition: ogrspatialreference.cpp:1213
wkbFlatten
#define wkbFlatten(x)
Definition: ogr_core.h:440
OGRSpatialReference::GetAuthorityName
const char * GetAuthorityName(const char *pszTargetKey) const
Get the authority name for a node.
Definition: ogrspatialreference.cpp:7465
OGRTriangle::getGeometryName
virtual const char * getGeometryName() const override
Fetch WKT name for geometry type.
Definition: ogrtriangle.cpp:151
OGRFeature::SetFrom
OGRErr SetFrom(const OGRFeature *, int=TRUE)
Set one feature from another.
Definition: ogrfeature.cpp:5737
OGRSpatialReference::GetSquaredEccentricity
double GetSquaredEccentricity() const
Get spheroid squared eccentricity.
Definition: ogrspatialreference.cpp:4230
CPLAssert
#define CPLAssert(expr)
Definition: cpl_error.h:186
OSRSetVDG
OGRErr OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6939
OGRRawPoint
Definition: ogr_geometry.h:63
OSRIsLocal
int OSRIsLocal(OGRSpatialReferenceH)
Check if local coordinate system.
Definition: ogrspatialreference.cpp:7838
OGRFeature::SetField
void SetField(int i, int nValue)
Set field to integer value.
Definition: ogrfeature.cpp:3415
OSRSetGaussSchreiberTMercator
OGRErr OSRSetGaussSchreiberTMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5865
OGRERR_UNSUPPORTED_SRS
#define OGRERR_UNSUPPORTED_SRS
Definition: ogr_core.h:299
OGRSpatialReference::SetHOMAC
OGRErr SetHOMAC(double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfRectToSkew, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Set an Hotine Oblique Mercator Azimuth Center projection using azimuth angle.
Definition: ogrspatialreference.cpp:5939
OSRSetAttrValue
OGRErr CPL_STDCALL OSRSetAttrValue(OGRSpatialReferenceH hSRS, const char *pszNodePath, const char *pszNewNodeValue)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:1907
OSRGetAxis
const char * OSRGetAxis(OGRSpatialReferenceH hSRS, const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation)
Fetch the orientation of one axis.
Definition: ogrspatialreference.cpp:9210
SRS_PP_SCALE_FACTOR
#define SRS_PP_SCALE_FACTOR
Definition: ogr_srs_api.h:249
OGROpenShared
OGRDataSourceH OGROpenShared(const char *, int, OGRSFDriverH *) CPL_WARN_UNUSED_RESULT
Open a file / data source with one of the registered drivers if not already opened,...
OGRSpatialReference::SetBonne
OGRErr SetBonne(double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5337
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Definition: ogr_api.h:74
OSRReference
int OSRReference(OGRSpatialReferenceH)
Increments the reference count by one.
Definition: ogrspatialreference.cpp:859
OGR_SRSNode::Listener
Definition: ogr_spatialref.h:70
CPLStringList::SetNameValue
CPLStringList & SetNameValue(const char *pszKey, const char *pszValue)
Definition: cplstringlist.cpp:402
OGRGeomFieldDefn::GetSpatialRef
virtual OGRSpatialReference * GetSpatialRef() const
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:438
OSRSetProjCS
OGRErr OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:4647
OGRGeometryCollection::assignSpatialReference
virtual void assignSpatialReference(OGRSpatialReference *poSR) override
Assign spatial reference to this object.
Definition: ogrgeometrycollection.cpp:1237
OGRPolyhedralSurface::addGeometry
virtual OGRErr addGeometry(const OGRGeometry *)
Add a new geometry to a collection.
Definition: ogrpolyhedralsurface.cpp:841
OGRSurface
Definition: ogr_geometry.h:1728
CPLTestBool
bool CPLTestBool(const char *pszValue)
Definition: cpl_string.cpp:1526
OSRSetPS
OGRErr OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6752
OGRLayer::GetFeature
virtual OGRFeature * GetFeature(GIntBig nFID) CPL_WARN_UNUSED_RESULT
Fetch a feature by its identifier.
Definition: ogrlayer.cpp:447
OGRCurve::getNumPoints
virtual int getNumPoints() const =0
Return the number of points of a curve geometry.
OGRSpatialReference::SetKrovak
OGRErr SetKrovak(double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfPseudoStdParallelLat, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6186
OGRFeatureDefn::GetGeomFieldDefn
virtual OGRGeomFieldDefn * GetGeomFieldDefn(int i)
Fetch geometry field definition.
Definition: ogrfeaturedefn.cpp:681
OSRGetTargetLinearUnits
double OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2665
OSRFindMatches
OGRSpatialReferenceH * OSRFindMatches(OGRSpatialReferenceH hSRS, char **papszOptions, int *pnEntries, int **ppanMatchConfidence)
Try to identify a match between the passed SRS and a related SRS in a catalog (currently EPSG only)
Definition: ogrspatialreference.cpp:8450
OGRSpatialReference::SetGaussSchreiberTMercator
OGRErr SetGaussSchreiberTMercator(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5846
OGRTriangle::operator=
OGRTriangle & operator=(const OGRTriangle &other)
Assignment operator.
Definition: ogrtriangle.cpp:138
OGRERR_UNSUPPORTED_OPERATION
#define OGRERR_UNSUPPORTED_OPERATION
Definition: ogr_core.h:296
OGRSpatialReference::AddGuessedTOWGS84
OGRErr AddGuessedTOWGS84()
Try to add a a 3-parameter or 7-parameter Helmert transformation to WGS84.
Definition: ogrspatialreference.cpp:10142
OAMS_TRADITIONAL_GIS_ORDER
@ OAMS_TRADITIONAL_GIS_ORDER
Definition: ogr_srs_api.h:653
CPLGetLastErrorNo
CPLErrorNum CPLGetLastErrorNo(void)
Definition: cpl_error.cpp:818
OGRSpatialReference::FindProjParm
int FindProjParm(const char *pszParameter, const OGR_SRSNode *poPROJCS=nullptr) const
Return the child index of the named projection parameter on its parent PROJCS node.
Definition: ogrspatialreference.cpp:4812
OGRGeometry::toTriangle
OGRTriangle * toTriangle()
Definition: ogr_geometry.h:650
OGRSpatialReference::GetAxesCount
int GetAxesCount() const
Return the number of axis of the coordinate system of the CRS.
Definition: ogrspatialreference.cpp:8960
OGRGetDriverByName
OGRSFDriverH OGRGetDriverByName(const char *)
Fetch the indicated driver.
OGRFeatureDefn::GetFieldCount
virtual int GetFieldCount() const
Fetch number of fields on this feature.
Definition: ogrfeaturedefn.cpp:286
OGRSpatialReference::importFromXML
OGRErr importFromXML(const char *)
Import coordinate system from XML format (GML only currently).
Definition: ogr_srs_xml.cpp:1259
OSRSetIGH
OGRErr OSRSetIGH(OGRSpatialReferenceH hSRS)
Definition: ogrspatialreference.cpp:5798
SRS_PP_LATITUDE_OF_ORIGIN
#define SRS_PP_LATITUDE_OF_ORIGIN
Definition: ogr_srs_api.h:263
CPLHTTPResult
Definition: cpl_http.h:66
OGRSpatialReference::SetIWMPolyconic
OGRErr SetIWMPolyconic(double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6146
OSRSetMC
OGRErr OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6416
VALIDATE_POINTER1
#define VALIDATE_POINTER1(ptr, func, rc)
Definition: cpl_error.h:276
OGRSpatialReference::importFromUrl
OGRErr importFromUrl(const char *)
Set spatial reference from a URL.
Definition: ogrspatialreference.cpp:3466
OLCStringsAsUTF8
#define OLCStringsAsUTF8
Definition: ogr_core.h:765
CPLHTTPResult::pabyData
GByte * pabyData
Definition: cpl_http.h:82
OGRERR_FAILURE
#define OGRERR_FAILURE
Definition: ogr_core.h:298
OGRSpatialReference::SetProjection
OGRErr SetProjection(const char *)
Set a projection name.
Definition: ogrspatialreference.cpp:4670
OGR_SRSNode::GetChild
OGR_SRSNode * GetChild(int)
Definition: ogr_srsnode.cpp:150
OAMS_AUTHORITY_COMPLIANT
@ OAMS_AUTHORITY_COMPLIANT
Definition: ogr_srs_api.h:654
OGRSpatialReference::SetRobinson
OGRErr SetRobinson(double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6770
OSRSetLAEA
OGRErr OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6273
OGRSpatialReference::SetIGH
OGRErr SetIGH()
Definition: ogrspatialreference.cpp:5784
OFTString
@ OFTString
Definition: ogr_core.h:600
OAO_Other
@ OAO_Other
Definition: ogr_srs_api.h:49
OGR_Dr_CopyDataSource
OGRDataSourceH OGR_Dr_CopyDataSource(OGRSFDriverH, OGRDataSourceH, const char *, char **) CPL_WARN_UNUSED_RESULT
This function creates a new datasource by copying all the layers from the source datasource.
OGRSpatialReference::importFromDict
OGRErr importFromDict(const char *pszDict, const char *pszCode)
Definition: ogr_srs_dict.cpp:70
OGRSpatialReference::SetTMSO
OGRErr SetTMSO(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5138
OSRGetAuthorityName
const char * OSRGetAuthorityName(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority name for a node.
Definition: ogrspatialreference.cpp:7516
SRS_PP_LONGITUDE_OF_CENTER
#define SRS_PP_LONGITUDE_OF_CENTER
Definition: ogr_srs_api.h:257
ODrCDeleteDataSource
#define ODrCDeleteDataSource
Definition: ogr_core.h:782
OGRSpatialReference::SetGeogCS
OGRErr SetGeogCS(const char *pszGeogName, const char *pszDatumName, const char *pszEllipsoidName, double dfSemiMajor, double dfInvFlattening, const char *pszPMName=nullptr, double dfPMOffset=0.0, const char *pszUnits=nullptr, double dfConvertToRadians=0.0)
Set geographic coordinate system.
Definition: ogrspatialreference.cpp:2836
OGRSpatialReference::SetOrthographic
OGRErr SetOrthographic(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6630
ogrsf_frmts.h
OGRSpatialReference::exportToMICoordSys
OGRErr exportToMICoordSys(char **) const
Export coordinate system in Mapinfo style CoordSys format.
Definition: ogrspatialreference.cpp:9387
OSRSetProjection
OGRErr OSRSetProjection(OGRSpatialReferenceH, const char *)
Set a projection name.
Definition: ogrspatialreference.cpp:4705
OSR_CRS_TYPE_COMPOUND
@ OSR_CRS_TYPE_COMPOUND
Definition: ogr_srs_api.h:959
OSRSetPolyconic
OGRErr OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6682
OGRSpatialReference::Clear
void Clear()
Wipe current definition.
Definition: ogrspatialreference.cpp:790
OSRSetGeocCS
OGRErr OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:4421
OGRSpatialReference::Dereference
int Dereference()
Decrements the reference count by one.
Definition: ogrspatialreference.cpp:879
OGRSpatialReference::SetGeocCS
OGRErr SetGeocCS(const char *pszGeocName)
Set the user visible GEOCCS name.
Definition: ogrspatialreference.cpp:4364
CPLDebug
void CPLDebug(const char *, const char *,...)
Definition: cpl_error.cpp:602
OSRSetKrovak
OGRErr OSRSetKrovak(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfPseudoStdParallelLat, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6207
OGRSpatialReference::EPSGTreatsAsLatLong
int EPSGTreatsAsLatLong() const
This method returns TRUE if EPSG feels this geographic coordinate system should be treated as having ...
Definition: ogrspatialreference.cpp:10269
OGR_Dr_Open
OGRDataSourceH OGR_Dr_Open(OGRSFDriverH, const char *, int) CPL_WARN_UNUSED_RESULT
Attempt to open file with this driver.
OSRCloneGeogCS
OGRSpatialReferenceH CPL_STDCALL OSRCloneGeogCS(OGRSpatialReferenceH)
Make a duplicate of the GEOGCS node of this OGRSpatialReference object.
Definition: ogrspatialreference.cpp:7986
OGRLayer::GetExtent
virtual OGRErr GetExtent(OGREnvelope *psExtent, int bForce=TRUE) CPL_WARN_UNUSED_RESULT
Fetch the extent of this layer.
Definition: ogrlayer.cpp:211
OSRSetMollweide
OGRErr OSRSetMollweide(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6545
OGR_SRSNode::exportToWkt
OGRErr exportToWkt(char **) const
Definition: ogr_srsnode.cpp:481
OGRDataSourceH
void * OGRDataSourceH
Definition: ogr_api.h:511
OGRFieldDefn
Definition: ogr_feature.h:92
OGRSpatialReference::IsSameVertCS
int IsSameVertCS(const OGRSpatialReference *) const
Do the VertCS'es match?
Definition: ogrspatialreference.cpp:8096
ogr_srs_api.h
OSRSetEquirectangular
OGRErr OSRSetEquirectangular(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5647
OSRIsGeocentric
int OSRIsGeocentric(OGRSpatialReferenceH)
Check if geocentric coordinate system.
Definition: ogrspatialreference.cpp:7724
OFTInteger
@ OFTInteger
Definition: ogr_core.h:596
OGR_SRSNode::exportToPrettyWkt
OGRErr exportToPrettyWkt(char **, int=1) const
Definition: ogr_srsnode.cpp:555
STARTS_WITH
#define STARTS_WITH(a, b)
Definition: cpl_port.h:578
CPLMalloc
void * CPLMalloc(size_t)
Definition: cpl_conv.cpp:168
SRS_PP_STANDARD_PARALLEL_1
#define SRS_PP_STANDARD_PARALLEL_1
Definition: ogr_srs_api.h:251
OSRGetProjParm
double OSRGetProjParm(OGRSpatialReferenceH hSRS, const char *pszParmName, double dfDefault, OGRErr *)
Fetch a projection parameter value.
Definition: ogrspatialreference.cpp:4919
OGRSpatialReference::SetMC
OGRErr SetMC(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6397
OGRSimpleCurve::addPoint
void addPoint(const OGRPoint *)
Add a point to a line string.
Definition: ogrlinestring.cpp:793
CPLStringList::List
char ** List()
Definition: cpl_string.h:516
OGRGeometry::assignSpatialReference
virtual void assignSpatialReference(OGRSpatialReference *poSR)
Assign spatial reference to this object.
Definition: ogrgeometry.cpp:416
OAO_Up
@ OAO_Up
Definition: ogr_srs_api.h:54
CSLFindString
int CSLFindString(CSLConstList papszList, const char *pszTarget)
Definition: cpl_string.cpp:670
cpl_conv.h
wkbNone
@ wkbNone
Definition: ogr_core.h:349
OSRGetTOWGS84
OGRErr OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int)
Fetch TOWGS84 parameters, if available.
Definition: ogrspatialreference.cpp:8720
OSRGetSemiMinor
double OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi minor axis.
Definition: ogrspatialreference.cpp:4280
OGRCurvePolygon::CastToPolygon
static OGRPolygon * CastToPolygon(OGRCurvePolygon *poCP)
Convert to polygon.
Definition: ogrcurvepolygon.cpp:830
OGRSpatialReference::importFromWkt
OGRErr importFromWkt(char **)
Import from WKT string.
Definition: ogrspatialreference.cpp:1704
SRS_UA_DEGREE
#define SRS_UA_DEGREE
Definition: ogr_srs_api.h:422
OSRSetAngularUnits
OGRErr OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double)
Set the angular units for the geographic coordinate system.
Definition: ogrspatialreference.cpp:2009
cpl_string.h
OSR_CRS_TYPE_OTHER
@ OSR_CRS_TYPE_OTHER
Definition: ogr_srs_api.h:961
OSRSetAxes
OGRErr OSRSetAxes(OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszXAxisName, OGRAxisOrientation eXAxisOrientation, const char *pszYAxisName, OGRAxisOrientation eYAxisOrientation)
Set the axes for a coordinate system.
Definition: ogrspatialreference.cpp:9329
OSRSetGeogCS
OGRErr OSRSetGeogCS(OGRSpatialReferenceH hSRS, const char *pszGeogName, const char *pszDatumName, const char *pszEllipsoidName, double dfSemiMajor, double dfInvFlattening, const char *pszPMName, double dfPMOffset, const char *pszUnits, double dfConvertToRadians)
Set geographic coordinate system.
Definition: ogrspatialreference.cpp:2908
OGRSpatialReference::SetHOM
OGRErr SetHOM(double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfRectToSkew, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Set a Hotine Oblique Mercator projection using azimuth angle.
Definition: ogrspatialreference.cpp:6004
OGRSpatialReference::Private::Listener
Definition: ogrspatialreference.cpp:67
OGRSpatialReference::SetAxes
OGRErr SetAxes(const char *pszTargetKey, const char *pszXAxisName, OGRAxisOrientation eXAxisOrientation, const char *pszYAxisName, OGRAxisOrientation eYAxisOrientation)
Set the axes for a coordinate system.
Definition: ogrspatialreference.cpp:9275
OGR_SRSNode::AddChild
void AddChild(OGR_SRSNode *)
Definition: ogr_srsnode.cpp:266
OSRSetTMSO
OGRErr OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5179
OGRGeometry::getSpatialReference
OGRSpatialReference * getSpatialReference(void) const
Returns spatial reference system for object.
Definition: ogr_geometry.h:435
OGRFeature::SetGeomFieldDirectly
OGRErr SetGeomFieldDirectly(int iField, OGRGeometry *)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:802
OGRPolyhedralSurface::getGeometryRef
OGRGeometry * getGeometryRef(int i)
Fetch geometry from container.
Definition: ogrpolyhedralsurface.cpp:931
SRS_UL_METER
#define SRS_UL_METER
Definition: ogr_srs_api.h:314
OSRExportToWktEx
OGRErr OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult, const char *const *papszOptions)
Convert this SRS into WKT format.
Definition: ogrspatialreference.cpp:1564
OLCRandomWrite
#define OLCRandomWrite
Definition: ogr_core.h:754
ODrCCreateDataSource
#define ODrCCreateDataSource
Definition: ogr_core.h:781
CPLErrorReset
void CPLErrorReset(void)
Definition: cpl_error.cpp:729
OGRLayer::ICreateFeature
virtual OGRErr ICreateFeature(OGRFeature *poFeature) CPL_WARN_UNUSED_RESULT
Create and write a new feature within a layer.
Definition: ogrlayer.cpp:637
OSRGetLinearUnits
double OSRGetLinearUnits(OGRSpatialReferenceH, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2470
CPLSPrintf
const char * CPLSPrintf(const char *fmt,...)
Definition: cpl_string.cpp:977
OGRSpatialReference::SetOS
OGRErr SetOS(double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6594
OSRSetEckert
OGRErr OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5537
OGRDataSource
Definition: ogrsf_frmts.h:317
OGRSpatialReference::IsGeocentric
int IsGeocentric() const
Check if geocentric coordinate system.
Definition: ogrspatialreference.cpp:7704
OGRSpatialReference::importFromEPSG
OGRErr importFromEPSG(int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:10220
OSRValidate
OGRErr OSRValidate(OGRSpatialReferenceH)
Validate SRS tokens.
Definition: ogrspatialreference.cpp:1783
OSRSetTM
OGRErr OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5076
OSRCalcInvFlattening
double OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor)
Compute inverse flattening from semi-major and semi-minor axis.
Definition: ogrspatialreference.cpp:9474
OGRSpatialReference::SetEckertVI
OGRErr SetEckertVI(double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5588
OGRSpatialReference::GetAxis
const char * GetAxis(const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation) const
Fetch the orientation of one axis.
Definition: ogrspatialreference.cpp:9021
OGRSpatialReference::SetTPED
OGRErr SetTPED(double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5198
OSRSetCompoundCS
OGRErr OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName, OGRSpatialReferenceH hHorizSRS, OGRSpatialReferenceH hVertSRS)
Setup a compound coordinate system.
Definition: ogrspatialreference.cpp:4579
OGRAxisOrientation
OGRAxisOrientation
Definition: ogr_srs_api.h:48
SRS_PP_LONGITUDE_OF_ORIGIN
#define SRS_PP_LONGITUDE_OF_ORIGIN
Definition: ogr_srs_api.h:261
OGRSpatialReference::importFromProj4
OGRErr importFromProj4(const char *)
Import PROJ coordinate string.
Definition: ogrspatialreference.cpp:9662
CPLError
void CPLError(CPLErr eErrClass, CPLErrorNum err_no, const char *fmt,...)
Definition: cpl_error.cpp:308
OSRIsGeographic
int OSRIsGeographic(OGRSpatialReferenceH)
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:7802
SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP
#define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP
Definition: ogr_srs_api.h:133
OGRGeomFieldDefn
Definition: ogr_feature.h:182
OGRSpatialReference::GetAngularUnits
double GetAngularUnits(char **) const CPL_WARN_DEPRECATED("Use GetAngularUnits( const char**) instead")
Fetch angular geographic coordinate system units.
Definition: ogrspatialreference.cpp:2129
OSRNewSpatialReference
OGRSpatialReferenceH CPL_STDCALL OSRNewSpatialReference(const char *)
Constructor.
Definition: ogrspatialreference.cpp:689
OGRSpatialReference::GetRoot
OGR_SRSNode * GetRoot()
Return root node.
Definition: ogrspatialreference.cpp:955
OGR_SRSNode::RegisterListener
void RegisterListener(const std::shared_ptr< Listener > &listener)
Definition: ogr_srsnode.cpp:86
OGRPolyhedralSurface::setMeasured
virtual void setMeasured(OGRBoolean bIsMeasured) override
Set the type as Measured.
Definition: ogrpolyhedralsurface.cpp:996
OSREPSGTreatsAsNorthingEasting
int OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as havin...
Definition: ogrspatialreference.cpp:10435
OSRSetSCH
OGRErr OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt)
Definition: ogrspatialreference.cpp:7215
OGRSpatialReference::IsLinearParameter
static int IsLinearParameter(const char *)
Definition: ogrspatialreference.cpp:8782
OGRSpatialReference::SetLAEA
OGRErr SetLAEA(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6228
OSRCalcSemiMinorFromInvFlattening
double OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor, double dfInvFlattening)
Compute semi-minor axis from semi-major axis and inverse flattening.
Definition: ogrspatialreference.cpp:9502
OGRTriangulatedSurface::operator=
OGRTriangulatedSurface & operator=(const OGRTriangulatedSurface &other)
Assignment operator.
Definition: ogrtriangulatedsurface.cpp:84
OSRExportToProj4
OGRErr CPL_STDCALL OSRExportToProj4(OGRSpatialReferenceH, char **)
Export coordinate system in PROJ format.
Definition: ogrspatialreference.cpp:9708
CSLTokenizeStringComplex
char ** CSLTokenizeStringComplex(const char *pszString, const char *pszDelimiter, int bHonourStrings, int bAllowEmptyTokens)
Definition: cpl_string.cpp:769
OGRPolyhedralSurface::empty
virtual void empty() override
Clear geometry information. This restores the geometry to its initial state after construction,...
Definition: ogrpolyhedralsurface.cpp:148
OGRTriangle::addRingDirectly
virtual OGRErr addRingDirectly(OGRCurve *poNewRing) override
Add a ring to a polygon.
Definition: ogrtriangle.cpp:246
CPLE_NotSupported
#define CPLE_NotSupported
Definition: cpl_error.h:109
OSRCRSInfo::pszAuthName
char * pszAuthName
Definition: ogr_srs_api.h:972
OGRSpatialReference::GetLinearUnits
double GetLinearUnits(char **) const CPL_WARN_DEPRECATED("Use GetLinearUnits( const char**) instead")
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2430
OGRERR_CORRUPT_DATA
#define OGRERR_CORRUPT_DATA
Definition: ogr_core.h:297
OSRSetVertCS
OGRErr OSRSetVertCS(OGRSpatialReferenceH hSRS, const char *pszVertCSName, const char *pszVertDatumName, int nVertDatumType)
Setup the vertical coordinate system.
Definition: ogrspatialreference.cpp:4499
OSR_CRS_TYPE_GEOGRAPHIC_2D
@ OSR_CRS_TYPE_GEOGRAPHIC_2D
Definition: ogr_srs_api.h:949
OSRDestroySpatialReference
void CPL_STDCALL OSRDestroySpatialReference(OGRSpatialReferenceH)
OGRSpatialReference destructor.
Definition: ogrspatialreference.cpp:773
OSRGetAuthorityCode
const char * OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority code for a node.
Definition: ogrspatialreference.cpp:7432
OGRCoordinateTransformation
Definition: ogr_spatialref.h:684
SRS_PP_SATELLITE_HEIGHT
#define SRS_PP_SATELLITE_HEIGHT
Definition: ogr_srs_api.h:291
OSRSetTOWGS84
OGRErr OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double, double, double, double, double)
Set the Bursa-Wolf conversion to WGS84.
Definition: ogrspatialreference.cpp:8663
OGRSpatialReference::convertToOtherProjection
OGRSpatialReference * convertToOtherProjection(const char *pszTargetProjection, const char *const *papszOptions=nullptr) const
Convert to another equivalent projection.
Definition: ogrspatialreference.cpp:8293
OGRTriangle::getGeometryType
virtual OGRwkbGeometryType getGeometryType() const override
Fetch geometry type.
Definition: ogrtriangle.cpp:160
OGRFieldDefn::GetType
OGRFieldType GetType() const
Fetch type of this field.
Definition: ogr_feature.h:115
OGRSpatialReference::CloneGeogCS
OGRSpatialReference * CloneGeogCS() const
Make a duplicate of the GEOGCS node of this OGRSpatialReference object.
Definition: ogrspatialreference.cpp:7920
OGRGetDriverCount
int OGRGetDriverCount(void)
Fetch the number of registered drivers.
OGRSpatialReference::GetExtension
const char * GetExtension(const char *pszTargetKey, const char *pszName, const char *pszDefault=nullptr) const
Fetch extension value.
Definition: ogrspatialreference.cpp:8834
OGRFeatureDefn::GetFieldIndex
virtual int GetFieldIndex(const char *) const
Find field by name.
Definition: ogrfeaturedefn.cpp:1218
CSLDuplicate
char ** CSLDuplicate(CSLConstList papszStrList)
Definition: cpl_string.cpp:228
OGRSFDriver
Definition: ogrsf_frmts.h:350
OGRCurve::get_IsClosed
virtual int get_IsClosed() const
Return TRUE if curve is closed.
Definition: ogrcurve.cpp:95
OGRFeature::IsFieldSetAndNotNull
bool IsFieldSetAndNotNull(int iField) const
Test if a field is set and not null.
Definition: ogrfeature.cpp:1583
OSREPSGTreatsAsLatLong
int OSREPSGTreatsAsLatLong(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as havin...
Definition: ogrspatialreference.cpp:10318
OSRIsSame
int OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:8243
OGRErr
int OGRErr
Definition: ogr_core.h:290
OGRSpatialReference::SetAuthority
OGRErr SetAuthority(const char *pszTargetKey, const char *pszAuthority, int nCode)
Set the authority for a node.
Definition: ogrspatialreference.cpp:7245
CPLHTTPResult::pszErrBuf
char * pszErrBuf
Definition: cpl_http.h:74
OSRRelease
void OSRRelease(OGRSpatialReferenceH)
Decrements the reference count by one, and destroy if zero.
Definition: ogrspatialreference.cpp:947
OSRSetWagner
OGRErr OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:7155
OSRCopyGeogCSFrom
OGRErr OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS, const OGRSpatialReferenceH hSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition: ogrspatialreference.cpp:3164
OSRSetNormProjParm
OGRErr OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter with a normalized value.
Definition: ogrspatialreference.cpp:5046
OGRSpatialReference::GetInvFlattening
double GetInvFlattening(OGRErr *=nullptr) const
Get spheroid inverse flattening.
Definition: ogrspatialreference.cpp:4145
SRS_WGS84_SEMIMAJOR
#define SRS_WGS84_SEMIMAJOR
Definition: ogr_srs_api.h:441
CPLHTTPResult::nStatus
int nStatus
Definition: cpl_http.h:68
OSRSetRobinson
OGRErr OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6787
CSLDestroy
void CSLDestroy(char **papszStrList)
Definition: cpl_string.cpp:200
SRS_PT_SWISS_OBLIQUE_CYLINDRICAL
#define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL
Definition: ogr_srs_api.h:175
M_PI
#define M_PI
Definition: cpl_port.h:417
GIntBig
long long GIntBig
Definition: cpl_port.h:248
OSRSetWellKnownGeogCS
OGRErr OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:3056
OGRGeometry::toPolygon
OGRPolygon * toPolygon()
Definition: ogr_geometry.h:636
OSRImportFromEPSGA
OGRErr CPL_STDCALL OSRImportFromEPSGA(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:10188
SRS_PT_MERCATOR_2SP
#define SRS_PT_MERCATOR_2SP
Definition: ogr_srs_api.h:147
CPLHTTPResult::nDataLen
int nDataLen
Definition: cpl_http.h:77
OSRSetLCCB
OGRErr OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6379
OGRReleaseDataSource
OGRErr OGRReleaseDataSource(OGRDataSourceH)
Drop a reference to this datasource, and if the reference count drops to zero close (destroy) the dat...
OSRGetPrimeMeridian
double OSRGetPrimeMeridian(OGRSpatialReferenceH, char **)
Fetch prime meridian info.
Definition: ogrspatialreference.cpp:2780
OSRSetHOM
OGRErr OSRSetHOM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfRectToSkew, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Set a Hotine Oblique Mercator projection using azimuth angle.
Definition: ogrspatialreference.cpp:6027
OGRwkbGeometryType
OGRwkbGeometryType
Definition: ogr_core.h:317
CPL_UNUSED
#define CPL_UNUSED
Definition: cpl_port.h:948
SRS_PP_FALSE_EASTING
#define SRS_PP_FALSE_EASTING
Definition: ogr_srs_api.h:265
wkbTINZ
@ wkbTINZ
Definition: ogr_core.h:360
OSRGetAngularUnits
double OSRGetAngularUnits(OGRSpatialReferenceH, char **)
Fetch angular geographic coordinate system units.
Definition: ogrspatialreference.cpp:2144
OLCRandomRead
#define OLCRandomRead
Definition: ogr_core.h:752
OGRTriangle
Definition: ogr_geometry.h:2036
OGRSpatialReference::DestroySpatialReference
static void DestroySpatialReference(OGRSpatialReference *poSRS)
OGRSpatialReference destructor.
Definition: ogrspatialreference.cpp:756
OGRFeature
Definition: ogr_feature.h:354
OGRSpatialReference::SetLCC
OGRErr SetLCC(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6289
OSRAxisEnumToName
const char * OSRAxisEnumToName(OGRAxisOrientation eOrientation)
Return the string representation for the OGRAxisOrientation enumeration.
Definition: ogrspatialreference.cpp:9232
cpl_port.h
OGRGeomFieldDefn::GetType
OGRwkbGeometryType GetType() const
Fetch geometry type of this field.
Definition: ogr_feature.h:205
OSRIsSameGeogCS
int OSRIsSameGeogCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the GeogCS'es match?
Definition: ogrspatialreference.cpp:8072
OGRSpatialReference::SetVDG
OGRErr SetVDG(double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6922
OSRExportToMICoordSys
OGRErr OSRExportToMICoordSys(OGRSpatialReferenceH, char **)
Export coordinate system in Mapinfo style CoordSys format.
Definition: ogrspatialreference.cpp:9358
OSRSetQSC
OGRErr OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong)
Definition: ogrspatialreference.cpp:7185
SRS_WGS84_INVFLATTENING
#define SRS_WGS84_INVFLATTENING
Definition: ogr_srs_api.h:443
OGRSpatialReference::GetTOWGS84
OGRErr GetTOWGS84(double *padfCoef, int nCoeff=7) const
Fetch TOWGS84 parameters, if available.
Definition: ogrspatialreference.cpp:8692
ogr_api.h
OGRSpatialReference::SetMollweide
OGRErr SetMollweide(double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6528
OLCFastGetExtent
#define OLCFastGetExtent
Definition: ogr_core.h:757
OGRSpatialReference::operator=
OGRSpatialReference & operator=(const OGRSpatialReference &)
Definition: ogrspatialreference.cpp:805
OSRSetTargetLinearUnits
OGRErr OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *, const char *, double)
Set the linear units for the target node.
Definition: ogrspatialreference.cpp:2396
OSRSetLCC
OGRErr OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6307
wkbTriangleZM
@ wkbTriangleZM
Definition: ogr_core.h:397
OGRTriangle::importFromWkb
virtual OGRErr importFromWkb(const unsigned char *, int, OGRwkbVariant, int &nBytesConsumedOut) override
Assign geometry from well known binary data.
Definition: ogrtriangle.cpp:188
OSRSetACEA
OGRErr OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5285
OGRSpatialReference::SetTMVariant
OGRErr SetTMVariant(const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5095
OSRSetSinusoidal
OGRErr OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6820
OGRGeometry::IsMeasured
OGRBoolean IsMeasured() const
Definition: ogr_geometry.h:365
OGRSpatialReference::SetGnomonic
OGRErr SetGnomonic(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5883
OGR_SRSNode::FindChild
int FindChild(const char *) const
Definition: ogr_srsnode.cpp:354
SRS_UL_US_FOOT_CONV
#define SRS_UL_US_FOOT_CONV
Definition: ogr_srs_api.h:322
OSRIsVertical
int OSRIsVertical(OGRSpatialReferenceH)
Check if vertical coordinate system.
Definition: ogrspatialreference.cpp:7903
OGRSpatialReference::GetAreaOfUse
bool GetAreaOfUse(double *pdfWestLongitudeDeg, double *pdfSouthLatitudeDeg, double *pdfEastLongitudeDeg, double *pdfNorthLatitudeDeg, const char **ppszAreaName) const
Return the area of use of the CRS.
Definition: ogrspatialreference.cpp:10744
OGRCurve
Definition: ogr_geometry.h:926
OGR_Dr_DeleteDataSource
OGRErr OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *)
Delete a datasource.
OGRSpatialReference::Private::replaceConversionAndUnref
OGRErr replaceConversionAndUnref(PJ *conv)
Definition: ogrspatialreference.cpp:588
OSRSetAE
OGRErr OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5320
VSIFOpenL
VSILFILE * VSIFOpenL(const char *, const char *)
Open file.
Definition: cpl_vsil.cpp:997
OGRSpatialReference::IsVertical
int IsVertical() const
Check if vertical coordinate system.
Definition: ogrspatialreference.cpp:7862
OSRGetUTMZone
int OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth)
Get utm zone information.
Definition: ogrspatialreference.cpp:7073
OGRFeatureDefn::GetGeomFieldCount
virtual int GetGeomFieldCount() const
Fetch number of geometry fields on this feature.
Definition: ogrfeaturedefn.cpp:632
OSRSetEckertVI
OGRErr OSRSetEckertVI(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5600
CPLErr
CPLErr
Definition: cpl_error.h:52
OSRIsSameEx
int OSRIsSameEx(OGRSpatialReferenceH, OGRSpatialReferenceH, const char *const *papszOptions)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:8262
OGRSpatialReference::GetAttrNode
OGR_SRSNode * GetAttrNode(const char *)
Find named node in tree.
Definition: ogrspatialreference.cpp:1019
OGRSpatialReference::SetEckertIV
OGRErr SetEckertIV(double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5557
OGRLayer::SetIgnoredFields
virtual OGRErr SetIgnoredFields(const char **papszFields)
Set which fields can be omitted when retrieving features from the layer.
Definition: ogrlayer.cpp:1792
OSRSetGH
OGRErr OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5767
OGR_SRSNode::Clone
OGR_SRSNode * Clone() const
Definition: ogr_srsnode.cpp:408
CSLAddString
char ** CSLAddString(char **papszStrList, const char *pszNewString)
Definition: cpl_string.cpp:83
OGRPolyhedralSurface::OGRPolyhedralSurface
OGRPolyhedralSurface()
Create an empty PolyhedralSurface.
OSRIsSameVertCS
int OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the VertCS'es match?
Definition: ogrspatialreference.cpp:8135
OGRSpatialReference::SetCS
OGRErr SetCS(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5401
OGRSpatialReference::OGRSpatialReference
OGRSpatialReference(const OGRSpatialReference &)
Definition: ogrspatialreference.cpp:713
OGRFieldDefn::SetWidth
void SetWidth(int nWidthIn)
Set the formatting width for this field in characters.
Definition: ogr_feature.h:128
OFTInteger64
@ OFTInteger64
Definition: ogr_core.h:608
OSRSetBonne
OGRErr OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5353
OSRImportFromUrl
OGRErr OSRImportFromUrl(OGRSpatialReferenceH, const char *)
Set spatial reference from a URL.
Definition: ogrspatialreference.cpp:3547
OGRLinearRing
Definition: ogr_geometry.h:1314
OGRERR_NONE
#define OGRERR_NONE
Definition: ogr_core.h:292
CPLStrdup
char * CPLStrdup(const char *)
Definition: cpl_conv.cpp:293
OSRSetLCC1SP
OGRErr OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6343
OGRFeatureDefn
Definition: ogr_feature.h:259
CPLAtof
double CPLAtof(const char *)
Definition: cpl_strtod.cpp:117
OSRSetGS
OGRErr OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5733
OGRLayer::GetGeomType
virtual OGRwkbGeometryType GetGeomType()
Return the layer geometry type.
Definition: ogrlayer.cpp:1755
OGRSpatialReference::Private::Listener::notifyChange
void notifyChange(OGR_SRSNode *) override
Definition: ogrspatialreference.cpp:75
OGRSpatialReference::GetDataAxisToSRSAxisMapping
const std::vector< int > & GetDataAxisToSRSAxisMapping() const
Return the data axis to SRS axis mapping.
Definition: ogrspatialreference.cpp:10672
OGRSpatialReference::SetLinearUnitsAndUpdateParameters
OGRErr SetLinearUnitsAndUpdateParameters(const char *pszName, double dfInMeters, const char *pszUnitAuthority=nullptr, const char *pszUnitCode=nullptr)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2180
OGRLayer::ISetFeature
virtual OGRErr ISetFeature(OGRFeature *poFeature) CPL_WARN_UNUSED_RESULT
Rewrite an existing feature.
Definition: ogrlayer.cpp:598
SRS_WKT_WGS84_LAT_LONG
#define SRS_WKT_WGS84_LAT_LONG
Definition: ogr_srs_api.h:71
OGRTriangulatedSurface::~OGRTriangulatedSurface
~OGRTriangulatedSurface()
Destructor.
CPLE_IllegalArg
#define CPLE_IllegalArg
Definition: cpl_error.h:107
OGRSpatialReference::SetRoot
void SetRoot(OGR_SRSNode *)
Set the root SRS node.
Definition: ogrspatialreference.cpp:987
OGR_SRSNode
Definition: ogr_spatialref.h:66
wkbTriangle
@ wkbTriangle
Definition: ogr_core.h:347
OGRLayer::SetAttributeFilter
virtual OGRErr SetAttributeFilter(const char *)
Set a new attribute query.
Definition: ogrlayer.cpp:338
OGRPolygon::OGRPolygon
OGRPolygon()
Create an empty polygon.
OGRFeature::GetGeomFieldRef
OGRGeometry * GetGeomFieldRef(int iField)
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:666
OGRPolygon
Definition: ogr_geometry.h:1913
OGRTriangulatedSurface
Definition: ogr_geometry.h:2516
OSRSetLocalCS
OGRErr OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible LOCAL_CS name.
Definition: ogrspatialreference.cpp:4335
OGRSpatialReference::importFromEPSGA
OGRErr importFromEPSGA(int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:10052
OGRSpatialReference::SetGS
OGRErr SetGS(double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5716
OGRCurvePolygon
Definition: ogr_geometry.h:1763
OGRSpatialReference::SetTM
OGRErr SetTM(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5060
OSRSetCS
OGRErr OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5417
OGRSpatialReference::dumpReadable
void dumpReadable()
Definition: ogrspatialreference.cpp:1228
OGRLayer::TestCapability
virtual int TestCapability(const char *)=0
Test if this layer supported the named capability.
OGRSpatialReference::SetGH
OGRErr SetGH(double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5750
OSRExportToPrettyWkt
OGRErr CPL_STDCALL OSRExportToPrettyWkt(OGRSpatialReferenceH, char **, int)
Convert this SRS into a nicely formatted WKT 1 string for display to a person.
Definition: ogrspatialreference.cpp:1294
OSRSetFromUserInput
OGRErr CPL_STDCALL OSRSetFromUserInput(OGRSpatialReferenceH hSRS, const char *)
Set spatial reference from various text formats.
Definition: ogrspatialreference.cpp:3439
OGRSpatialReference::exportToWkt
OGRErr exportToWkt(char **) const
Convert this SRS into WKT 1 format.
Definition: ogrspatialreference.cpp:1330
OGRPolyhedralSurface::assignSpatialReference
virtual void assignSpatialReference(OGRSpatialReference *poSR) override
Assign spatial reference to this object.
Definition: ogrpolyhedralsurface.cpp:1077
OSRImportFromWkt
OGRErr OSRImportFromWkt(OGRSpatialReferenceH, char **)
Import from WKT string.
Definition: ogrspatialreference.cpp:1804
OGRSpatialReference::SetHOM2PNO
OGRErr SetHOM2PNO(double dfCenterLat, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Set a Hotine Oblique Mercator projection using two points on projection centerline.
Definition: ogrspatialreference.cpp:6066
SRS_PP_FALSE_NORTHING
#define SRS_PP_FALSE_NORTHING
Definition: ogr_srs_api.h:267
OGRSpatialReference::SetCEA
OGRErr SetCEA(double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5369
OFTReal
@ OFTReal
Definition: ogr_core.h:598
OGRSpatialReference::IsAngularParameter
static int IsAngularParameter(const char *)
Definition: ogrspatialreference.cpp:8739
OGRSpatialReference::SetLocalCS
OGRErr SetLocalCS(const char *)
Set the user visible LOCAL_CS name.
Definition: ogrspatialreference.cpp:4305
ogr_core.h
OGR_Dr_GetName
const char * OGR_Dr_GetName(OGRSFDriverH)
Fetch name of driver (file format). This name should be relatively short (10-40 characters),...
OGRTriangulatedSurface::getGeometryType
virtual OGRwkbGeometryType getGeometryType() const override
Returns the WKB Type of TriangulatedSurface.
Definition: ogrtriangulatedsurface.cpp:130
OGRGeometry::exportToWkt
virtual OGRErr exportToWkt(char **ppszDstText, OGRwkbVariant=wkbVariantOldOgc) const =0
Convert a geometry into well known text format.
OGRGetDriver
OGRSFDriverH OGRGetDriver(int)
Fetch the indicated driver.
OSRGetSemiMajor
double OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi major axis.
Definition: ogrspatialreference.cpp:4122
OGRSpatialReference::SetStereographic
OGRErr SetStereographic(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6836
OGRSpatialReference::SetWagner
OGRErr SetWagner(int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:7085
OSRFreeSRSArray
void OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS)
Free return of OSRIdentifyMatches()
Definition: ogrspatialreference.cpp:8476
OGRSpatialReference::SetNZMG
OGRErr SetNZMG(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6561
OGRSpatialReference::GetProjParm
double GetProjParm(const char *, double=0.0, OGRErr *=nullptr) const
Fetch a projection parameter value.
Definition: ogrspatialreference.cpp:4879
OGRNullFID
#define OGRNullFID
Definition: ogr_core.h:650
OGRERR_INVALID_HANDLE
#define OGRERR_INVALID_HANDLE
Definition: ogr_core.h:300
OGRSpatialReference::GetEccentricity
double GetEccentricity() const
Get spheroid eccentricity.
Definition: ogrspatialreference.cpp:4202
OGRLayer::SyncToDisk
virtual OGRErr SyncToDisk()
Flush pending changes to disk.
Definition: ogrlayer.cpp:1520
OGRSpatialReference::IsGeographic
int IsGeographic() const
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:7760
CPLFree
#define CPLFree
Definition: cpl_conv.h:81
OGRSpatialReference::SetCompoundCS
OGRErr SetCompoundCS(const char *pszName, const OGRSpatialReference *poHorizSRS, const OGRSpatialReference *poVertSRS)
Setup a compound coordinate system.
Definition: ogrspatialreference.cpp:4533
wkbTIN
@ wkbTIN
Definition: ogr_core.h:345
OSRIsCompound
int OSRIsCompound(OGRSpatialReferenceH)
Check if the coordinate system is compound.
Definition: ogrspatialreference.cpp:7620
OSRSetTMVariant
OGRErr OSRSetTMVariant(OGRSpatialReferenceH hSRS, const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5117
CPL_DISALLOW_COPY_ASSIGN
#define CPL_DISALLOW_COPY_ASSIGN(ClassName)
Definition: cpl_port.h:997
OSRGetAxisMappingStrategy
OSRAxisMappingStrategy OSRGetAxisMappingStrategy(OGRSpatialReferenceH hSRS)
Retun the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:10619
OGR_Dr_CreateDataSource
OGRDataSourceH OGR_Dr_CreateDataSource(OGRSFDriverH, const char *, char **) CPL_WARN_UNUSED_RESULT
This function attempts to create a new data source based on the passed driver.
OSRImportFromEPSG
OGRErr CPL_STDCALL OSRImportFromEPSG(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:10236
OGRSpatialReference::SetSOC
OGRErr SetSOC(double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6879
OGRSpatialReference::SetNormProjParm
OGRErr SetNormProjParm(const char *, double)
Set a projection parameter with a normalized value.
Definition: ogrspatialreference.cpp:5018
OGRTriangle::OGRTriangle
OGRTriangle()
Constructor.
OGRwkbVariant
OGRwkbVariant
Definition: ogr_core.h:423
OGRFeature::GetFID
GIntBig GetFID() const
Get feature identifier.
Definition: ogr_feature.h:712
OAO_South
@ OAO_South
Definition: ogr_srs_api.h:51
OGRSpatialReference::GetAxisMappingStrategy
OSRAxisMappingStrategy GetAxisMappingStrategy() const
Retun the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:10605
OGRTriangulatedSurface::getGeometryName
virtual const char * getGeometryName() const override
Returns the geometry name of the TriangulatedSurface.
Definition: ogrtriangulatedsurface.cpp:116
SRS_PM_GREENWICH
#define SRS_PM_GREENWICH
Definition: ogr_srs_api.h:429
OGRSpatialReference::SetLOM
OGRErr SetLOM(double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Set a Laborde Oblique Mercator projection.
Definition: ogrspatialreference.cpp:6127
SRS_PP_AZIMUTH
#define SRS_PP_AZIMUTH
Definition: ogr_srs_api.h:269
CPLGetConfigOption
const char * CPLGetConfigOption(const char *, const char *)
Definition: cpl_conv.cpp:1692
VSILFILE
FILE VSILFILE
Definition: cpl_vsi.h:156
OGRPolyhedralSurface::set3D
virtual void set3D(OGRBoolean bIs3D) override
Set the type as 3D geometry.
Definition: ogrpolyhedralsurface.cpp:981
OSRIsProjected
int OSRIsProjected(OGRSpatialReferenceH)
Check if projected coordinate system.
Definition: ogrspatialreference.cpp:7681
OGRSpatialReference::SetTargetLinearUnits
OGRErr SetTargetLinearUnits(const char *pszTargetKey, const char *pszName, double dfInMeters, const char *pszUnitAuthority=nullptr, const char *pszUnitCode=nullptr)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2313
OGRSpatialReference::SetSCH
OGRErr SetSCH(double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt)
Definition: ogrspatialreference.cpp:7199
OSRSetOS
OGRErr OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6612
OSRGetAttrValue
const char *CPL_STDCALL OSRGetAttrValue(OGRSpatialReferenceH hSRS, const char *pszName, int iChild)
Fetch indicated attribute of named node.
Definition: ogrspatialreference.cpp:1122
STARTS_WITH_CI
#define STARTS_WITH_CI(a, b)
Definition: cpl_port.h:580
OGR_SRSNode::StripNodes
void StripNodes(const char *)
Definition: ogr_srsnode.cpp:856
CPLE_AppDefined
#define CPLE_AppDefined
Definition: cpl_error.h:99
OGRSpatialReference::SetFromUserInput
OGRErr SetFromUserInput(const char *)
Set spatial reference from various text formats.
Definition: ogrspatialreference.cpp:3216
OGRSpatialReference::SetUTM
OGRErr SetUTM(int nZone, int bNorth=TRUE)
Set UTM projection definition.
Definition: ogrspatialreference.cpp:6973
OSRSetCEA
OGRErr OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5385
OSRSetNZMG
OGRErr OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6578

Generated for GDAL by doxygen 1.8.17.