vectors¶
Vectors tools
You can use this only if you have installed sertit[full] or sertit[vectors]
Functions
|
Find the EPSG code of the UTM projection from a lon/lat in WGS84. |
|
Convert the bounds to a shapely.polygon. |
|
Convert a shapely.polygon to its bounds, sorted as left, bottom, right, top. |
|
Get AOI formatted as a WKT from files that can be read by Fiona (like shapefiles, ...) or directly from a WKT file. |
|
Get a GeoDataFrame from a geometry and a crs |
|
Get the wider exterior of a MultiPolygon as a Polygon :param vector (vector: gpd.GeoDataFrame): Polygon to simplify |
|
Read any vector: - if KML: sets correctly the drivers and open layered KML (you may need ogr2ogr to make it work !) - if archive (only zip or tar), use a regex to look for the vector inside the archive. You can use this [site](https://regexr.com/) to build your regex. - if GML: manages the empty errors. |
Set KML driver for Fiona data (use it at your own risks !) |
|
|
Convert rasterio shapes to geodataframe |