31 #ifndef OGR_FEATURE_H_INCLUDED
32 #define OGR_FEATURE_H_INCLUDED
34 #include "cpl_atomic_ops.h"
49 #ifndef DEFINE_OGRFeatureH
51 #define DEFINE_OGRFeatureH
102 char *pszAlternativeName;
115 std::string m_osDomainName{};
122 void SetName(
const char * );
125 void SetAlternativeName(
const char * );
138 { eJustify = eJustifyIn; }
145 { nPrecision = nPrecisionIn; }
150 void SetDefault(
const char* );
151 const char *GetDefault()
const;
152 int IsDefaultDriverSpecific()
const;
161 void SetUnique(
int bUniqueIn ) { bUnique = bUniqueIn; }
164 void SetDomainName(
const std::string& osDomainName) { m_osDomainName = osDomainName; }
205 char *pszName =
nullptr;
210 mutable int bNullable =
true;
221 void SetName(
const char * );
235 { bNullable = bNullableIn; }
282 volatile int nRefCount;
284 mutable int nFieldCount;
287 mutable int nGeomFieldCount;
290 char *pszFeatureClassName;
299 void SetName(
const char* pszName );
300 virtual const char *GetName()
const;
302 virtual int GetFieldCount()
const;
304 virtual const OGRFieldDefn *GetFieldDefn(
int i )
const;
305 virtual int GetFieldIndex(
const char * )
const;
306 int GetFieldIndexCaseSensitive(
const char * )
const;
309 virtual OGRErr DeleteFieldDefn(
int iField );
310 virtual OGRErr ReorderFieldDefns(
int* panMap );
312 virtual int GetGeomFieldCount()
const;
315 virtual int GetGeomFieldIndex(
const char * )
const;
319 virtual OGRErr DeleteGeomFieldDefn(
int iGeomField );
331 virtual int IsGeometryIgnored()
const;
332 virtual void SetGeometryIgnored(
int bIgnore );
335 { bIgnoreStyle = bIgnore; }
337 virtual int IsSame(
const OGRFeatureDefn * poOtherFeatureDefn )
const;
340 void ReserveSpaceForFields(
int nFieldCountIn);
343 std::vector<int> ComputeMapForSetFrom(
const OGRFeatureDefn* poSrcFDefn,
344 bool bForgiving =
true )
const;
346 static OGRFeatureDefn *CreateFeatureDefn(
const char *pszName =
nullptr );
381 char *m_pszNativeData;
382 char *m_pszNativeMediaType;
384 bool SetFieldInternal(
int i,
OGRField * puValue );
388 mutable char *m_pszStyleString;
390 mutable char *m_pszTmpFieldValue;
404 std::unique_ptr<Private> m_poPrivate;
426 FieldValue& operator= (
const std::string& osVal);
428 FieldValue& operator= (
const std::vector<int>& oArray);
430 FieldValue& operator= (
const std::vector<GIntBig>& oArray);
432 FieldValue& operator= (
const std::vector<double>& oArray);
434 FieldValue& operator= (
const std::vector<std::string>& oArray);
444 void SetDateTime(
int nYear,
int nMonth,
int nDay,
445 int nHour=0,
int nMinute=0,
float fSecond=0.f,
449 int GetIndex()
const;
453 const char*
GetName()
const {
return GetDefn()->GetNameRef(); }
461 bool empty()
const {
return IsUnset(); }
465 bool IsUnset()
const;
472 const OGRField *GetRawValue()
const;
490 double GetDouble()
const {
return GetRawValue()->Real; }
496 const char*
GetString()
const {
return GetRawValue()->String; }
499 bool GetDateTime(
int *pnYear,
int *pnMonth,
501 int *pnHour,
int *pnMinute,
503 int *pnTZFlag )
const;
506 operator int ()
const {
return GetAsInteger(); }
508 operator GIntBig()
const {
return GetAsInteger64(); }
510 operator double ()
const {
return GetAsDouble(); }
512 operator const char*()
const {
return GetAsString(); }
514 operator const std::vector<int>& ()
const {
return GetAsIntegerList(); }
516 operator const std::vector<GIntBig>& ()
const {
return GetAsInteger64List(); }
518 operator const std::vector<double>& ()
const {
return GetAsDoubleList(); }
520 operator const std::vector<std::string>& ()
const {
return GetAsStringList(); }
525 int GetAsInteger()
const;
527 GIntBig GetAsInteger64()
const;
529 double GetAsDouble()
const;
531 const char* GetAsString()
const;
533 const std::vector<int>& GetAsIntegerList()
const;
535 const std::vector<GIntBig>& GetAsInteger64List()
const;
537 const std::vector<double>& GetAsDoubleList()
const;
539 const std::vector<std::string>& GetAsStringList()
const;
547 std::unique_ptr<Private> m_poPrivate;
581 const FieldValue operator[](
int iField)
const;
587 const FieldValue operator[](
const char* pszFieldName)
const;
588 FieldValue operator[](
const char* pszFieldName);
599 int GetGeomFieldCount()
const
609 const OGRGeometry* GetGeomFieldRef(
int iField )
const;
611 OGRGeometry* GetGeomFieldRef(
const char* pszFName );
612 const OGRGeometry* GetGeomFieldRef(
const char* pszFName )
const;
619 int GetFieldCount()
const
628 int IsFieldSet(
int iField )
const;
630 void UnsetField(
int iField );
632 bool IsFieldNull(
int iField )
const;
634 void SetFieldNull(
int iField );
636 bool IsFieldSetAndNotNull(
int iField )
const;
641 int GetFieldAsInteger(
int i )
const;
642 GIntBig GetFieldAsInteger64(
int i )
const;
643 double GetFieldAsDouble(
int i )
const;
644 const char *GetFieldAsString(
int i )
const;
645 const int *GetFieldAsIntegerList(
int i,
int *pnCount )
const;
646 const GIntBig *GetFieldAsInteger64List(
int i,
int *pnCount )
const;
647 const double *GetFieldAsDoubleList(
int i,
int *pnCount )
const;
648 char **GetFieldAsStringList(
int i )
const;
649 GByte *GetFieldAsBinary(
int i,
int *pnCount )
const;
650 int GetFieldAsDateTime(
int i,
651 int *pnYear,
int *pnMonth,
653 int *pnHour,
int *pnMinute,
655 int *pnTZFlag )
const;
656 int GetFieldAsDateTime(
int i,
657 int *pnYear,
int *pnMonth,
659 int *pnHour,
int *pnMinute,
661 int *pnTZFlag )
const;
662 char *GetFieldAsSerializedJSon(
int i )
const;
665 {
return GetFieldAsInteger( GetFieldIndex(pszFName) ); }
667 {
return GetFieldAsInteger64( GetFieldIndex(pszFName) ); }
669 {
return GetFieldAsDouble( GetFieldIndex(pszFName) ); }
671 {
return GetFieldAsString( GetFieldIndex(pszFName) ); }
674 {
return GetFieldAsIntegerList( GetFieldIndex(pszFName),
678 {
return GetFieldAsInteger64List( GetFieldIndex(pszFName),
682 {
return GetFieldAsDoubleList( GetFieldIndex(pszFName),
685 {
return GetFieldAsStringList(GetFieldIndex(pszFName)); }
687 void SetField(
int i,
int nValue );
688 void SetField(
int i,
GIntBig nValue );
689 void SetField(
int i,
double dfValue );
690 void SetField(
int i,
const char * pszValue );
691 void SetField(
int i,
int nCount,
const int * panValues );
692 void SetField(
int i,
int nCount,
694 void SetField(
int i,
int nCount,
const double * padfValues );
695 void SetField(
int i,
const char *
const * papszValues );
696 void SetField(
int i,
OGRField * puValue );
697 void SetField(
int i,
int nCount,
const void * pabyBinary );
698 void SetField(
int i,
int nYear,
int nMonth,
int nDay,
699 int nHour=0,
int nMinute=0,
float fSecond=0.f,
703 { SetField( GetFieldIndex(pszFName), nValue ); }
705 { SetField( GetFieldIndex(pszFName), nValue ); }
706 void SetField(
const char *pszFName,
double dfValue )
707 { SetField( GetFieldIndex(pszFName), dfValue ); }
708 void SetField(
const char *pszFName,
const char * pszValue )
709 { SetField( GetFieldIndex(pszFName), pszValue ); }
711 const int * panValues )
712 { SetField(GetFieldIndex(pszFName),nCount,panValues); }
715 { SetField(GetFieldIndex(pszFName),nCount,panValues); }
717 const double * padfValues )
718 {SetField(GetFieldIndex(pszFName),nCount,padfValues); }
719 void SetField(
const char *pszFName,
const char *
const * papszValues )
720 { SetField( GetFieldIndex(pszFName), papszValues); }
722 { SetField( GetFieldIndex(pszFName), puValue ); }
724 int nYear,
int nMonth,
int nDay,
725 int nHour=0,
int nMinute=0,
float fSecond=0.f,
727 { SetField( GetFieldIndex(pszFName),
729 nHour, nMinute, fSecond, nTZFlag ); }
734 void DumpReadable( FILE *,
char** papszOptions =
nullptr )
const;
742 const int *panRemapSource );
745 const int *panRemapSource );
748 int Validate(
int nValidateFlags,
749 int bEmitError )
const;
750 void FillUnsetWithDefault(
int bNotNullableOnly,
751 char** papszOptions );
753 virtual const char *GetStyleString()
const;
754 virtual void SetStyleString(
const char * );
755 virtual void SetStyleStringDirectly(
char * );
762 virtual void SetStyleTableDirectly(
OGRStyleTable *poStyleTable );
766 {
return m_pszNativeMediaType; }
767 void SetNativeData(
const char* pszNativeData );
768 void SetNativeMediaType(
const char* pszNativeMediaType );
777 {
return reinterpret_cast<OGRFeatureH>(poFeature); }
783 {
return reinterpret_cast<OGRFeature*
>(hFeature); }
790 struct CPL_DLL OGRFeatureUniquePtrDeleter
842 std::string m_osName;
843 std::string m_osDescription;
851 const std::string& osDescription,
874 const std::string&
GetName()
const {
return m_osName; }
943 std::vector<OGRCodedValue> m_asValues{};
964 const std::string& osDescription,
967 std::vector<OGRCodedValue>&& asValues);
988 bool m_bMinIsInclusive;
989 bool m_bMaxIsInclusive;
1020 const std::string& osDescription,
1024 bool bMinIsInclusive,
1026 bool bMaxIsInclusive);
1030 m_eFieldType, m_eFieldSubType,
1031 m_sMin, m_bMinIsInclusive,
1032 m_sMax, m_bMaxIsInclusive);
1047 bIsInclusiveOut = m_bMinIsInclusive;
1063 bIsInclusiveOut = m_bMaxIsInclusive;
1075 std::string m_osGlob;
1092 const std::string& osDescription,
1095 const std::string& osBlob);
1099 m_eFieldType, m_eFieldSubType,
1107 const std::string&
GetGlob()
const {
return m_osGlob; }
1116 class swq_expr_node;
1117 class swq_custom_func_registrar;
1119 class CPL_DLL OGRFeatureQuery
1125 char **FieldCollector(
void *,
char ** );
1130 int CanUseIndex( swq_expr_node*,
OGRLayer * );
1134 swq_custom_func_registrar* poCustomFuncRegistrar );
1144 swq_custom_func_registrar*
1145 poCustomFuncRegistrar =
nullptr );
1148 swq_custom_func_registrar*
1149 poCustomFuncRegistrar =
nullptr );
1156 char **GetUsedFields();
1158 void *GetSWQExpr() {
return pSWQExpr; }
Definition of a coded / enumerated field domain.
Definition: ogr_feature.h:941
const OGRCodedValue * GetEnumeration() const
Get the enumeration as (code, value) pairs.
Definition: ogr_feature.h:978
Definition of a feature class or feature layer.
Definition: ogr_feature.h:279
virtual void SetStyleIgnored(int bIgnore)
Set whether the style can be omitted when fetching features.
Definition: ogr_feature.h:334
int Reference()
Increments the reference count by one.
Definition: ogr_feature.h:326
virtual int GetFieldCount() const
Fetch number of fields on this feature.
Definition: ogrfeaturedefn.cpp:286
virtual OGRFieldDefn * GetFieldDefn(int i)
Fetch field definition.
Definition: ogrfeaturedefn.cpp:330
static OGRFeatureDefn * FromHandle(OGRFeatureDefnH hFeatureDefn)
Convert a OGRFeatureDefnH to a OGRFeatureDefn*.
Definition: ogr_feature.h:358
virtual int IsStyleIgnored() const
Determine whether the style can be omitted when fetching features.
Definition: ogr_feature.h:333
int Dereference()
Decrements the reference count by one.
Definition: ogr_feature.h:327
static OGRFeatureDefnH ToHandle(OGRFeatureDefn *poFeatureDefn)
Convert a OGRFeatureDefn* to a OGRFeatureDefnH.
Definition: ogr_feature.h:352
virtual OGRGeomFieldDefn * GetGeomFieldDefn(int i)
Fetch geometry field definition.
Definition: ogrfeaturedefn.cpp:681
virtual int GetGeomFieldCount() const
Fetch number of geometry fields on this feature.
Definition: ogrfeaturedefn.cpp:632
virtual int GetFieldIndex(const char *) const
Find field by name.
Definition: ogrfeaturedefn.cpp:1218
int GetReferenceCount() const
Fetch current reference count.
Definition: ogr_feature.h:328
virtual int GetGeomFieldIndex(const char *) const
Find geometry field by name.
Definition: ogrfeaturedefn.cpp:916
Field value iterator class.
Definition: ogr_feature.h:544
Exception raised by operator[](const char*) when a field is not found.
Definition: ogr_feature.h:585
Field value.
Definition: ogr_feature.h:401
bool empty() const
Return whether the field value is unset/empty.
Definition: ogr_feature.h:461
int GetInteger() const
Return the integer value.
Definition: ogr_feature.h:478
OGRFieldType GetType() const
Return field type.
Definition: ogr_feature.h:455
void Unset()
Unset the field.
Definition: ogr_feature.h:442
const char * GetString() const
Return the string value.
Definition: ogr_feature.h:496
double GetDouble() const
Return the double value.
Definition: ogr_feature.h:490
const char * GetName() const
Return field name.
Definition: ogr_feature.h:453
GIntBig GetInteger64() const
Return the 64-bit integer value.
Definition: ogr_feature.h:484
OGRFieldSubType GetSubType() const
Return field subtype.
Definition: ogr_feature.h:457
A simple feature, including geometry and attributes.
Definition: ogr_feature.h:374
OGRFeatureDefn * GetDefnRef()
Fetch feature definition.
Definition: ogr_feature.h:590
static OGRFeatureH ToHandle(OGRFeature *poFeature)
Convert a OGRFeature* to a OGRFeatureH.
Definition: ogr_feature.h:776
char ** GetFieldAsStringList(const char *pszFName) const
Fetch field value as a list of strings.
Definition: ogr_feature.h:684
virtual OGRStyleTable * GetStyleTable() const
Return style table.
Definition: ogr_feature.h:760
ConstFieldIterator end() const
Return end of field value iterator.
Definition: ogrfeature.cpp:7077
ConstFieldIterator begin() const
Return begin of field value iterator.
Definition: ogrfeature.cpp:7072
void SetField(const char *pszFName, int nCount, const GIntBig *panValues)
Set field to list of 64 bit integers value.
Definition: ogr_feature.h:713
const OGRFeatureDefn * GetDefnRef() const
Fetch feature definition.
Definition: ogr_feature.h:591
OGRFieldDefn * GetFieldDefnRef(int iField)
Fetch definition for this field.
Definition: ogr_feature.h:623
const double * GetFieldAsDoubleList(const char *pszFName, int *pnCount) const
Fetch field value as a list of doubles.
Definition: ogr_feature.h:680
void SetField(const char *pszFName, int nCount, const int *panValues)
Set field to list of integers value.
Definition: ogr_feature.h:710
void SetField(const char *pszFName, GIntBig nValue)
Set field to 64 bit integer value.
Definition: ogr_feature.h:704
void SetField(const char *pszFName, const char *pszValue)
Set field to string value.
Definition: ogr_feature.h:708
void SetField(const char *pszFName, int nValue)
Set field to integer value.
Definition: ogr_feature.h:702
const OGRFieldDefn * GetFieldDefnRef(int iField) const
Fetch definition for this field.
Definition: ogr_feature.h:621
void SetField(const char *pszFName, int nYear, int nMonth, int nDay, int nHour=0, int nMinute=0, float fSecond=0.f, int nTZFlag=0)
Set field to date.
Definition: ogr_feature.h:723
const OGRGeomFieldDefn * GetGeomFieldDefnRef(int iField) const
Fetch definition for this geometry field.
Definition: ogr_feature.h:603
const char * GetNativeData() const
Returns the native data for the feature.
Definition: ogr_feature.h:764
int GetFieldIndex(const char *pszName) const
Fetch the field index given field name.
Definition: ogr_feature.h:625
static OGRFeature * FromHandle(OGRFeatureH hFeature)
Convert a OGRFeatureH to a OGRFeature*.
Definition: ogr_feature.h:782
int GetGeomFieldIndex(const char *pszName) const
Fetch the geometry field index given geometry field name.
Definition: ogr_feature.h:605
OGRGeomFieldDefn * GetGeomFieldDefnRef(int iField)
Fetch definition for this geometry field.
Definition: ogr_feature.h:601
void SetField(const char *pszFName, OGRField *puValue)
Set field.
Definition: ogr_feature.h:721
GIntBig GetFieldAsInteger64(const char *pszFName) const
Fetch field value as integer 64 bit.
Definition: ogr_feature.h:666
const int * GetFieldAsIntegerList(const char *pszFName, int *pnCount) const
Fetch field value as a list of integers.
Definition: ogr_feature.h:672
void SetField(const char *pszFName, double dfValue)
Set field to double value.
Definition: ogr_feature.h:706
const char * GetFieldAsString(const char *pszFName) const
Fetch field value as a string.
Definition: ogr_feature.h:670
void SetField(const char *pszFName, const char *const *papszValues)
Set field to list of strings value.
Definition: ogr_feature.h:719
const OGRField * GetRawFieldRef(int i) const
Fetch a pointer to the internal field value given the index.
Definition: ogr_feature.h:639
int GetFieldAsInteger(const char *pszFName) const
Fetch field value as integer.
Definition: ogr_feature.h:664
const char * GetNativeMediaType() const
Returns the native media type for the feature.
Definition: ogr_feature.h:765
GIntBig GetFID() const
Get feature identifier.
Definition: ogr_feature.h:731
OGRField * GetRawFieldRef(int i)
Fetch a pointer to the internal field value given the index.
Definition: ogr_feature.h:638
void SetField(const char *pszFName, int nCount, const double *padfValues)
Set field to list of doubles value.
Definition: ogr_feature.h:716
double GetFieldAsDouble(const char *pszFName) const
Fetch field value as a double.
Definition: ogr_feature.h:668
const GIntBig * GetFieldAsInteger64List(const char *pszFName, int *pnCount) const
Fetch field value as a list of 64 bit integers.
Definition: ogr_feature.h:676
Definition of an attribute of an OGRFeatureDefn.
Definition: ogr_feature.h:99
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:123
int IsNullable() const
Return whether this field can receive null values.
Definition: ogr_feature.h:157
static OGRFieldDefn * FromHandle(OGRFieldDefnH hFieldDefn)
Convert a OGRFieldDefnH to a OGRFieldDefn*.
Definition: ogr_feature.h:177
int IsUnique() const
Return whether this field has a unique constraint.
Definition: ogr_feature.h:160
void SetUnique(int bUniqueIn)
Set whether this field has a unique constraint.
Definition: ogr_feature.h:161
OGRFieldSubType GetSubType() const
Fetch subtype of this field.
Definition: ogr_feature.h:132
OGRJustification GetJustify() const
Get the justification for this field.
Definition: ogr_feature.h:136
void SetIgnored(int bIgnoreIn)
Set whether this field should be omitted when fetching features.
Definition: ogr_feature.h:155
void SetDomainName(const std::string &osDomainName)
Set the name of the field domain for this field.
Definition: ogr_feature.h:164
int GetPrecision() const
Get the formatting precision for this field.
Definition: ogr_feature.h:143
OGRFieldType GetType() const
Fetch type of this field.
Definition: ogr_feature.h:128
void SetWidth(int nWidthIn)
Set the formatting width for this field in characters.
Definition: ogr_feature.h:141
int GetWidth() const
Get the formatting width for this field.
Definition: ogr_feature.h:140
void SetPrecision(int nPrecisionIn)
Set the formatting precision for this field in characters.
Definition: ogr_feature.h:144
void SetNullable(int bNullableIn)
Set whether this field can receive null values.
Definition: ogr_feature.h:158
void SetJustify(OGRJustification eJustifyIn)
Set the justification for this field.
Definition: ogr_feature.h:137
const char * GetAlternativeNameRef() const
Fetch the alternative name (or "alias") for this field.
Definition: ogr_feature.h:126
static OGRFieldDefnH ToHandle(OGRFieldDefn *poFieldDefn)
Convert a OGRFieldDefn* to a OGRFieldDefnH.
Definition: ogr_feature.h:171
const std::string & GetDomainName() const
Return the name of the field domain for this field.
Definition: ogr_feature.h:163
int IsIgnored() const
Return whether this field should be omitted when fetching features.
Definition: ogr_feature.h:154
Definition of a field domain.
Definition: ogr_feature.h:839
OGRFieldDomainMergePolicy GetMergePolicy() const
Get the merge policy.
Definition: ogr_feature.h:925
void SetMergePolicy(OGRFieldDomainMergePolicy policy)
Set the merge policy.
Definition: ogr_feature.h:931
static OGRFieldDomain * FromHandle(OGRFieldDomainH hFieldDomain)
Convert a OGRFieldDomainH to a OGRFieldDomain*.
Definition: ogr_feature.h:906
OGRFieldSubType GetFieldSubType() const
Get the field subtype.
Definition: ogr_feature.h:899
virtual ~OGRFieldDomain()=0
Destructor.
virtual OGRFieldDomain * Clone() const =0
Clone.
OGRFieldDomainSplitPolicy GetSplitPolicy() const
Get the split policy.
Definition: ogr_feature.h:913
static OGRFieldDomainH ToHandle(OGRFieldDomain *poFieldDomain)
Convert a OGRFieldDomain* to a OGRFieldDomainH.
Definition: ogr_feature.h:902
const std::string & GetDescription() const
Get the description of the field domain.
Definition: ogr_feature.h:881
OGRFieldType GetFieldType() const
Get the field type.
Definition: ogr_feature.h:893
OGRFieldDomainType GetDomainType() const
Get the type of the field domain.
Definition: ogr_feature.h:887
const std::string & GetName() const
Get the name of the field domain.
Definition: ogr_feature.h:874
void SetSplitPolicy(OGRFieldDomainSplitPolicy policy)
Set the split policy.
Definition: ogr_feature.h:919
Definition of a geometry field of an OGRFeatureDefn.
Definition: ogr_feature.h:202
void SetIgnored(int bIgnoreIn)
Set whether this field should be omitted when fetching features.
Definition: ogr_feature.h:231
int IsNullable() const
Return whether this geometry field can receive null values.
Definition: ogr_feature.h:233
static OGRGeomFieldDefn * FromHandle(OGRGeomFieldDefnH hGeomFieldDefn)
Convert a OGRGeomFieldDefnH to a OGRGeomFieldDefn*.
Definition: ogr_feature.h:248
void SetNullable(int bNullableIn)
Set whether this geometry field can receive null values.
Definition: ogr_feature.h:234
OGRwkbGeometryType GetType() const
Fetch geometry type of this field.
Definition: ogr_feature.h:224
int IsIgnored() const
Return whether this field should be omitted when fetching features.
Definition: ogr_feature.h:230
static OGRGeomFieldDefnH ToHandle(OGRGeomFieldDefn *poGeomFieldDefn)
Convert a OGRGeomFieldDefn* to a OGRGeomFieldDefnH.
Definition: ogr_feature.h:242
const char * GetNameRef() const
Fetch name of this field.
Definition: ogr_feature.h:222
Abstract base class for all geometry classes.
Definition: ogr_geometry.h:327
Definition of a field domain for field content validated by a glob.
Definition: ogr_feature.h:1073
OGRGlobFieldDomain * Clone() const override
Clone.
Definition: ogr_feature.h:1097
const std::string & GetGlob() const
Get the glob expression.
Definition: ogr_feature.h:1107
This class represents a layer of simple features, with access methods.
Definition: ogrsf_frmts.h:71
Definition of a numeric field domain with a range of validity for values.
Definition: ogr_feature.h:984
OGRRangeFieldDomain * Clone() const override
Clone.
Definition: ogr_feature.h:1028
const OGRField & GetMin(bool &bIsInclusiveOut) const
Get the minimum value.
Definition: ogr_feature.h:1046
const OGRField & GetMax(bool &bIsInclusiveOut) const
Get the maximum value.
Definition: ogr_feature.h:1062
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:158
This class represents a style table.
Definition: ogr_featurestyle.h:85
#define CPL_DISALLOW_COPY_ASSIGN(ClassName)
Helper to remove the copy and assignment constructors so that the compiler will not generate the defa...
Definition: cpl_port.h:1007
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition: cpl_port.h:1216
#define CPL_WARN_UNUSED_RESULT
Qualifier to warn when the return value of a function is not used.
Definition: cpl_port.h:946
unsigned char GByte
Unsigned byte type.
Definition: cpl_port.h:215
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:248
#define MAX(a, b)
Macro to compute the maximum of 2 values.
Definition: cpl_port.h:414
void * OGRFieldDefnH
Opaque type for a field definition (OGRFieldDefn)
Definition: ogr_api.h:328
void * OGRFeatureDefnH
Opaque type for a feature definition (OGRFeatureDefn)
Definition: ogr_api.h:330
void * OGRFeatureH
Opaque type for a feature (OGRFeature)
Definition: ogr_api.h:332
struct OGRFieldDomainHS * OGRFieldDomainH
Opaque type for a field domain definition (OGRFieldDomain)
Definition: ogr_api.h:340
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Opaque type for a geometry field definition (OGRGeomFieldDefn)
Definition: ogr_api.h:337
int OGRBoolean
Type for a OGR boolean.
Definition: ogr_core.h:334
OGRFieldSubType
List of field subtypes.
Definition: ogr_core.h:674
OGRFieldDomainMergePolicy
Merge policy for field domains.
Definition: ogr_core.h:1027
@ OFDMP_DEFAULT_VALUE
Default value.
Definition: ogr_core.h:1029
OGRFieldDomainType
Type of field domain.
Definition: ogr_core.h:993
OGRJustification
Display justification for field values.
Definition: ogr_core.h:698
OGRFieldType
List of feature field types.
Definition: ogr_core.h:646
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:346
@ wkbUnknown
unknown type, non-standard
Definition: ogr_core.h:347
int OGRErr
Type for a OGR error.
Definition: ogr_core.h:318
OGRFieldDomainSplitPolicy
Split policy for field domains.
Definition: ogr_core.h:1010
@ OFDSP_DEFAULT_VALUE
Default value.
Definition: ogr_core.h:1012
std::unique_ptr< OGRFeature, OGRFeatureUniquePtrDeleter > OGRFeatureUniquePtr
Unique pointer type for OGRFeature.
Definition: ogr_feature.h:799
void * OGRFieldDefnH
Opaque type for a field definition (OGRFieldDefn)
Definition: ogr_feature.h:60
void * OGRFeatureDefnH
Opaque type for a feature definition (OGRFeatureDefn)
Definition: ogr_feature.h:62
void * OGRFeatureH
Opaque type for a feature (OGRFeature)
Definition: ogr_feature.h:64
struct OGRFieldDomainHS * OGRFieldDomainH
Opaque type for a field domain definition (OGRFieldDomain)
Definition: ogr_feature.h:72
struct OGRGeomFieldDefnHS * OGRGeomFieldDefnH
Opaque type for a geometry field definition (OGRGeomFieldDefn)
Definition: ogr_feature.h:69
void * OGRStyleTableH
Opaque type for a style table (OGRStyleTable)
Definition: ogr_feature.h:66
Simple feature style classes.
Simple feature geometry classes.
OGRLayer::FeatureIterator begin(OGRLayer *poLayer)
Return begin of feature iterator.
Definition: ogrsf_frmts.h:287
OGRLayer::FeatureIterator end(OGRLayer *poLayer)
Return end of feature iterator.
Definition: ogrsf_frmts.h:292
Associates a code and a value.
Definition: ogr_core.h:980
OGRFeature field attribute value union.
Definition: ogr_core.h:738