gdal_helpers module¶
HSTB.kluster.gdal_helpers Module¶
Functions¶
|
Take in a CRS in several formats and returns an osr SpatialReference for use with GDAL/OGR |
here we could just do os.path.exists, but we also support vsimem virtual file systems for gdal https://gdal.org/user/virtual_file_systems.html therefore we should just try a gdal open to see if the file path exists |
|
|
Build a gdal product from the provided data using the provided driver. |
|
Return a dictionary of all attribution from the given raster. |
|
Return a list of all band names in the given GDAL supported raster file |
|
Return a dictionary of all attribution from the given vector file. |
|
Return a list of all layer names in the given GDAL supported vector file |
here we could just do os.path.exists, but we also support vsimem virtual file systems for gdal https://gdal.org/user/virtual_file_systems.html therefore we should just try a ogr open to see if the file path exists |
|
|
Convert from the pyproj CRS object to osgeo SpatialReference |
Parse the gdal VersionInfo() output to make it make sense in terms of major.minor.hotfix convention |
Classes¶
|
Convert numpy arrays and metadata to OGR geometry to then generate OGR files. |