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