TransWikia.com

How to fit OSM and GeoTIFF

Geographic Information Systems Asked by lalaland on April 10, 2021

I’d like to overlay a GeoTIFF that is in EPSG:32650, WGS84 on OpenStreetMap (zoom15).
But they don’t match scales because resolution of GeoTIFF is 5m/pixel and OpenStreetMap is 4.773/pixel.
How can I get same size of map with GeoTIFF from OpenStreetMap and overlay to right position?

I know that QGIS can do that but I’d like to operate from Python.
And also, I can’t resample GeoTiFF because of some reasons.

Here is the code to get OSM.

from staticmap import StaticMap

m = StaticMap(200, 200, url_template='http://a.tile.osm.org/{z}/{x}/{y}.png')

image = m.render(zoom=15,center=[22,140])
image.save('marker.png')


Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP