wradlib.zonalstats.DataSource¶
-
class
wradlib.zonalstats.DataSource(data=None, srs=None, name='layer', source=0, **kwargs)¶ DataSource class for handling ogr/gdal vector data
DataSource handles creates in-memory (vector) ogr DataSource object with one layer for point or polygon geometries.
- Parameters
data (sequence of source points (shape Nx2) or polygons (shape NxMx2) or) – ESRI Shapefile filename containing source points/polygons
srs (object) – ogr.SpatialReferenceSystem SRS describing projection of given data
Warning
Writing shapefiles with the wrong locale settings can have impact on the type of the decimal. If problem arise use LC_NUMERIC=C in your environment.
Examples
See DataSource.
|
Output layer to GDAL Rasterfile |
|
Output layer to OGR Vector File |
|
Read attributes |
|
Read properties and attributes |
|
Returns DataSource geometries filtered by given attribute/value |
|
Returns DataSource geometries filtered by given OGR geometry |
|
Returns DataSource geometries as numpy ndarrays from given index |
|
Read properties |
|
Read Layer from OGR Vector File |
|
Add/Set given Attribute with given values |
Returns DataSource geometries as numpy ndarrays |
|
Returns DataSource |