[OSM-talk] osmarender bounding box cropping
Thom Shannon
thom at glow-internet.com
Tue Oct 30 15:52:27 GMT 2007
When you download your osm data based on a bounding box you get the
whole of any ways with nodes in that box, which is of course quite
sensible. But when you render your SVG, the map you were hoping up ends
up down in the corner somewhere because of a big bit of coast or
motorway sticking out.
I'm thinking if I go through the nodes in the osm data and find the
extreme outer points in all four directions, then work backwards I can
figure out the coordinates in the SVG document where my original
bounding box would be. The only problem is I'm not sure what kind
projection osmarender uses to convert the lat/lon coords to a grid.
Any ideas on the best way to do this?
More information about the talk
mailing list