class documentation

class Field(GDALBase):

Known subclasses: django.contrib.gis.gdal.field.OFTBinary, django.contrib.gis.gdal.field.OFTDate, django.contrib.gis.gdal.field.OFTDateTime, django.contrib.gis.gdal.field.OFTInteger, django.contrib.gis.gdal.field.OFTInteger64List, django.contrib.gis.gdal.field.OFTIntegerList, django.contrib.gis.gdal.field.OFTReal, django.contrib.gis.gdal.field.OFTRealList, django.contrib.gis.gdal.field.OFTString, django.contrib.gis.gdal.field.OFTStringList, django.contrib.gis.gdal.field.OFTTime, django.contrib.gis.gdal.field.OFTWideString, django.contrib.gis.gdal.field.OFTWideStringList

View In Hierarchy

Wrap an OGR Field. Needs to be instantiated from a Feature object.
Method __init__ Initialize on the feature object and the integer index of the field within the feature.
Method __str__ Return the string representation of the Field.
Method as​_datetime Retrieve the Field's value as a tuple of date & time components.
Method as​_double Retrieve the Field's value as a double (float).
Method as​_int Retrieve the Field's value as an integer.
Method as​_string Retrieve the Field's value as a string.
Instance Variable __class__ Undocumented
Instance Variable ​_feat Undocumented
Instance Variable ​_index Undocumented
Instance Variable ptr Undocumented
Property is​_set Return True if the value of this field isn't null, False otherwise.
Property name Return the name of this Field.
Property precision Return the precision of this Field.
Property type Return the OGR type of this Field.
Property type​_name Return the OGR field type name for this Field.
Property value Return the value of this Field.
Property width Return the width of this Field.

Inherited from CPointerBase (via GDALBase):

Method __del__ Free the memory used by the C++ object.
Method ptr.setter Undocumented
Class Variable destructor Undocumented
Instance Variable ​_ptr Undocumented
def __init__(self, feat, index):
Initialize on the feature object and the integer index of the field within the feature.
def __str__(self):
Return the string representation of the Field.
def as_datetime(self):
Retrieve the Field's value as a tuple of date & time components.
def as_double(self):
Retrieve the Field's value as a double (float).
def as_int(self, is_64=False):
Retrieve the Field's value as an integer.
def as_string(self):
Retrieve the Field's value as a string.
__class__ =

Undocumented

_feat =

Undocumented

_index =

Undocumented

ptr =
@property
is_set =
Return True if the value of this field isn't null, False otherwise.
@property
name =
Return the name of this Field.
@property
precision =
Return the precision of this Field.
@property
type =
Return the OGR type of this Field.
@property
type_name =
Return the OGR field type name for this Field.
@property
width =
Return the width of this Field.