wradlib.io.gdal.VectorSource¶
- class wradlib.io.gdal.VectorSource(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 or
str
) – sequence of source points (shape Nx2) or polygons (shape NxMx2) or Vector File (GDAL/OGR) filename containing source points/polygonssrs (
osgeo.osr.SpatialReference
) – SRS describing projection source data should be projected to
- Keyword Arguments:
name (
str
) – Layer Name, defaults to “layer”.source (
int
) – Number of layer to load, if multiple layers in source shape file.mode (
str
) – Return type of class access functions/properties. Can be either of “numpy”, “geo” and “ogr”, defaults to “numpy”.projection_source (
osgeo.osr.SpatialReference
) – SRS describing projection source in which data is provided in.
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 /notebooks/fileio/wradlib_vector_source.ipynb.
|
|
|
Output layer to GDAL Rasterfile |
|
Output layer to OGR Vector File |
|
Return attributes |
|
Return properties and attributes |
|
Returns DataSource geometries filtered by given attribute/value |
|
Returns DataSource geometries filtered by given geometry |
|
Returns DataSource geometries from given index |
|
Return geometry properties |
|
Read Layer from OGR Vector File |
|
Add/Set given Attribute with given values |
Returns VectorSource geometries as numpy arrays |
|
Returns VectorSource |
|
Returns VectorSource geometries as GeoPandas Dataframe |
|