Re: [OSM-talk] georeferencing OSM
2011/3/7 Łukasz Stelmach stl...@poczta.fm: Hello. 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? you have to provide an additional text file with the parameters for your tif (tfw, world file). The file is described e.g. in Wikipedia: http://en.wikipedia.org/wiki/World_file cheers, Martin ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] georeferencing OSM
M∡rtin Koppenhoefer dieterdre...@gmail.com writes: 2011/3/7 Łukasz Stelmach stl...@poczta.fm: 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? you have to provide an additional text file with the parameters for your tif (tfw, world file). The file is described e.g. in Wikipedia: http://en.wikipedia.org/wiki/World_file Are you sure. There is a paramtere named pixel height which is assumed to be constant along the image. In Mercator projection this isn't true pixels in the north represent less degrees than those in the south. -- 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
Re: [OSM-talk] georeferencing OSM
Łukasz Stelmach stlman at poczta.fm writes: Hello. 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. As a result you will have on a disk a geotiff file which is simple to re-project further into EPSG:2180 with gdalwarp. -Jukka Rahkonen- ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] georeferencing OSM
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 1 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
Re: [OSM-talk] georeferencing OSM
Łukasz Stelmach writes: Hello. 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]. There is no such thing as a crappy projection. Every projection is a compromise, and every projection has its purpose and its ill-use. It may be a poor projection for OSM. I don't know. -- --my blog is athttp://blog.russnelson.com Crynwr supports open source software 521 Pleasant Valley Rd. | +1 315-600-8815 Potsdam, NY 13676-3213 | Sheepdog ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk