30 #ifndef OGRUNIONLAYER_H_INCLUDED
31 #define OGRUNIONLAYER_H_INCLUDED
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
73 int bHasLayerOwnership;
79 OGRUnionLayerGeomFieldDefn **papoGeomFields;
80 FieldUnionStrategy eFieldStrategy;
88 char *pszAttributeFilter;
91 char **papszIgnoredFields;
92 int bAttrFilterPassThroughValue;
93 int *pabModifiedLayers;
94 int *pabCheckIfAutoWrap;
97 void AutoWarpLayerIfNecessary(
int iSubLayer);
99 void ApplyAttributeFilterToSrcLayer(
int iSubLayer);
100 int GetAttrFilterPassThroughValue();
101 void ConfigureActiveLayer();
102 void SetSpatialFilterToSourceLayer(
OGRLayer* poSrcLayer);
105 OGRUnionLayer(
const char* pszName,
108 int bTakeLayerOwnership);
110 virtual ~OGRUnionLayer();
114 void SetFields(FieldUnionStrategy eFieldStrategy,
118 OGRUnionLayerGeomFieldDefn** papoGeomFields );
119 void SetSourceLayerFieldName(
const char* pszSourceLayerFieldName);
120 void SetPreserveSrcFID(
int bPreserveSrcFID);
121 void SetFeatureCount(
int nFeatureCount);
122 virtual const char *
GetName()
override {
return osName.c_str(); }
144 virtual OGRErr GetExtent(
int iGeomField, OGREnvelope *psExtent,
int bForce = TRUE)
override;
145 virtual OGRErr GetExtent( OGREnvelope *psExtent,
int bForce )
override;
157 #endif // OGRUNIONLAYER_H_INCLUDED
OGR_SRSNode * GetRoot()
Return root node.
Definition: ogr_spatialref.h:266
virtual const char * GetName()
Return the layer name.
Definition: ogrlayer.cpp:1727
OGRErr exportToPrettyWkt(char **, int=FALSE) const
Definition: ogrspatialreference.cpp:658
double GetPrimeMeridian(char **) const CPL_WARN_DEPRECATED("Use GetPrimeMeridian( const char**) instead")
Fetch prime meridian info.
Definition: ogrspatialreference.cpp:1698
OGRErr SetEC(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4411
void DestroyChild(int)
Definition: ogr_srsnode.cpp:291
#define SRS_PP_CENTRAL_MERIDIAN
Definition: ogr_srs_api.h:269
#define SRS_UA_DEGREE_CONV
Definition: ogr_srs_api.h:446
int GetChildCount() const
Definition: ogr_spatialref.h:86
#define OLCFastSpatialFilter
Definition: ogr_core.h:751
OGRErr importFromCRSURL(const char *)
Initialize from OGC URL.
Definition: ogrspatialreference.cpp:2766
OGRBoolean Is3D() const
Definition: ogr_geometry.h:362
OGRErr OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4432
#define OLCIgnoreFields
Definition: ogr_core.h:762
OGRErr OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5361
OGRErr SetAngularUnits(const char *pszName, double dfInRadians)
Set the angular units for the geographic coordinate system.
Definition: ogrspatialreference.cpp:1050
OGRErr FixupOrdering()
Definition: ogr_srsnode.cpp:947
@ 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:620
virtual OGRErr addGeometryDirectly(OGRGeometry *)
Add a geometry directly to the container.
Definition: ogrgeometrycollection.cpp:381
OGRErr OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth)
Set UTM projection definition.
Definition: ogrspatialreference.cpp:5879
OGRErr SetVertCS(const char *pszVertCSName, const char *pszVertDatumName, int nVertDatumClass=2005)
Set the user visible VERT_CS name.
Definition: ogrspatialreference.cpp:3391
OGRErr SetMercator2SP(double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5379
#define SRS_PT_MILLER_CYLINDRICAL
Definition: ogr_srs_api.h:174
@ OAO_North
Definition: ogr_srs_api.h:50
OGRErr OSRSetStereographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5722
Definition: ogr_geometry.h:2307
OGRErr SetNode(const char *, const char *)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:920
#define SRS_PT_WAGNER_II
Definition: ogr_srs_api.h:238
OGRErr addGeometryDirectly(OGRGeometry *poNewGeom)
Add a geometry directly to the container.
Definition: ogrpolyhedralsurface.cpp:882
virtual OGRErr SetFID(GIntBig nFIDIn)
Set the feature identifier.
Definition: ogrfeature.cpp:5436
#define SRS_PT_MERCATOR_1SP
Definition: ogr_srs_api.h:167
double OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr *)
Get spheroid inverse flattening.
Definition: ogrspatialreference.cpp:3130
OGRErr OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5403
#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:5045
#define SRS_PT_GAUSSSCHREIBERTMERCATOR
Definition: ogr_srs_api.h:131
size_t VSIFReadL(void *, size_t, size_t, VSILFILE *) EXPERIMENTAL_CPL_WARN_UNUSED_RESULT
Read bytes from file.
Definition: cpl_vsil.cpp:1146
#define VALIDATE_POINTER0(ptr, func)
Definition: cpl_error.h:251
#define SRS_PT_HOTINE_OBLIQUE_MERCATOR
Definition: ogr_srs_api.h:146
OGRErr OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4216
#define SRS_PT_GALL_STEREOGRAPHIC
Definition: ogr_srs_api.h:128
OGRErr CPL_STDCALL OSRExportToWkt(OGRSpatialReferenceH, char **)
Convert this SRS into WKT format.
Definition: ogrspatialreference.cpp:753
#define SRS_PT_MOLLWEIDE
Definition: ogr_srs_api.h:176
@ OAO_Down
Definition: ogr_srs_api.h:55
OGRErr SetMercator(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5338
OGRErr OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *)
Import Mapinfo style CoordSys definition.
Definition: ogrspatialreference.cpp:8513
double GetSemiMinor(OGRErr *=nullptr) const
Get spheroid semi minor axis.
Definition: ogrspatialreference.cpp:3209
virtual void AddFieldDefn(OGRFieldDefn *)
Add a new field definition.
Definition: ogrfeaturedefn.cpp:432
virtual ~OGRSpatialReference()
OGRSpatialReference destructor.
Definition: ogrspatialreference.cpp:200
OGRSpatialReferenceH OSRConvertToOtherProjection(OGRSpatialReferenceH hSRS, const char *pszTargetProjection, const char *const *papszOptions)
Convert to another equivalent projection.
Definition: ogrspatialreference.cpp:7615
void Release()
Decrements the reference count by one, and destroy if zero.
Definition: ogrspatialreference.cpp:398
OGRErr SetWellKnownGeogCS(const char *)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:1954
OGRErr OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5087
#define SRS_PP_RECTIFIED_GRID_ANGLE
Definition: ogr_srs_api.h:305
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:7736
#define SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER
Definition: ogr_srs_api.h:143
~OGRTriangle() override
Destructor.
Definition: ogrtriangle.cpp:126
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.
#define SRS_PT_ROBINSON
Definition: ogr_srs_api.h:191
OGRErr SetTMG(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4199
OGRErr OSRSetProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter value.
Definition: ogrspatialreference.cpp:3760
static int IsLongitudeParameter(const char *)
Definition: ogrspatialreference.cpp:7889
void CPLHTTPDestroyResult(CPLHTTPResult *psResult)
Clean the memory associated with the return value of CPLHTTPFetch()
Definition: cpl_http.cpp:1932
#define SRS_PP_LATITUDE_OF_POINT_1
Definition: ogr_srs_api.h:295
CPLSTRING_DLL CPLString & Printf(const char *pszFormat,...)
Definition: cplstring.cpp:67
OGRErr SetEckert(int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4451
OGRErr SetEquirectangular(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4578
OGR_SRSNode * GetNode(const char *)
Definition: ogr_srsnode.cpp:171
OGRErr StripVertical()
Convert a compound cs into a horizontal CS.
Definition: ogrspatialreference.cpp:6323
OGRErr importFromMICoordSys(const char *)
Import Mapinfo style CoordSys definition.
Definition: ogrspatialreference.cpp:8539
const char * GetAuthorityCode(const char *pszTargetKey) const
Get the authority code for a node.
Definition: ogrspatialreference.cpp:6183
@ 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:3962
OGRErr SetLCC1SP(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5227
OGRErr OSRFixup(OGRSpatialReferenceH)
Fixup as needed.
Definition: ogrspatialreference.cpp:8052
#define SRS_PT_ALBERS_CONIC_EQUAL_AREA
Definition: ogr_srs_api.h:100
#define SRS_PT_POLYCONIC
Definition: ogr_srs_api.h:189
#define SRS_PT_EQUIRECTANGULAR
Definition: ogr_srs_api.h:126
OGRErr morphFromESRI()
Convert in place from ESRI WKT format.
Definition: ogr_srs_esri.cpp:1971
const char * GetAttrValue(const char *, int=0) const
Fetch indicated attribute of named node.
Definition: ogrspatialreference.cpp:545
OGRErr OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5544
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:320
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:8126
virtual OGRSpatialReference * GetSpatialRef()
Fetch the spatial reference system for this layer.
Definition: ogrlayer.cpp:1036
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: ogr_fromepsg.cpp:3411
virtual int GetGeomFieldIndex(const char *) const
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:915
OGRErr OSRSetEquirectangular2(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4636
OGRErr SetAE(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4273
int GetWidth() const
Get the formatting width for this field.
Definition: ogr_feature.h:127
void ClearChildren()
Definition: ogr_srsnode.cpp:82
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:145
OGRErr StripCTParms(OGR_SRSNode *=nullptr)
Strip OGC CT Parameters.
Definition: ogrspatialreference.cpp:6357
OGRErr SetACEA(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4233
#define SRS_PP_LONGITUDE_OF_POINT_2
Definition: ogr_srs_api.h:297
OGRCoordinateTransformation * OGRCreateCoordinateTransformation(OGRSpatialReference *poSource, OGRSpatialReference *poTarget)
Definition: ogrct.cpp:493
Definition: ogr_geometry.h:2392
virtual GIntBig GetFeatureCount(int bForce=TRUE)
Fetch the feature count in this layer.
Definition: ogrlayer.cpp:172
#define SRS_PT_TRANSVERSE_MERCATOR
Definition: ogr_srs_api.h:200
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:4842
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:590
int GetFieldCount() const
Fetch number of fields on this feature. This will always be the same as the field count for the OGRFe...
Definition: ogr_feature.h:599
double GetNormProjParm(const char *, double=0.0, OGRErr *=nullptr) const
Fetch a normalized projection parameter value.
Definition: ogrspatialreference.cpp:3924
#define SRS_PT_IMW_POLYCONIC
Definition: ogr_srs_api.h:234
int IsLocal() const
Check if local coordinate system.
Definition: ogrspatialreference.cpp:6587
#define OLCSequentialWrite
Definition: ogr_core.h:749
static OGRPolyhedralSurface * CastToPolyhedralSurface(OGRTriangulatedSurface *poTS)
Casts the OGRTriangulatedSurface to an OGRPolyhedralSurface.
Definition: ogrtriangulatedsurface.cpp:259
Definition: ogr_geometry.h:286
int IsSame(const OGRSpatialReference *) const
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:6997
@ wkbTriangleM
Definition: ogr_core.h:379
virtual const char * GetName() const
Get name of this OGRFeatureDefn.
Definition: ogrfeaturedefn.cpp:248
OGRErr SetSinusoidal(double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5668
OGRErr SetLinearUnits(const char *pszName, double dfInMeters)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:1304
#define SRS_PT_CASSINI_SOLDNER
Definition: ogr_srs_api.h:105
virtual const char * getGeometryName() const =0
Fetch WKT name for geometry type.
void * OGRSFDriverH
Definition: ogr_api.h:512
int CSLCount(CSLConstList papszStrList)
Definition: cpl_string.cpp:147
OGRErr OSRSetTPED(OGRSpatialReferenceH hSRS, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4162
OGRErr importFromURN(const char *)
Initialize from OGC URN.
Definition: ogrspatialreference.cpp:2620
static OGRSpatialReference * FromHandle(OGRSpatialReferenceH hSRS)
Definition: ogr_spatialref.h:652
Definition: ogrsf_frmts.h:70
Convenient string class based on std::string.
Definition: cpl_string.h:336
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:6146
OGRErr SetProjParm(const char *, double)
Set a projection parameter value.
Definition: ogrspatialreference.cpp:3710
OGRErr SetPS(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5597
int IsProjected() const
Check if projected coordinate system.
Definition: ogrspatialreference.cpp:6453
static OGRSpatialReference * GetWGS84SRS()
Returns an instance of a SRS object with WGS84 WKT.
Definition: ogrspatialreference.cpp:8632
void SetValue(const char *)
Definition: ogr_srsnode.cpp:358
#define SRS_PT_WAGNER_VI
Definition: ogr_srs_api.h:246
#define SRS_PT_WAGNER_I
Definition: ogr_srs_api.h:236
OGRErr CopyGeogCSFrom(const OGRSpatialReference *poSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition: ogrspatialreference.cpp:2078
Definition: ogr_geometry.h:809
static OGRSpatialReferenceH ToHandle(OGRSpatialReference *poSRS)
Definition: ogr_spatialref.h:646
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:313
void OSRCleanup(void)
Cleanup cached SRS related memory.
Definition: ogrspatialreference.cpp:8190
virtual OGRErr addGeometry(const OGRGeometry *) override
Add a new geometry to a collection.
Definition: ogrtriangulatedsurface.cpp:184
OGRErr OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:1320
#define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP
Definition: ogr_srs_api.h:158
OGRErr importFromWMSAUTO(const char *pszAutoDef)
Initialize from WMSAUTO string.
Definition: ogrspatialreference.cpp:2909
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:316
#define SRS_PP_LATITUDE_OF_1ST_POINT
Definition: ogr_srs_api.h:319
virtual void empty() override
Clear geometry information. This restores the geometry to its initial state after construction,...
Definition: ogrcurvepolygon.cpp:131
OGRErr SetGEOS(double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4747
#define SRS_PP_PEG_POINT_LONGITUDE
Definition: ogr_srs_api.h:329
@ OAO_East
Definition: ogr_srs_api.h:52
OGRGeometry & operator=(const OGRGeometry &other)
Assignment operator.
Definition: ogrgeometry.cpp:142
virtual void SetSpatialFilter(OGRGeometry *)
Set a new spatial filter.
Definition: ogrlayer.cpp:1112
int IsSameGeogCS(const OGRSpatialReference *) const
Do the GeogCS'es match?
Definition: ogrspatialreference.cpp:6753
OGRErr SetPolyconic(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5560
OGRErr SetLCCB(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5265
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:203
#define OLCFastFeatureCount
Definition: ogr_core.h:752
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:1601
OGRPolygon & operator=(const OGRPolygon &other)
Assignment operator.
Definition: ogrpolygon.cpp:93
#define SRS_PT_EQUIDISTANT_CONIC
Definition: ogr_srs_api.h:123
int GetUTMZone(int *pbNorth=nullptr) const
Get utm zone information.
Definition: ogrspatialreference.cpp:5908
OGRErr OSRFixupOrdering(OGRSpatialReferenceH)
Correct parameter ordering to match CT Specification.
Definition: ogrspatialreference.cpp:7979
#define EQUAL(a, b)
Definition: cpl_port.h:559
OGRErr SetProjCS(const char *)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:3581
#define SRS_PT_BONNE
Definition: ogr_srs_api.h:109
int VSIFCloseL(VSILFILE *) EXPERIMENTAL_CPL_WARN_UNUSED_RESULT
Close file.
Definition: cpl_vsil.cpp:928
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:4908
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:113
int OGRBoolean
Definition: ogr_core.h:306
OGRErr FixupOrdering()
Correct parameter ordering to match CT Specification.
Definition: ogrspatialreference.cpp:7961
Definition: ogrsf_frmts.h:383
int IsCompound() const
Check if coordinate system is compound.
Definition: ogrspatialreference.cpp:6414
OGRErr OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:1269
OGRErr OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4766
const char * GetValue() const
Definition: ogr_spatialref.h:100
OGRErr OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5765
OGRErr SetTargetLinearUnits(const char *pszTargetKey, const char *pszName, double dfInMeters)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:1358
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:329
double GetSemiMajor(OGRErr *=nullptr) const
Get spheroid semi major axis.
Definition: ogrspatialreference.cpp:3051
@ wkbTINZM
Definition: ogr_core.h:396
int OSRDereference(OGRSpatialReferenceH)
Decrements the reference count by one.
Definition: ogrspatialreference.cpp:368
OGRErr SetEquirectangular2(double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4615
OGRErr SetQSC(double dfCenterLat, double dfCenterLong)
Definition: ogrspatialreference.cpp:6025
#define SRS_PP_LATITUDE_OF_CENTER
Definition: ogr_srs_api.h:281
OGRErr OSRSetEckertIV(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4525
#define OLCCurveGeometries
Definition: ogr_core.h:764
OGRSpatialReferenceH CPL_STDCALL OSRClone(OGRSpatialReferenceH)
Make a duplicate of this OGRSpatialReference.
Definition: ogrspatialreference.cpp:610
#define SRS_PT_STEREOGRAPHIC
Definition: ogr_srs_api.h:195
#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:6255
virtual const char * getGeometryName() const override
Fetch WKT name for geometry type.
Definition: ogrtriangle.cpp:156
OGRErr SetFrom(const OGRFeature *, int=TRUE)
Set one feature from another.
Definition: ogrfeature.cpp:5733
double GetSquaredEccentricity() const
Get spheroid squared eccentricity.
Definition: ogrspatialreference.cpp:3177
#define CPLAssert(expr)
Definition: cpl_error.h:182
#define SRS_PT_QSC
Definition: ogr_srs_api.h:250
OGRErr OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5798
Definition: ogr_geometry.h:63
#define CPL_C_START
Definition: cpl_port.h:335
int OSRIsLocal(OGRSpatialReferenceH)
Check if local coordinate system.
Definition: ogrspatialreference.cpp:6604
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:4805
#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:4880
OGRErr CPL_STDCALL OSRSetAttrValue(OGRSpatialReferenceH hSRS, const char *pszNodePath, const char *pszNewNodeValue)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:983
const char * OSRGetAxis(OGRSpatialReferenceH hSRS, const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation)
Fetch the orientation of one axis.
Definition: ogrspatialreference.cpp:8310
#define SRS_PP_SCALE_FACTOR
Definition: ogr_srs_api.h:271
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:4308
void * OGRSpatialReferenceH
Definition: ogr_api.h:74
int OSRReference(OGRSpatialReferenceH)
Increments the reference count by one.
Definition: ogrspatialreference.cpp:328
#define SRS_PT_AZIMUTHAL_EQUIDISTANT
Definition: ogr_srs_api.h:103
virtual OGRSpatialReference * GetSpatialRef() const
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:435
OGRErr OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:3619
#define SRS_PT_ECKERT_III
Definition: ogr_srs_api.h:115
virtual void assignSpatialReference(OGRSpatialReference *poSR) override
Assign spatial reference to this object.
Definition: ogrgeometrycollection.cpp:1244
#define SRS_WKT_WGS84
Definition: ogr_srs_api.h:93
virtual OGRErr addGeometry(const OGRGeometry *)
Add a new geometry to a collection.
Definition: ogrpolyhedralsurface.cpp:846
#define SRS_PT_ECKERT_IV
Definition: ogr_srs_api.h:117
Definition: ogr_geometry.h:1724
OGRErr OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5617
virtual OGRFeature * GetFeature(GIntBig nFID) CPL_WARN_UNUSED_RESULT
Fetch a feature by its identifier.
Definition: ogrlayer.cpp:446
virtual int getNumPoints() const =0
Return the number of points of a curve geometry.
#define SRS_PP_LONGITUDE_OF_2ND_POINT
Definition: ogr_srs_api.h:325
OGRErr SetKrovak(double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfPseudoStdParallelLat, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5109
virtual OGRGeomFieldDefn * GetGeomFieldDefn(int i)
Fetch geometry field definition.
Definition: ogrfeaturedefn.cpp:680
double OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:1620
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:7670
OGRErr SetGaussSchreiberTMercator(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4784
OGRTriangle & operator=(const OGRTriangle &other)
Assignment operator.
Definition: ogrtriangle.cpp:143
#define OGRERR_UNSUPPORTED_OPERATION
Definition: ogr_core.h:296
OGRErr OSRStripCTParms(OGRSpatialReferenceH)
Strip OGC CT Parameters.
Definition: ogrspatialreference.cpp:6394
CPLErrorNum CPLGetLastErrorNo(void)
Definition: cpl_error.cpp:799
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:3784
OGRTriangle * toTriangle()
Definition: ogr_geometry.h:649
OGRSFDriverH OGRGetDriverByName(const char *)
Fetch the indicated driver.
virtual int GetFieldCount() const
Fetch number of fields on this feature.
Definition: ogrfeaturedefn.cpp:285
OGRErr importFromXML(const char *)
Import coordinate system from XML format (GML only currently).
Definition: ogr_srs_xml.cpp:1263
OGRErr OSRSetIGH(OGRSpatialReferenceH hSRS)
Definition: ogrspatialreference.cpp:4735
#define SRS_PP_LATITUDE_OF_ORIGIN
Definition: ogr_srs_api.h:285
Definition: cpl_http.h:61
OGRErr SetIWMPolyconic(double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5067
OGRErr OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5322
#define VALIDATE_POINTER1(ptr, func, rc)
Definition: cpl_error.h:260
#define SRS_PP_LONGITUDE_OF_1ST_POINT
Definition: ogr_srs_api.h:321
OGRErr importFromUrl(const char *)
Set spatial reference from a URL.
Definition: ogrspatialreference.cpp:2437
#define OLCStringsAsUTF8
Definition: ogr_core.h:761
GByte * pabyData
Definition: cpl_http.h:77
#define OGRERR_FAILURE
Definition: ogr_core.h:298
OGRErr SetProjection(const char *)
Set a projection name.
Definition: ogrspatialreference.cpp:3642
OGR_SRSNode * GetChild(int)
Definition: ogr_srsnode.cpp:122
OGRErr SetRobinson(double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5635
OGRErr OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5172
OGRErr SetIGH()
Definition: ogrspatialreference.cpp:4723
@ 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:4121
const char * OSRGetAuthorityName(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority name for a node.
Definition: ogrspatialreference.cpp:6297
#define SRS_PP_LONGITUDE_OF_CENTER
Definition: ogr_srs_api.h:279
#define ODrCDeleteDataSource
Definition: ogr_core.h:778
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:1769
OGRErr SetOrthographic(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5526
OGRErr exportToMICoordSys(char **) const
Export coordinate system in Mapinfo style CoordSys format.
Definition: ogrspatialreference.cpp:8487
OGRErr OSRSetProjection(OGRSpatialReferenceH, const char *)
Set a projection name.
Definition: ogrspatialreference.cpp:3677
OGRErr OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5581
#define CPL_C_END
Definition: cpl_port.h:337
void Clear()
Wipe current definition.
Definition: ogrspatialreference.cpp:259
OGRErr OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:3357
int Dereference()
Decrements the reference count by one.
Definition: ogrspatialreference.cpp:348
OGRErr SetGeocCS(const char *pszGeocName)
Set the user visible GEOCCS name.
Definition: ogrspatialreference.cpp:3308
void CPLDebug(const char *, const char *,...)
Definition: cpl_error.cpp:544
#define SRS_PP_PEG_POINT_HEIGHT
Definition: ogr_srs_api.h:333
OGRErr OSRSetKrovak(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfPseudoStdParallelLat, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5133
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:6721
virtual OGRErr GetExtent(OGREnvelope *psExtent, int bForce=TRUE) CPL_WARN_UNUSED_RESULT
Fetch the extent of this layer.
Definition: ogrlayer.cpp:210
OGRErr OSRSetMollweide(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5438
#define SRS_PT_GOODE_HOMOLOSINE
Definition: ogr_srs_api.h:137
OGRErr exportToWkt(char **) const
Definition: ogr_srsnode.cpp:447
void * OGRDataSourceH
Definition: ogr_api.h:510
Definition: ogr_feature.h:92
int IsSameVertCS(const OGRSpatialReference *) const
Do the VertCS'es match?
Definition: ogrspatialreference.cpp:6924
#define SRS_PP_LONGITUDE_OF_POINT_1
Definition: ogr_srs_api.h:293
OGRErr OSRSetEquirectangular(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4597
#define SRS_PP_STANDARD_PARALLEL_2
Definition: ogr_srs_api.h:275
#define SRS_PT_TUNISIA_MINING_GRID
Definition: ogr_srs_api.h:224
int OSRIsGeocentric(OGRSpatialReferenceH)
Check if geocentric coordinate system.
Definition: ogrspatialreference.cpp:6521
@ OFTInteger
Definition: ogr_core.h:596
OGRErr exportToPrettyWkt(char **, int=1) const
Definition: ogr_srsnode.cpp:521
#define STARTS_WITH(a, b)
Definition: cpl_port.h:568
void * CPLMalloc(size_t)
Definition: cpl_conv.cpp:168
#define SRS_PP_STANDARD_PARALLEL_1
Definition: ogr_srs_api.h:273
double OSRGetProjParm(OGRSpatialReferenceH hSRS, const char *pszParmName, double dfDefault, OGRErr *)
Fetch a projection parameter value.
Definition: ogrspatialreference.cpp:3891
#define SRS_PT_GEOSTATIONARY_SATELLITE
Definition: ogr_srs_api.h:134
#define SRS_PT_POLAR_STEREOGRAPHIC
Definition: ogr_srs_api.h:186
OGRErr SetMC(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5304
void addPoint(const OGRPoint *)
Add a point to a line string.
Definition: ogrlinestring.cpp:783
virtual void assignSpatialReference(OGRSpatialReference *poSR)
Assign spatial reference to this object.
Definition: ogrgeometry.cpp:421
@ 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:7846
double OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi minor axis.
Definition: ogrspatialreference.cpp:3227
static OGRPolygon * CastToPolygon(OGRCurvePolygon *poCP)
Convert to polygon.
Definition: ogrcurvepolygon.cpp:833
#define SRS_UA_DEGREE
Definition: ogr_srs_api.h:444
OGRErr importFromWkt(char **)
Import from WKT string.
Definition: ogrspatialreference.cpp:845
OGRErr OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double)
Set the angular units for the geographic coordinate system.
Definition: ogrspatialreference.cpp:1094
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:8429
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:1909
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:4949
#define SRS_PT_ORTHOGRAPHIC
Definition: ogr_srs_api.h:184
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:8375
void AddChild(OGR_SRSNode *)
Definition: ogr_srsnode.cpp:238
OGRErr OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4179
#define SRS_PT_GNOMONIC
Definition: ogr_srs_api.h:141
OGRSpatialReference * getSpatialReference(void) const
Returns spatial reference system for object.
Definition: ogr_geometry.h:434
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:936
#define SRS_UL_METER
Definition: ogr_srs_api.h:336
#define OLCRandomWrite
Definition: ogr_core.h:750
#define ODrCCreateDataSource
Definition: ogr_core.h:777
void CPLErrorReset(void)
Definition: cpl_error.cpp:710
virtual OGRErr ICreateFeature(OGRFeature *poFeature) CPL_WARN_UNUSED_RESULT
Create and write a new feature within a layer.
Definition: ogrlayer.cpp:636
double OSRGetLinearUnits(OGRSpatialReferenceH, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:1503
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:5488
OGRErr OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4488
Definition: ogrsf_frmts.h:315
int IsGeocentric() const
Check if geocentric coordinate system.
Definition: ogrspatialreference.cpp:6499
OGRErr importFromEPSG(int)
Initialize SRS based on EPSG GCS or PCS code.
Definition: ogr_fromepsg.cpp:2137
OGRErr OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4059
double OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor)
Compute inverse flattening from semi-major and semi-minor axis.
Definition: ogrspatialreference.cpp:8574
OGRErr SetEckertVI(double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4544
const char * GetAxis(const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation) const
Fetch the orientation of one axis.
Definition: ogrspatialreference.cpp:8223
OGRErr SetTPED(double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4141
OGRErr OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName, OGRSpatialReferenceH hHorizSRS, OGRSpatialReferenceH hVertSRS)
Setup a compound coordinate system.
Definition: ogrspatialreference.cpp:3547
#define SRS_PT_NEW_ZEALAND_MAP_GRID
Definition: ogr_srs_api.h:178
OGRAxisOrientation
Definition: ogr_srs_api.h:48
#define SRS_PP_LONGITUDE_OF_ORIGIN
Definition: ogr_srs_api.h:283
OGRErr importFromProj4(const char *)
Import PROJ.4 coordinate string.
Definition: ogr_srs_proj4.cpp:478
void CPLError(CPLErr eErrClass, CPLErrorNum err_no, const char *fmt,...)
Definition: cpl_error.cpp:232
int OSRIsGeographic(OGRSpatialReferenceH)
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:6566
#define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP
Definition: ogr_srs_api.h:155
Definition: ogr_feature.h:182
double GetAngularUnits(char **) const CPL_WARN_DEPRECATED("Use GetAngularUnits( const char**) instead")
Fetch angular geographic coordinate system units.
Definition: ogrspatialreference.cpp:1174
OGRSpatialReferenceH CPL_STDCALL OSRNewSpatialReference(const char *)
Constructor.
Definition: ogrspatialreference.cpp:151
virtual void setMeasured(OGRBoolean bIsMeasured) override
Set the type as Measured.
Definition: ogrpolyhedralsurface.cpp:1001
OGRErr OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt)
Definition: ogrspatialreference.cpp:6070
static int IsLinearParameter(const char *)
Definition: ogrspatialreference.cpp:7908
OGRErr SetLAEA(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5154
#define SRS_PP_LATITUDE_OF_POINT_2
Definition: ogr_srs_api.h:299
double OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor, double dfInvFlattening)
Compute semi-minor axis from semi-major axis and inverse flattening.
Definition: ogrspatialreference.cpp:8602
OGRTriangulatedSurface & operator=(const OGRTriangulatedSurface &other)
Assignment operator.
Definition: ogrtriangulatedsurface.cpp:88
#define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN
Definition: ogr_srs_api.h:149
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:155
virtual OGRErr addRingDirectly(OGRCurve *poNewRing) override
Add a ring to a polygon.
Definition: ogrtriangle.cpp:251
#define CPLE_NotSupported
Definition: cpl_error.h:109
double GetLinearUnits(char **) const CPL_WARN_DEPRECATED("Use GetLinearUnits( const char**) instead")
Fetch linear projection units.
Definition: ogrspatialreference.cpp:1463
#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:3468
void CPL_STDCALL OSRDestroySpatialReference(OGRSpatialReferenceH)
OGRSpatialReference destructor.
Definition: ogrspatialreference.cpp:242
const char * OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority code for a node.
Definition: ogrspatialreference.cpp:6222
#define SRS_PT_VANDERGRINTEN
Definition: ogr_srs_api.h:230
#define SRS_PP_SATELLITE_HEIGHT
Definition: ogr_srs_api.h:313
OGRErr OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double, double, double, double, double)
Set the Bursa-Wolf conversion to WGS84.
Definition: ogrspatialreference.cpp:7792
OGRSpatialReference * convertToOtherProjection(const char *pszTargetProjection, const char *const *papszOptions=nullptr) const
Convert to another equivalent projection.
Definition: ogrspatialreference.cpp:7380
virtual OGRwkbGeometryType getGeometryType() const override
Fetch geometry type.
Definition: ogrtriangle.cpp:165
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:6669
#define SRS_PT_OBLIQUE_STEREOGRAPHIC
Definition: ogr_srs_api.h:181
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:8077
virtual int GetFieldIndex(const char *) const
Find field by name.
Definition: ogrfeaturedefn.cpp:1217
char ** CSLDuplicate(CSLConstList papszStrList)
Definition: cpl_string.cpp:228
Definition: ogrsf_frmts.h:348
virtual int get_IsClosed() const
Return TRUE if curve is closed.
Definition: ogrcurve.cpp:97
bool IsFieldSetAndNotNull(int iField) const
Test if a field is set and not null.
Definition: ogrfeature.cpp:1583
#define SRS_PT_WAGNER_III
Definition: ogr_srs_api.h:240
int OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:7261
void InsertChild(OGR_SRSNode *, int)
Definition: ogr_srsnode.cpp:261
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:6100
char * pszErrBuf
Definition: cpl_http.h:69
void OSRRelease(OGRSpatialReferenceH)
Decrements the reference count by one, and destroy if zero.
Definition: ogrspatialreference.cpp:414
OGRErr OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:6009
OGRErr OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS, const OGRSpatialReferenceH hSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition: ogrspatialreference.cpp:2151
OGRErr OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter with a normalized value.
Definition: ogrspatialreference.cpp:4025
double GetInvFlattening(OGRErr *=nullptr) const
Get spheroid inverse flattening.
Definition: ogrspatialreference.cpp:3102
#define SRS_WGS84_SEMIMAJOR
Definition: ogr_srs_api.h:463
#define SRS_PT_ECKERT_VI
Definition: ogr_srs_api.h:121
int nStatus
Definition: cpl_http.h:63
OGRErr OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5652
void CSLDestroy(char **papszStrList)
Definition: cpl_string.cpp:200
#define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL
Definition: ogr_srs_api.h:197
#define M_PI
Definition: cpl_port.h:407
long long GIntBig
Definition: cpl_port.h:246
OGRErr OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:2053
OGRPolygon * toPolygon()
Definition: ogr_geometry.h:635
#define SRS_PT_WAGNER_V
Definition: ogr_srs_api.h:244
#define SRS_PT_MERCATOR_2SP
Definition: ogr_srs_api.h:169
OGRCurve * getExteriorRingCurve()
Fetch reference to external polygon ring.
Definition: ogrcurvepolygon.cpp:204
int getNumInteriorRings() const
Fetch the number of internal rings.
Definition: ogrcurvepolygon.cpp:241
int nDataLen
Definition: cpl_http.h:72
OGRErr OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5286
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:1713
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:4976
OGRwkbGeometryType
Definition: ogr_core.h:317
#define CPL_UNUSED
Definition: cpl_port.h:938
#define SRS_PP_FALSE_EASTING
Definition: ogr_srs_api.h:287
@ wkbTINZ
Definition: ogr_core.h:360
double OSRGetAngularUnits(OGRSpatialReferenceH, char **)
Fetch angular geographic coordinate system units.
Definition: ogrspatialreference.cpp:1189
#define SRS_PT_CYLINDRICAL_EQUAL_AREA
Definition: ogr_srs_api.h:107
#define OLCRandomRead
Definition: ogr_core.h:748
Definition: ogr_geometry.h:2032
static void DestroySpatialReference(OGRSpatialReference *poSRS)
OGRSpatialReference destructor.
Definition: ogrspatialreference.cpp:225
Definition: ogr_feature.h:353
OGRErr SetLCC(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5188
const char * OSRAxisEnumToName(OGRAxisOrientation eOrientation)
Return the string representation for the OGRAxisOrientation enumeration.
Definition: ogrspatialreference.cpp:8332
#define SRS_PT_IGH
Definition: ogr_srs_api.h:139
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:6900
OGRErr SetVDG(double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5781
OGRErr OSRExportToMICoordSys(OGRSpatialReferenceH, char **)
Export coordinate system in Mapinfo style CoordSys format.
Definition: ogrspatialreference.cpp:8458
OGRErr OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong)
Definition: ogrspatialreference.cpp:6039
#define SRS_WGS84_INVFLATTENING
Definition: ogr_srs_api.h:465
OGRErr GetTOWGS84(double *padfCoef, int nCoeff=7) const
Fetch TOWGS84 parameters, if available.
Definition: ogrspatialreference.cpp:7818
OGRErr SetMollweide(double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5421
#define OLCFastGetExtent
Definition: ogr_core.h:753
#define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED
Definition: ogr_srs_api.h:203
OGRSpatialReference & operator=(const OGRSpatialReference &)
Definition: ogrspatialreference.cpp:280
OGRErr OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *, const char *, double)
Set the linear units for the target node.
Definition: ogrspatialreference.cpp:1429
OGRErr OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5209
@ 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:193
OGRErr OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4254
virtual OGRErr addRing(OGRCurve *)
Add a ring to a polygon.
Definition: ogrcurvepolygon.cpp:365
OGRErr SetTMVariant(const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4078
OGRErr OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5685
OGRBoolean IsMeasured() const
Definition: ogr_geometry.h:364
OGRErr SetGnomonic(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4823
int FindChild(const char *) const
Definition: ogr_srsnode.cpp:322
#define SRS_UL_US_FOOT_CONV
Definition: ogr_srs_api.h:344
int OSRIsVertical(OGRSpatialReferenceH)
Check if vertical coordinate system.
Definition: ogrspatialreference.cpp:6652
Definition: ogr_geometry.h:925
virtual void assignSpatialReference(OGRSpatialReference *poSR) override
Assign spatial reference to this object.
Definition: ogrcurvepolygon.cpp:711
OGRErr OGR_Dr_DeleteDataSource(OGRSFDriverH, const char *)
Delete a datasource.
OGRErr OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4291
VSILFILE * VSIFOpenL(const char *, const char *)
Open file.
Definition: cpl_vsil.cpp:818
int IsVertical() const
Check if vertical coordinate system.
Definition: ogrspatialreference.cpp:6627
int OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth)
Get utm zone information.
Definition: ogrspatialreference.cpp:5957
virtual int GetGeomFieldCount() const
Fetch number of geometry fields on this feature.
Definition: ogrfeaturedefn.cpp:631
OGRErr OSRSetEckertVI(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4561
#define SRS_PP_PEG_POINT_HEADING
Definition: ogr_srs_api.h:331
CPLErr
Definition: cpl_error.h:52
OGR_SRSNode * GetAttrNode(const char *)
Find named node in tree.
Definition: ogrspatialreference.cpp:465
OGRErr SetEckertIV(double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4508
virtual OGRErr SetIgnoredFields(const char **papszFields)
Set which fields can be omitted when retrieving features from the layer.
Definition: ogrlayer.cpp:1791
OGRErr OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4706
OGR_SRSNode * Clone() const
Definition: ogr_srsnode.cpp:375
#define SRS_PT_ECKERT_I
Definition: ogr_srs_api.h:111
char ** CSLAddString(char **papszStrList, const char *pszNewString)
Definition: cpl_string.cpp:83
#define SRS_PT_ECKERT_II
Definition: ogr_srs_api.h:113
OGRPolyhedralSurface()
Create an empty PolyhedralSurface.
Definition: ogrpolyhedralsurface.cpp:47
int OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the VertCS'es match?
Definition: ogrspatialreference.cpp:6963
#define SRS_PT_KROVAK
Definition: ogr_srs_api.h:232
OGRErr SetCS(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4376
OGRSpatialReference(const OGRSpatialReference &)
Definition: ogrspatialreference.cpp:175
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:4326
#define SRS_PT_WAGNER_IV
Definition: ogr_srs_api.h:242
OGRErr OSRImportFromUrl(OGRSpatialReferenceH, const char *)
Set spatial reference from a URL.
Definition: ogrspatialreference.cpp:2518
Definition: ogr_geometry.h:1312
#define SRS_PT_SCH
Definition: ogr_srs_api.h:266
#define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA
Definition: ogr_srs_api.h:164
#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:5247
Definition: ogr_feature.h:259
double CPLAtof(const char *)
Definition: cpl_strtod.cpp:117
OGRErr OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4672
virtual OGRwkbGeometryType GetGeomType()
Return the layer geometry type.
Definition: ogrlayer.cpp:1754
virtual OGRErr ISetFeature(OGRFeature *poFeature) CPL_WARN_UNUSED_RESULT
Rewrite an existing feature.
Definition: ogrlayer.cpp:597
#define SRS_PT_WAGNER_VII
Definition: ogr_srs_api.h:248
~OGRTriangulatedSurface()
Destructor.
Definition: ogrtriangulatedsurface.cpp:75
#define CPLE_IllegalArg
Definition: cpl_error.h:107
void SetRoot(OGR_SRSNode *)
Set the root SRS node.
Definition: ogrspatialreference.cpp:436
Definition: ogr_spatialref.h:65
@ wkbTriangle
Definition: ogr_core.h:347
virtual OGRErr SetAttributeFilter(const char *)
Set a new attribute query.
Definition: ogrlayer.cpp:337
OGRPolygon()
Create an empty polygon.
Definition: ogrpolygon.cpp:55
OGRGeometry * GetGeomFieldRef(int iField)
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:666
Definition: ogr_geometry.h:1909
Definition: ogr_geometry.h:2511
OGRErr OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible LOCAL_CS name.
Definition: ogrspatialreference.cpp:3279
OGRErr importFromEPSGA(int)
Initialize SRS based on EPSG GCS or PCS code.
Definition: ogr_fromepsg.cpp:2202
OGRErr SetGS(double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4655
Definition: ogr_geometry.h:1759
OGRErr SetTM(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4039
OGRErr SetLinearUnitsAndUpdateParameters(const char *pszName, double dfInMeters)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:1221
OGRErr OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4394
void dumpReadable()
Definition: ogrspatialreference.cpp:625
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:4689
OGRErr CPL_STDCALL OSRExportToPrettyWkt(OGRSpatialReferenceH, char **, int)
Convert this SRS into a nicely formatted WKT string for display to a person.
Definition: ogrspatialreference.cpp:695
OGRErr CPL_STDCALL OSRSetFromUserInput(OGRSpatialReferenceH hSRS, const char *)
Set spatial reference from various text formats.
Definition: ogrspatialreference.cpp:2410
OGRErr exportToWkt(char **) const
Convert this SRS into WKT format.
Definition: ogrspatialreference.cpp:728
virtual void assignSpatialReference(OGRSpatialReference *poSR) override
Assign spatial reference to this object.
Definition: ogrpolyhedralsurface.cpp:1082
OGRErr OSRImportFromWkt(OGRSpatialReferenceH, char **)
Import from WKT string.
Definition: ogrspatialreference.cpp:888
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:5015
#define SRS_PP_FALSE_NORTHING
Definition: ogr_srs_api.h:289
OGRErr SetCEA(double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4342
@ OFTReal
Definition: ogr_core.h:598
static int IsAngularParameter(const char *)
Definition: ogrspatialreference.cpp:7865
#define SRS_PP_PEG_POINT_LATITUDE
Definition: ogr_srs_api.h:327
OGRErr SetLocalCS(const char *)
Set the user visible LOCAL_CS name.
Definition: ogrspatialreference.cpp:3252
#define SRS_PT_ECKERT_V
Definition: ogr_srs_api.h:119
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:134
#define SRS_PT_SINUSOIDAL
Definition: ogr_srs_api.h:193
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:3079
OGRErr SetStereographic(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5701
OGRErr SetWagner(int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5969
void OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS)
Free return of OSRIdentifyMatches()
Definition: ogrspatialreference.cpp:7696
OGRErr SetNZMG(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5454
double GetProjParm(const char *, double=0.0, OGRErr *=nullptr) const
Fetch a projection parameter value.
Definition: ogrspatialreference.cpp:3851
#define OGRNullFID
Definition: ogr_core.h:646
#define OGRERR_INVALID_HANDLE
Definition: ogr_core.h:300
double GetEccentricity() const
Get spheroid eccentricity.
Definition: ogrspatialreference.cpp:3149
OGRErr Fixup()
Fixup as needed.
Definition: ogrspatialreference.cpp:8015
virtual OGRErr SyncToDisk()
Flush pending changes to disk.
Definition: ogrlayer.cpp:1519
int IsGeographic() const
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:6542
#define CPLFree
Definition: cpl_conv.h:81
#define SRS_PP_PSEUDO_STD_PARALLEL_1
Definition: ogr_srs_api.h:277
OGRErr SetCompoundCS(const char *pszName, const OGRSpatialReference *poHorizSRS, const OGRSpatialReference *poVertSRS)
Setup a compound coordinate system.
Definition: ogrspatialreference.cpp:3502
@ wkbTIN
Definition: ogr_core.h:345
int OSRIsCompound(OGRSpatialReferenceH)
Check if the coordinate system is compound.
Definition: ogrspatialreference.cpp:6432
OGRErr OSRSetTMVariant(OGRSpatialReferenceH hSRS, const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4100
#define SRS_PP_LATITUDE_OF_2ND_POINT
Definition: ogr_srs_api.h:323
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 SetSOC(double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5746
OGRErr SetNormProjParm(const char *, double)
Set a projection parameter with a normalized value.
Definition: ogrspatialreference.cpp:3994
OGRTriangle()
Constructor.
Definition: ogrtriangle.cpp:46
OGRwkbVariant
Definition: ogr_core.h:423
GIntBig GetFID() const
Get feature identifier.
Definition: ogr_feature.h:711
@ OAO_South
Definition: ogr_srs_api.h:51
virtual const char * getGeometryName() const override
Returns the geometry name of the TriangulatedSurface.
Definition: ogrtriangulatedsurface.cpp:120
#define SRS_PM_GREENWICH
Definition: ogr_srs_api.h:451
#define SRS_PP_AZIMUTH
Definition: ogr_srs_api.h:291
FILE VSILFILE
Definition: cpl_vsi.h:155
virtual void set3D(OGRBoolean bIs3D) override
Set the type as 3D geometry.
Definition: ogrpolyhedralsurface.cpp:986
#define SRS_PT_TWO_POINT_EQUIDISTANT
Definition: ogr_srs_api.h:227
int OSRIsProjected(OGRSpatialReferenceH)
Check if projected coordinate system.
Definition: ogrspatialreference.cpp:6476
OGRErr SetSCH(double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt)
Definition: ogrspatialreference.cpp:6053
OGRErr OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5508
const char *CPL_STDCALL OSRGetAttrValue(OGRSpatialReferenceH hSRS, const char *pszName, int iChild)
Fetch indicated attribute of named node.
Definition: ogrspatialreference.cpp:568
OGRTriangulatedSurface()
Constructor.
Definition: ogrtriangulatedsurface.cpp:46
#define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM
Definition: ogr_srs_api.h:161
#define STARTS_WITH_CI(a, b)
Definition: cpl_port.h:570
void StripNodes(const char *)
Definition: ogr_srsnode.cpp:891
#define CPLE_AppDefined
Definition: cpl_error.h:99
OGRErr SetFromUserInput(const char *)
Set spatial reference from various text formats.
Definition: ogrspatialreference.cpp:2205
OGRErr SetUTM(int nZone, int bNorth=TRUE)
Set UTM projection definition.
Definition: ogrspatialreference.cpp:5832
OGRErr OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4360
OGRErr OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5472
Generated for GDAL by
1.8.17.