span8
span4
span8
span4
I have a set of PNG images downloaded from a service like:
http://tile.openstreetmap.org/{z}/{x}/{y}.png
The images are named:
09_118_180.PNG
09_119_180.PNG
etc.
How can I combine these image in FME and project them correctly?
OSM uses a slippy map.
To go from tile numbers to lat long use the following equations:
n = 2 ^ zoom lon_deg = xtile / n * 360.0 - 180.0 lat_rad = arctan(sinh(π * (1 - 2 * ytile / n))) lat_deg = lat_rad * 180.0 / π
This returns the NW corner of the image. You can use xtile+0.5 and ytile+0.5 to get the center of the tile
Works like a charm, thank you!
I ended up not using the RasterMosaicker as it opened too many files which would require to use the Mosaicker in two steps. Instead I vectorized each raster individually and combined the results at the end, which probably also is faster for my scenario.
Georeferencing a raster on GCP basis 1 Answer
Read a webmap service that contain a raster layer 6 Answers
Tif file without coordinate system. not displaying at correct location. 2 Answers
Writing transparent layers in PDF 5 Answers
Apply max, mean, mode to building footprint using an elevation grid 3 Answers
© 2019 Safe Software Inc | Legal