Fading Coder

One Final Commit for the Last Sprint

Converting Raster Data to Vector Boundaries with GDAL

from raster_conversion import RasterConverter import os input_file = "path/to/input_raster.tif" output_file = os.path.join(os.path.dirname(input_file), "output_boundary.shp") if __name__ == '__main__': converter = RasterConverter() converter.process(input_file, output_file) Core...

Matching Satellite Imagery to Vector Shapefile Extents in Python

Extract the bounding envelope from an ESRI Shapefile using OGR. The extents represent the minimum and maximum longitudes and latitudes that enclose all features. from osgeo import ogr vector_source = ogr.Open("area_of_interest.shp", 1) feature_layer = vector_source.GetLayer() left, bottom,...