NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi

I have imported whole europe into database. When I select a bounding box that covers whole norway, and start pre-rendering the tiles, I see that last tile(s) vertically within the bounding box only get the map renderd in it's upper part.

It looks like this:

alt text

I would like to be able to render map on the whole tile - the data for the map is in the database. If no map data in the database, then this partly rendered tile would be okay though.

This has probably to do with my values for bbox in generate_tiles.py (and extent in the xml file), which currently is like this:

in generate_tiles.py: bbox = (3.98,57.69,32.23,71.46)

in xml file: <parameter name="extent">443052,7902476,3587827,11561422</parameter>

So, is it possible to make sure values used for bbox and extent are such that I allways get renderd complete tiles? If so, how do I do this? If not possible to control using bbox and extent, is there any other way to handle this in Mapnik (2.2)?

Or perhaps there is a way to tell Mapnik to render complete tiles, as long as there is data available i database to do so?

asked 09 Aug '18, 15:15

MapViking's gravatar image

MapViking
56347
accept rate: 0%

edited 17 Aug '18, 11:10

If someone know if there is a solution to the above question, please tell me.

(16 Aug '18, 22:58) MapViking

I guess you will have to indicate the boundaries of your extent and bbox aligned with the tile boundaries (i.e. add some buffer to fill up the tile).

Update: try to be generous with the extent and add some buffer. IIRR, mapnik will render any tile that is even just partly within your bounding box (i.e. it will render usually slightly more than what you ask for), but might clip the content to the extent you provide.

permanent link

answered 22 Aug '18, 22:33

dieterdreist's gravatar image

dieterdreist
3.7k113567
accept rate: 3%

edited 22 Aug '18, 22:44

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×341
×287
×33

question asked: 09 Aug '18, 15:15

question was seen: 2,323 times

last updated: 22 Aug '18, 22:44

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum