31 #ifndef OGR_GENSQL_H_INCLUDED
32 #define OGR_GENSQL_H_INCLUDED
43 #define GEOM_FIELD_INDEX_TO_ALL_FIELD_INDEX(poFDefn, iGeom) \
44 ((poFDefn)->GetFieldCount() + SPECIAL_FIELD_COUNT + (iGeom))
46 #define IS_GEOM_FIELD_INDEX(poFDefn, idx) \
47 (((idx) >= (poFDefn)->GetFieldCount() + SPECIAL_FIELD_COUNT) && \
48 ((idx) < (poFDefn)->GetFieldCount() + SPECIAL_FIELD_COUNT + (poFDefn)->GetGeomFieldCount()))
50 #define ALL_FIELD_INDEX_TO_GEOM_FIELD_INDEX(poFDefn, idx) \
51 ((idx) - ((poFDefn)->GetFieldCount() + SPECIAL_FIELD_COUNT))
57 class OGRGenSQLResultsLayer final:
public OGRLayer
70 int *panGeomFieldToSrcGeomField;
82 GDALDataset **papoExtraDS;
85 std::vector<CPLString> m_oDistinctList;
90 void CreateOrderByIndex();
94 void SortIndexSection(
const OGRField *pasIndexFields,
96 size_t nStart,
size_t nEntries );
97 void FreeIndexFields(
OGRField *pasIndexFields,
99 bool bFreeArray =
true);
103 void ApplyFiltersToSource();
105 void FindAndSetIgnoredFields();
106 void ExploreExprForIgnoredFields(swq_expr_node* expr,
CPLHashSet* hSet);
107 void AddFieldDefnToSet(
int iTable,
int iColumn,
CPLHashSet* hSet);
109 int ContainGeomSpecialField(swq_expr_node* expr);
111 void InvalidateOrderByIndex();
113 int MustEvaluateSpatialFilterOnGenSQL();
116 OGRGenSQLResultsLayer( GDALDataset *poSrcDS,
119 const char *pszWHERE,
120 const char *pszDialect );
121 virtual ~OGRGenSQLResultsLayer();
133 virtual OGRErr GetExtent(OGREnvelope *psExtent,
int bForce = TRUE)
override {
return GetExtent(0, psExtent, bForce); }
134 virtual OGRErr GetExtent(
int iGeomField, OGREnvelope *psExtent,
int bForce = TRUE)
override;
OGR_SRSNode * GetRoot()
Return root node.
Definition: ogr_spatialref.h:266
double GetPrimeMeridian(char **) const CPL_WARN_DEPRECATED("Use GetPrimeMeridian( const char**) instead")
Fetch prime meridian info.
Definition: ogrspatialreference.cpp:1698
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
unsigned long CPLHashSetHashPointer(const void *elt)
Definition: cpl_hash_set.cpp:514
int EPSGTreatsAsNorthingEasting() const
This method returns TRUE if EPSG feels this projected coordinate system should be treated as having n...
Definition: ogr_fromepsg.cpp:2850
int GetEPSGGeogCS() const
Definition: ogr_fromepsg.cpp:2545
const char * CPLReadLineL(VSILFILE *)
Definition: cpl_conv.cpp:630
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
@ OAO_North
Definition: ogr_srs_api.h:50
const char * CPLGetLastErrorMsg(void)
Definition: cpl_error.cpp:847
OGRErr SetNode(const char *, const char *)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:920
virtual OGRErr SetFID(GIntBig nFIDIn)
Set the feature identifier.
Definition: ogrfeature.cpp:5436
int OGR_RawField_IsNull(const OGRField *)
Returns whether a raw field is null.
Definition: ogrfeature.cpp:6960
OGRErr SetMercator(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5338
void SetNativeMediaType(const char *pszNativeMediaType)
Sets the native media type for the feature.
Definition: ogrfeature.cpp:6887
void Release()
Decrements the reference count by one, and destroy if zero.
Definition: ogrspatialreference.cpp:398
char * CPLEscapeString(const char *pszString, int nLength, int nScheme)
Definition: cpl_string.cpp:2032
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
const char * CPLFindFile(const char *pszClass, const char *pszBasename)
Definition: cpl_findfile.cpp:177
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.
@ OFSTBoolean
Definition: ogr_core.h:626
OGRErr SetTMG(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4199
CPLSTRING_DLL CPLString & Printf(const char *pszFormat,...)
Definition: cplstring.cpp:67
OGRErr SetEquirectangular(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4578
const char * GetAuthorityCode(const char *pszTargetKey) const
Get the authority code for a node.
Definition: ogrspatialreference.cpp:6183
#define VSI_REALLOC_VERBOSE(pOldPtr, nNewSize)
Definition: cpl_vsi.h:285
OGRErr SetLCC1SP(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5227
CPLHashSet * CPLHashSetNew(CPLHashSetHashFunc fnHashFunc, CPLHashSetEqualFunc fnEqualFunc, CPLHashSetFreeEltFunc fnFreeEltFunc)
Definition: cpl_hash_set.cpp:91
OGRErr morphFromESRI()
Convert in place from ESRI WKT format.
Definition: ogr_srs_esri.cpp:1971
@ wkbMultiPolygon
Definition: ogr_core.h:329
const char * GetAttrValue(const char *, int=0) const
Fetch indicated attribute of named node.
Definition: ogrspatialreference.cpp:545
void * CPLCalloc(size_t, size_t)
Definition: cpl_conv.cpp:138
OGRErr SetExtension(const char *pszTargetKey, const char *pszName, const char *pszValue)
Set extension value.
Definition: ogrspatialreference.cpp:8126
static OGRGeometry * FromHandle(OGRGeometryH hGeom)
Definition: ogr_geometry.h:516
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
void CPLPopErrorHandler(void)
Definition: cpl_error.cpp:1223
int GetWidth() const
Get the formatting width for this field.
Definition: ogr_feature.h:127
OGRGeometryH OGR_G_ForceToMultiLineString(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert to multilinestring.
Definition: ogrgeometryfactory.cpp:1294
Definition: ogr_spatialref.h:145
OGRErr SetACEA(double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4233
virtual GIntBig GetFeatureCount(int bForce=TRUE)
Fetch the feature count in this layer.
Definition: ogrlayer.cpp:172
int CPLsnprintf(char *str, size_t size, const char *fmt,...)
Definition: cpl_string.cpp:1337
OGRErr OSRAutoIdentifyEPSG(OGRSpatialReferenceH hSRS)
Set EPSG authority info if possible.
Definition: ogr_fromepsg.cpp:2758
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
@ OFTDateTime
Definition: ogr_core.h:607
double GetNormProjParm(const char *, double=0.0, OGRErr *=nullptr) const
Fetch a normalized projection parameter value.
Definition: ogrspatialreference.cpp:3924
Definition: ogr_geometry.h:286
int IsSame(const OGRSpatialReference *) const
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:6997
const char * CPLResetExtension(const char *, const char *)
Definition: cpl_path.cpp:431
OGRErr SetLinearUnits(const char *pszName, double dfInMeters)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:1304
int CSLCount(CSLConstList papszStrList)
Definition: cpl_string.cpp:147
int VSIMkdir(const char *pszPathname, long mode)
Create a directory.
Definition: cpl_vsil.cpp:333
OGRGeomFieldDefn * GetGeomFieldDefnRef(int iField)
Fetch definition for this geometry field.
Definition: ogr_feature.h:581
Definition: ogrsf_frmts.h:70
Convenient string class based on std::string.
Definition: cpl_string.h:336
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
void SetValue(const char *)
Definition: ogr_srsnode.cpp:358
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
virtual OGRGeometry * GetSpatialFilter()
This method returns the current spatial filter for this layer.
Definition: ogrlayer.cpp:1084
void SetNativeData(const char *pszNativeData)
Sets the native data for the feature.
Definition: ogrfeature.cpp:6831
@ OAO_East
Definition: ogr_srs_api.h:52
void * CPLRealloc(void *, size_t)
Definition: cpl_conv.cpp:225
virtual void SetSpatialFilter(OGRGeometry *)
Set a new spatial filter.
Definition: ogrlayer.cpp:1112
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
int GetUTMZone(int *pbNorth=nullptr) const
Get utm zone information.
Definition: ogrspatialreference.cpp:5908
#define CPL_FRMT_GIB
Definition: cpl_port.h:314
#define EQUAL(a, b)
Definition: cpl_port.h:559
int VSIFCloseL(VSILFILE *) EXPERIMENTAL_CPL_WARN_UNUSED_RESULT
Close file.
Definition: cpl_vsil.cpp:928
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:113
OGRErr FixupOrdering()
Correct parameter ordering to match CT Specification.
Definition: ogrspatialreference.cpp:7961
const char * GetValue() const
Definition: ogr_spatialref.h:100
OGRErr SetTargetLinearUnits(const char *pszTargetKey, const char *pszName, double dfInMeters)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:1358
virtual OGRFeatureDefn * GetLayerDefn()=0
Fetch the schema information for this layer.
virtual OGRFieldDefn * GetFieldDefn(int i)
Fetch field definition.
Definition: ogrfeaturedefn.cpp:329
OGRErr SetStatePlane(int nZone, int bNAD83=TRUE, const char *pszOverrideUnitName=nullptr, double dfOverrideUnit=0.0)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:2395
#define SRS_PT_LABORDE_OBLIQUE_MERCATOR
Definition: ogr_srs_api.h:152
#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
const char * CSLGetField(CSLConstList, int)
Definition: cpl_string.cpp:173
int OGR_RawField_IsUnset(const OGRField *)
Returns whether a raw field is unset.
Definition: ogrfeature.cpp:6939
void CPLPushErrorHandler(CPLErrorHandler)
Definition: cpl_error.cpp:1166
#define CPLAssert(expr)
Definition: cpl_error.h:182
int CPLHashSetInsert(CPLHashSet *set, void *elt)
Definition: cpl_hash_set.cpp:355
void SetField(int i, int nValue)
Set field to integer value.
Definition: ogrfeature.cpp:3415
#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
#define SRS_PP_SCALE_FACTOR
Definition: ogr_srs_api.h:271
#define CPLES_SQL
Definition: cpl_string.h:173
void * OGRSpatialReferenceH
Definition: ogr_api.h:74
virtual OGRSpatialReference * GetSpatialRef() const
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:435
bool CPLTestBool(const char *pszValue)
Definition: cpl_string.cpp:1526
virtual OGRFeature * GetFeature(GIntBig nFID) CPL_WARN_UNUSED_RESULT
Fetch a feature by its identifier.
Definition: ogrlayer.cpp:446
OGRErr SetKrovak(double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfPseudoStdParallelLat, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5109
Definition: ogr_core.h:679
OGRFeatureDefn * GetDefnRef()
Fetch feature definition.
Definition: ogr_feature.h:570
virtual OGRGeomFieldDefn * GetGeomFieldDefn(int i)
Fetch geometry field definition.
Definition: ogrfeaturedefn.cpp:680
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
virtual const char * GetStyleString() const
Fetch style string for this feature.
Definition: ogrfeature.cpp:6114
virtual int GetFieldCount() const
Fetch number of fields on this feature.
Definition: ogrfeaturedefn.cpp:285
const char * CPLGetDirname(const char *)
Definition: cpl_path.cpp:208
unsigned long long GUIntBig
Definition: cpl_port.h:249
void CPLHashSetDestroy(CPLHashSet *set)
Definition: cpl_hash_set.cpp:207
#define SRS_PP_LATITUDE_OF_ORIGIN
Definition: ogr_srs_api.h:285
#define CPLE_OpenFailed
Definition: cpl_error.h:105
#define VALIDATE_POINTER1(ptr, func, rc)
Definition: cpl_error.h:260
#define OGRERR_FAILURE
Definition: ogr_core.h:298
OGR_SRSNode * GetChild(int)
Definition: ogr_srsnode.cpp:122
@ OFTString
Definition: ogr_core.h:600
@ OAO_Other
Definition: ogr_srs_api.h:49
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
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
void Clear()
Wipe current definition.
Definition: ogrspatialreference.cpp:259
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
int EPSGTreatsAsLatLong() const
This method returns TRUE if EPSG feels this geographic coordinate system should be treated as having ...
Definition: ogr_fromepsg.cpp:2787
virtual OGRErr GetExtent(OGREnvelope *psExtent, int bForce=TRUE) CPL_WARN_UNUSED_RESULT
Fetch the extent of this layer.
Definition: ogrlayer.cpp:210
Definition: ogr_feature.h:92
const char * CPLFormFilename(const char *pszPath, const char *pszBasename, const char *pszExtension)
Definition: cpl_path.cpp:535
virtual void SetStyleString(const char *)
Set feature style string.
Definition: ogrfeature.cpp:6166
@ OFTInteger
Definition: ogr_core.h:596
int VSIStatL(const char *, VSIStatBufL *)
Get filesystem object info.
Definition: cpl_vsil.cpp:558
double GetFieldAsDouble(int i) const
Fetch field value as a double.
Definition: ogrfeature.cpp:2116
#define STARTS_WITH(a, b)
Definition: cpl_port.h:568
#define OLMD_FID64
Definition: ogr_core.h:787
void * CPLMalloc(size_t)
Definition: cpl_conv.cpp:168
#define SRS_PP_STANDARD_PARALLEL_1
Definition: ogr_srs_api.h:273
#define SRS_PT_POLAR_STEREOGRAPHIC
Definition: ogr_srs_api.h:186
@ wkbNone
Definition: ogr_core.h:349
int CPLHashSetEqualPointer(const void *elt1, const void *elt2)
Definition: cpl_hash_set.cpp:533
OGRGeometryH OGR_G_ForceToLineString(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert to line string.
Definition: ogrgeometryfactory.cpp:4136
@ wkbPolygon
Definition: ogr_core.h:324
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
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
#define SRS_UL_METER
Definition: ogr_srs_api.h:336
void CPLErrorReset(void)
Definition: cpl_error.cpp:710
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
@ OFSTNone
Definition: ogr_core.h:624
OGRErr importFromEPSG(int)
Initialize SRS based on EPSG GCS or PCS code.
Definition: ogr_fromepsg.cpp:2137
double OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor)
Compute inverse flattening from semi-major and semi-minor axis.
Definition: ogrspatialreference.cpp:8574
OGRAxisOrientation
Definition: ogr_srs_api.h:48
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
#define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP
Definition: ogr_srs_api.h:155
Definition: ogr_feature.h:182
CPLSTRING_DLL CPLString & tolower(void)
Definition: cplstring.cpp:349
int OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as havin...
Definition: ogr_fromepsg.cpp:2887
OGRErr SetLAEA(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:5154
void VSIFree(void *)
Definition: cpl_vsisimple.cpp:823
#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
@ OFTTime
Definition: ogr_core.h:606
OGRFieldType GetType() const
Fetch type of this field.
Definition: ogr_feature.h:115
char ** CSLDuplicate(CSLConstList papszStrList)
Definition: cpl_string.cpp:228
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: ogr_fromepsg.cpp:2821
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
CPLSTRING_DLL CPLString & replaceAll(const std::string &osBefore, const std::string &osAfter)
Definition: cplstring.cpp:366
Definition: cpl_hash_set.cpp:40
void CSLDestroy(char **papszStrList)
Definition: cpl_string.cpp:200
#define M_PI
Definition: cpl_port.h:407
long long GIntBig
Definition: cpl_port.h:246
const OGRFieldDefn * GetFieldDefnRef(int iField) const
Fetch definition for this field.
Definition: ogr_feature.h:601
OGRErr CPL_STDCALL OSRImportFromEPSGA(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG GCS or PCS code.
Definition: ogr_fromepsg.cpp:2356
#define VSI_MALLOC_VERBOSE(size)
Definition: cpl_vsi.h:265
OGRwkbGeometryType
Definition: ogr_core.h:317
#define SRS_PP_FALSE_EASTING
Definition: ogr_srs_api.h:287
OGRField * GetRawFieldRef(int i)
Fetch a pointer to the internal field value given the index.
Definition: ogr_feature.h:618
#define OLCRandomRead
Definition: ogr_core.h:748
@ OFTDate
Definition: ogr_core.h:605
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
struct stat64 VSIStatBufL
Definition: cpl_vsi.h:191
OGRwkbGeometryType GetType() const
Fetch geometry type of this field.
Definition: ogr_feature.h:205
const char * GetNativeMediaType() const
Returns the native media type for the feature.
Definition: ogr_feature.h:745
OGRErr SetGeomField(int iField, const OGRGeometry *)
Set feature geometry of a specified geometry field.
Definition: ogrfeature.cpp:880
#define OLCFastGetExtent
Definition: ogr_core.h:753
int FindChild(const char *) const
Definition: ogr_srsnode.cpp:322
#define SRS_UL_US_FOOT_CONV
Definition: ogr_srs_api.h:344
VSILFILE * VSIFOpenL(const char *, const char *)
Open file.
Definition: cpl_vsil.cpp:818
@ wkbGeometryCollection
Definition: ogr_core.h:330
OGRFieldType
Definition: ogr_core.h:594
virtual int GetGeomFieldCount() const
Fetch number of geometry fields on this feature.
Definition: ogrfeaturedefn.cpp:631
OGRGeometryH OGR_G_ForceToMultiPolygon(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert to multipolygon.
Definition: ogrgeometryfactory.cpp:962
virtual OGRErr SetNextByIndex(GIntBig nIndex)
Move read cursor to the nIndex'th feature in the current resultset.
Definition: ogrlayer.cpp:498
OGR_SRSNode * GetAttrNode(const char *)
Find named node in tree.
Definition: ogrspatialreference.cpp:465
virtual OGRErr SetIgnoredFields(const char **papszFields)
Set which fields can be omitted when retrieving features from the layer.
Definition: ogrlayer.cpp:1791
OGR_SRSNode * Clone() const
Definition: ogr_srsnode.cpp:375
char ** CSLAddString(char **papszStrList, const char *pszNewString)
Definition: cpl_string.cpp:83
OGRErr SetCS(double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4376
OGRSpatialReference(const OGRSpatialReference &)
Definition: ogrspatialreference.cpp:175
@ OFTInteger64
Definition: ogr_core.h:608
GIntBig GetFieldAsInteger64(int i) const
Fetch field value as integer 64 bit.
Definition: ogrfeature.cpp:1998
int GetFieldAsInteger(int i) const
Fetch field value as integer.
Definition: ogrfeature.cpp:1859
#define OGRERR_NONE
Definition: ogr_core.h:292
char * CPLStrdup(const char *)
Definition: cpl_conv.cpp:293
Definition: ogr_feature.h:259
double CPLAtof(const char *)
Definition: cpl_strtod.cpp:117
Definition: ogr_spatialref.h:65
virtual OGRErr SetAttributeFilter(const char *)
Set a new attribute query.
Definition: ogrlayer.cpp:337
#define OLCFastSetNextByIndex
Definition: ogr_core.h:760
@ wkbLineString
Definition: ogr_core.h:322
OGRGeometry * GetGeomFieldRef(int iField)
Fetch pointer to feature geometry.
Definition: ogrfeature.cpp:666
OGRErr importFromEPSGA(int)
Initialize SRS based on EPSG GCS or PCS code.
Definition: ogr_fromepsg.cpp:2202
@ wkbMultiLineString
Definition: ogr_core.h:328
const char * CPLGetHomeDir(void)
Definition: cpl_path.cpp:1166
OGRErr OSRSetStatePlaneWithUnits(OGRSpatialReferenceH hSRS, int nZone, int bNAD83, const char *pszOverrideUnitName, double dfOverrideUnit)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:2519
OGRErr SetTM(double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Definition: ogrspatialreference.cpp:4039
virtual int TestCapability(const char *)=0
Test if this layer supported the named capability.
OGRErr exportToWkt(char **) const
Convert this SRS into WKT format.
Definition: ogrspatialreference.cpp:728
void CPLQuietErrorHandler(CPLErr, CPLErrorNum, const char *)
Definition: cpl_error.cpp:948
OGRErr AutoIdentifyEPSG()
Set EPSG authority info if possible.
Definition: ogr_fromepsg.cpp:2642
#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
OGRErr SetLocalCS(const char *)
Set the user visible LOCAL_CS name.
Definition: ogrspatialreference.cpp:3252
OGRFieldSubType GetSubType() const
Fetch subtype of this field.
Definition: ogr_feature.h:119
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
OGRErr OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone, int bNAD83)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:2500
int IsGeographic() const
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:6542
#define CPLFree
Definition: cpl_conv.h:81
@ wkbUnknown
Definition: ogr_core.h:319
OGRErr CPL_STDCALL OSRImportFromEPSG(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG GCS or PCS code.
Definition: ogr_fromepsg.cpp:2168
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
const char * GetNativeData() const
Returns the native data for the feature.
Definition: ogr_feature.h:744
void * CPLHashSetLookup(CPLHashSet *set, const void *elt)
Definition: cpl_hash_set.cpp:405
GIntBig GetFID() const
Get feature identifier.
Definition: ogr_feature.h:711
int VSIFPrintfL(VSILFILE *, const char *,...) EXPERIMENTAL_CPL_WARN_UNUSED_RESULT
Formatted write to file.
Definition: cpl_vsil.cpp:1374
const char * CPLGetConfigOption(const char *, const char *)
Definition: cpl_conv.cpp:1690
FILE VSILFILE
Definition: cpl_vsi.h:155
OGRGeometryH OGR_G_ForceToPolygon(OGRGeometryH) CPL_WARN_UNUSED_RESULT
Convert to polygon.
Definition: ogrgeometryfactory.cpp:792
static OGRGeometryH ToHandle(OGRGeometry *poGeom)
Definition: ogr_geometry.h:510
void StripNodes(const char *)
Definition: ogr_srsnode.cpp:891
#define CPLE_AppDefined
Definition: cpl_error.h:99
#define SRS_UL_US_FOOT
Definition: ogr_srs_api.h:342
OGRErr SetFromUserInput(const char *)
Set spatial reference from various text formats.
Definition: ogrspatialreference.cpp:2205
Generated for GDAL by
1.8.17.