Hi, I'm trying to setup Tilestache tile server. To generate the required Mapnik XML, I'm using TileMill (using an OSM Bright project to link to a PostGIS database). The Mapnik XML that is generated by TileMill does work, as the following Python code generates a map PNG... http://bpaste.net/show/NaPdzsG9SrMZ4Yzbvznh/ However, the map is far too large to be practical (covers the whole world, rather than just the UK, which is what I'd like to use). How do I go about setting the boundaries for the map in TileMill? Thank you in advance, Tom asked 26 Jul '13, 13:35 tarclarke |
The map generated by this Python script, or the one generated by TileMill? You select an exported extent in TileMill by shift-dragging a box on the map. answered 26 Jul '13, 13:38 mcw The one generated by TileMill. I tried shift-dragging a box on the map, but the Mapnik XML export made afterwards is the same size as the one made previously. I wish to exclude all non-relevant areas of the map. Is there anything else I can try?
(26 Jul '13, 14:10)
tarclarke
Oh - you mean the Mapnik XML export. Mapnik XML is a formula for styles and data: it cannot be limited in the way you describe. The Mapnik XML does not have a size.
(26 Jul '13, 14:16)
mcw
mcw, perhaps it's easier to explain through using the TileMill examples. If you see the 'Open Streets, DC' project, it's this sort of map limits that I'm looking to create.
(26 Jul '13, 14:53)
tarclarke
|
Can you explain in which way you think that the XML "covers the whole world"? What exactly is "far too large"?
I mean that Tilestache is displaying a map for the whole world, whereas I only want to display a map for the UK.