Enter the python interpreter
python
import subprocess | |
# Convert GeoJSON to GeoTIFF | |
# ATTRIBUTE_FIELD = ? | |
subprocess.run([ | |
"gdal_rasterize", | |
"-a", "ATTRIBUTE_FIELD", | |
"-ts", "WIDTH", "HEIGHT", | |
"-l", "LAYER_NAME", | |
"i.geojson", | |
"o.tif" | |
], shell=True) | |
# Convert GeoTIFF to GeoPDF | |
subprocess.run([ | |
"gdal_translate", | |
"-of", "PDF", | |
"o.tif", | |
"GeoPDF.pdf" | |
], shell=True) |
import subprocess | |
# Convert GeoTIFF to GeoPDF | |
subprocess.run([ | |
"gdal_translate", | |
"-of", "PDF", | |
"o.tif", | |
"GeoPDF.pdf" | |
], shell=True) |