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

I have mapnik installed and successfully started to render the whole planet. But this is not what i want. I want to render only a country and then use those tiles with my private server.

So my main questions are the following.
1. What to use to render tiles?
- * How to use it? Perhaps a link to a tutorial.
- * how to get the coordinates of my country?
2. How to make the binding between tiles and server?

asked 25 Oct '11, 14:05

alexz's gravatar image

alexz
225212226
accept rate: 0%

closed 25 Oct '11, 14:54

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108

The question has been closed for the following reason "Duplicate Question -- see http://help.openstreetmap.org/questions/136/how-do-i-render-my-own-maps-for-my-website" by Jonathan Bennett 25 Oct '11, 14:54


To render tiles for a particular area, you can use the generate_tiles.py script. This should be in your Mapnik directory. You have to edit section at the end of the script to specify the bounding boxes and zoom levels that you want. Then just run the script, and it will generate the tiles for those areas.

For getting the coordinates for your country, an easy way is to go to openstreetmap.org, and click on the tab for "Export". Choose the option for Manually select a different area, then draw a box for the area you want. That will give you the coordinates of the bounding box.

There is a useful tutorial here: Map tiles and bounding boxes

For your second question, I'm not sure what you mean by "binding" the tiles. What sort of server? if just a webserver, you can just upload all of your tiles into the appropriate directory. If you mean viewing your tiles as a slippy map, you can do that by using OpenLayers. See this previous question and answer: How to serve tiles from my own server?

permanent link

answered 25 Oct '11, 15:00

Vclaw's gravatar image

Vclaw
9.2k895141
accept rate: 22%

Thank you! That is what i was looking for! And yes, i want to serve my own tiles. Thanks thanks thanks!

(25 Oct '11, 21:38) alexz

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:

×440
×287

question asked: 25 Oct '11, 14:05

question was seen: 4,471 times

last updated: 25 Oct '11, 21:38

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