List of all members.
Public Class Methods |
list | Capabilities () |
Geo::OGR::DataSource | Open (scalar name, scalar update=0) |
Geo::OGR::DataSource | OpenShared (scalar name, scalar update=0) |
Public Object Methods |
scalar | TestCapability (scalar cap) |
Geo::OGR::Layer | Layer (scalar layer=0) |
list | Layers () |
scalar | GetLayerCount () |
Geo::OGR::Driver | GetDriver () |
scalar | GetName () |
Geo::OGR::Layer | CreateLayer (scalar Name, scalar SRS=undef, scalar GeometryType= 'Unknown', hashref Options=undef, hashref Schema=undef) |
Geo::OGR::Layer | CopyLayer (scalar layer, scalar name, hashref options=undef) |
| DeleteLayer (scalar layer) |
| DeleteLayer (hash param) |
Geo::OGR::Layer | ExecuteSQL (scalar statement, scalar geom=undef, scalar dialect="") |
| ReleaseResultSet (scalar layer) |
Geo::OGR::Layer | GetLayerByIndex (scalar index=0) |
Geo::OGR::Layer | GetLayerByName (scalar name) |
Public Attributes |
list | CAPABILITIES |
| name |
Member Function Documentation
- Returns:
- a list of capabilities. The class method returns a list of all potential capabilities a data source may have; the object method returns a list of all capabilities the data source has.
- Parameters:
-
layer | A Geo::OGR::Layer object to be copied. |
name | A name for the new layer. |
options | A ref to a hash of format specific options. |
- Returns:
- a new Geo::OGR::Layer object.
- Note:
- This method can also be used with named parameters: $ds->CreateLayer({parameter=>value, ...}).
Example:
- Parameters:
-
Name | name for the new layer. |
SRS | a Geo::OSR::SpatialReference object. |
GeometryType | one of @Geo::OGR::Geometry::GEOMETRY_TYPES |
Options | a ref to a hash of format specific options. |
Schema | forwarded to Layer::Schema, which is called if this parameter exists. Additionally, if $Schema->{GeometryType} exists, it overrides $GeometryType argument and default. |
Fields | the fields for the schema of the layer [can be used only as a named parameter]. |
- Returns:
- a new Geo::OGR::Layer object
Deletes a layer from the data source. Note that if there is a layer object for the deleted layer, it becomes unusable.
- Parameters:
-
layer | name (primary) or index (secondary) of the layer to be deleted, if ambiguous use named parameter syntax (name or index). |
Deletes a layer from the data source. Note that if there are layers objects for the deleted layer, they become unusable.
- Parameters:
-
param | Named parameter (name or index) for the layer to be deleted. |
- Returns:
- the number of layers this data source provides.
- Returns:
- the name of this data source.
- Parameters:
-
layer | a name (primary) or index (secondary) of the requested layer. If not given, then returns the first layer. |
- Returns:
- a new Geo::OGR::Layer object
- Returns:
- a list of layers this data source provides.
An example:
- Parameters:
-
name | The data source name (directory, filename, etc.). |
update | Whether to open the data source in update mode. |
- Returns:
- a new Geo::OGR::DataSource object.
Reimplemented from Geo::OGR.
- Parameters:
-
name | The data source name (directory, filename, etc.). |
update | Whether to open the data source in update mode. |
- Returns:
- a new Geo::OGR::DataSource object.
Reimplemented from Geo::OGR.
- Parameters:
-
layer | A layer the has been created with ExecuteSQL. |
- Parameters:
-
- Returns:
- a boolean value indicating whether the data source has the specified capability.
Member Data Documentation
Data source capabilities known to GDAL
string (access as $datasource->{name})
The documentation for this class was generated from the following file: