Jukka Rahkonen <jukka.rahko...@latuviitta.fi> writes: > Łukasz Stelmach <stlman <at> poczta.fm> writes: > >> This has been discussed[1] some time ago but the answer is somehow >> unclear to me. I understand that EPSG:900913 is (may be?) a crappy >> projection[2]. However, I still need a map of Poland at zoom 6-8 >> warped to EPSG2180. How to use geotifcp (how to prepare metadata) to >> embed appropriate information in an image exported from >> OpenStreetmap? >> >> [1] http://thread.gmane.org/gmane.comp.gis.openstreetmap/19958 >> [2] http://wiki.openstreetmap.org/wiki/Exporting_calibrated_maps > > > I would capture first the image of your area by using native > EPSG:900913 projection with gdal_translate and WMS driver as described > at the bottom of the document http://gdal.org/frmt_wms.html.
That's it. Thank you. For future reference (edit the xml file and set tile level to 7) gdal_translate -of GTiff -outsize 2014 1959 -projwin 1373199.36 7754019.75 3121531.52 6052748.56 frmt_wms_openstreetmap_tms.xml openstreetmap.tif or alternatively gdal_translate -of GTiff -srcwin 17500 10000 1440 1340 frmt_wms_openstreetmap_tms.xml openstreetmap.tif and then gdalwarp -t_srs EPSG:2180 openstreetmap.tif plepsg2180.tif and finally gdal_translate -of GTiff -srcwin 626 101 1367 1368 plepsg2180.tif plepsg2180a.tif to get rid of black borders. This way I get a map between 0 and 2^20 meters in PUWG-1992. -- Było mi bardzo miło. Czwarta pospolita klęska, [...] >Łukasz< Już nie katolicka lecz złodziejska. (c)PP _______________________________________________ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk