Mapnik is an open source mapping toolkit, written in C++ and useful for both desktop- and server-based map rendering. It is used by Tilemill and openstreetmap. Learn more at http://mapnik.org/

learn more… | top users | synonyms

2
votes
2answers
2k views

Creating tiles in Mapnik

I have installed mapnik and successfully tested it. Now I am facing problem to create my own customized tiles. I have google it but everywhere it was telling about osm tile generation. My vision is ...
0
votes
1answer
432 views

How to get Mapnik running on Win?

I have installed Mapnik-2.0.1rc0 in windows 7 32bit machine. I then tested the installation by import mapnik from * and it did not return any error. But when I tried to input the config version ...
2
votes
1answer
513 views

Displaying UTFGrids with Mapnik and TileStache

I'm new to using Mapnik and TileStache. The reason i wanted to use these two pieces of software was to understand the UTFGrid specification i've seen used all over the place ( examples here, here, ...
2
votes
1answer
85 views

Open Street Map “no map for: default”

I'm hitting my head off a wall! I Have installed renderd and mapnik on Debain squeeze v6.0.5. Renderd(version 0.7.1) is starting without error. But when I request the /osm_tiles2/0/0/0.png . The ...
0
votes
1answer
168 views

How to make Mapnik render Erdas images in RGB instead of grayscale?

I have some orthophoto files (Erdas Imagine format) enclosed in a vrt file. When I view it in any desktop GIS it has proper RGB colors, but when I use the vrt in Mapnik to render some tiles, I get ...
1
vote
0answers
94 views

Mapnik OGCServer doesn't work if theres no active internet connection

Didn't find anything similar so: I have a mapnik OGCServer on an ubuntu 12.04 virtual machine (vmware player) which works fine. The problem occurs when i disconnect all network connections, when ogc ...
6
votes
1answer
1k views

Generating tiles for osm/esri shapefiles

I've generated tiles for OpenStreetMap .OSM files using Maperitive and quickly consumed them with leaflet (with no tile cache yet). I'm now looking for the right and simple way to do that also with ...
4
votes
1answer
244 views

How to reproduce Stamen's Toner PostGIS setup?

I'm trying to render Stamen's toner map with Landez which uses Mapnik. The style I'm rendering is from Stamen's toner project. I'm using the one which only renders labels (no lines). I imported the ...
4
votes
1answer
543 views

USGS Topographic Map Online API

I am creating a website for a non-profit organization and would like to plot points on a map similar to this: http://www.arcgis.com/home/item.html?id=931d892ac7a843d7ba29d085e0433465 I am currently ...
3
votes
1answer
707 views

How to render PostGIS raster with Mapnik XML?

I'm trying to manage raster files from PostGIS, which to be rendered using Mapnik. I used raster2pgsql to load those GeoTIFF images to PostGIS, and I think the loading process turned out OK. The ...
1
vote
2answers
1k views

How to render from Mapnik at a specific scale?

I'm trying to render a map to paper using Mapnik at a specific scale (such as 1:50k), but can't yet figure out how. So far I'm just using map.zoom_to_box: map.zoom_to_box (mapnik.Envelope ...
2
votes
0answers
378 views

Get tile URL with projection different than 900913

I have the following code, which should display a slippy map showing tiles producted by me with mapnik: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 ...
1
vote
1answer
486 views

OSM Map projection doesn't seem to change

I have the following OpenLayers map: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +ellps=bessel ...
0
votes
1answer
384 views

Vector layer shifted on OSM map: why?

I've defined the following map: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +ellps=bessel ...
1
vote
1answer
345 views

Mapnik WKT rendering problem

I have a rendering problem with the mapnik GEOS plugin. I try to input a polygon WKT definition containing floats with around 16 digits. Mapnik however does not render these. When I decrease the ...
1
vote
1answer
161 views

TileMill shows black lines around raster layers

I've taken a large number of raster images and added them to TileMill. Everything has worked great. The problem that I am seeing is that TileMill adds a small black line around each layer. I know that ...
0
votes
1answer
822 views

socket connect failed for: /tmp/osm-renderd

I have installed Mapnik and have a functioning PostGIS database (I can access data through QGIS with no problems). When I try to run render_list to generate tiles it fails with socket connect failed ...
0
votes
1answer
719 views

Could not create datasource

I'm fighting with an error I can't figure out where it is coming from. Tried to compile all the things and used the latest unstable/stable ppa repositories as well, can't find the issue where it is ...
3
votes
1answer
516 views

Calculate bounding box + buffer for rendering a map tile with mapnik library

Mapnik library has a Projection object (I'm using Python bindings): spherical_mercator = '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null ...
1
vote
0answers
141 views

produce images with shapefiles and OpenStreetMap

I have a python file http://pastebin.com/jzwE6c6P which iterates over the features of a shapefile and renders a simple image by zooming to the bounding box of each feature. What I need is ...
3
votes
2answers
5k views

Click a marker icon to open a pop-up, using OpenLayers

Background Looking to create a pop-up that performs an Ajax request when the user clicks a marker on an OpenLayers map. The markers, however, have different icons. The following is working code that ...
1
vote
2answers
1k views

Using render_list to render only map extract

I am trying to render an area where I have added an extract from the planet file with render_list. The command I am using is render_list -x 159 -X 179 -y 160 -Y 410 -n 2 ...
5
votes
0answers
165 views

How to rotate polygon to find best fit in Mapnik? [closed]

I have a quite simple problem but somehow I just fail to solve it. There is a polygon and a range xsize and ysize. The x and y size determines the mapnik generated image. The polygon should now be ...
0
votes
1answer
467 views

Empty preview map Tilestache Mbtiles

So, I generated a map on tilemill and exported the mbtiles file. I've setup Tilestache, and all required dependencies. I tried the OSM preview provided by default which worked fine. When I tried to ...
2
votes
1answer
142 views

Two questions about mapnik

I newbie have two newbie questions about Mapnik. Does Mapnik allow generation tiles with float zoom level? I have osm file for my region. I want generate images. Where i can download full xml file ...
0
votes
1answer
679 views

How to change projection for layer?

i use two seperate datasource for my layers: sql database for main map data, this is using EPSG:900913 osm file for some extra features, this data use EPSG:4326 projection tiles for both layers ...
1
vote
0answers
196 views

Mapnik not generating tiles for tilecatche

imported data by using Osm2pgsql, to get rid off all problems related to data conversion, i stored this as latlong (-l parameter).I created stylesheet, and i tested with python script and it was ...
5
votes
2answers
2k views

Mapnik style editor

Is there any tool or editor which can shorten the cycle for experimenting on different styles for mapnik. It would be wonderful with something like cloudmade's editor, but with the possibility to ...
1
vote
0answers
196 views

Mapnik: mapnik.has_pycairo() returns False. How to fix this on Windows for Python27?

I'm trying to modify rundemo.py (comes canned with Mapnik Windows binaries) to render output files at a higher resolution, but it seems I still have issues with my Mapnik-to-Cairo setup. I've got ...
3
votes
4answers
4k views

How to serve OSM Tiles on Windows?

Was hoping I could just extract tiles into a local file system, point IIS at it and be done but I guess that is not the reality of Open Street Map. I'm getting buried in all the possible ways of ...
5
votes
1answer
738 views

Mapnik Server - Hardware recommendations

I'm looking for some suggestions for a Mapnik-TileCache server. How much hardware is really necessary? The dataset I use is about 380mb in osm raw format. My actual database is a bit more than 1GB. ...
0
votes
1answer
256 views

What is the correct projection to use with tm_wgs84_sans_antarctica.shp?

I am using tm_wgs84_sans_antarctica.shp with mapnik to generate tiles. I am using the tiles with Google Maps Javascript API V3. But the projection is way off. Here is roughly what my code looks like: ...
3
votes
1answer
389 views

making choropleth maps using PostGIS Windows

i read an article on chicago tribune blog about making maps, it consist on "making choropleth maps using PostGIS, TileMill, Mapnik and Google Maps" on Mac environnement, my question is how we can ...
1
vote
2answers
138 views

How to prevent base layers from being edited?

I've made a local tile server (mapnik + postgis + tilecache). Now i need to make use of some editing tool so that only newly created layer can be edited: users of this tool shouldn't have rights to ...
1
vote
2answers
609 views

Tilecache and Mapnik problem

My configs: # Rendering OpenStreetMap data with Mapnik; should use metaTiling to # avoid labels across tile boundaries [osm-map] type=MapnikLayer mapfile=/usr/home/sergeev/osm_mapnik/osm.xml ...
5
votes
1answer
418 views

How to fix strange rendering behaviour of OSM Data in Mapnik?

My current setup so far is a running Apache webserver with tilecache.cgi script and a mapnik rendering engine connecting to my postgis database containing my OSM data. The problem is very easy to ...
1
vote
1answer
475 views

Enhance performance of a join query for mapnik using postgis

I use mapnik to render map with datasources from a postgis database. One query is a join on two table, one with a geometry (a polygon) and the other one with some fields I want to use for rendering. ...
1
vote
1answer
663 views

Overlapping map tiles with mapnik's generate_tiles.py script

I'm trying to generate map tiles using the mapnik's generate_tiles.py script, but the resulting tiles are overlapped. Example The tiles have the following directory structure: ...
1
vote
2answers
240 views

Problem with Mapnik and custom XML-File

I'm right now working with navteq data and building 'the XML-File' to generate the tiles! I started with an all original osm.xml, and set all the status' to "off". First I checked the dataset in my ...
1
vote
1answer
229 views

Mapnik server with Navteq Data

Is anyone here using navteq data for a GIS app? I'd like to work with navteq data and using mapnik-tilecache as a WMS server. The reason is, I use OSM data as well on my other server. And as the two ...
4
votes
1answer
284 views

generate 1-18 simple worldmap with mapnik

I have postgresql with postgis and mapnik, I need to generate a tiled world map with only country contours and country name that are displayed at all zoom levels, no extra info. How can I do it ...
1
vote
1answer
156 views

Possible to use same database for mapnik and pgRouting?

I am already running an OGCServer (mapnik) with an postgis database. I want to also run pgRouting on preferably the same database, so that I do not have to maintain two separate databases. I ...
2
votes
1answer
201 views

Which Opensource products to use for Maprendering/Hosting?

I'm trying to setup a server for hosting maps for a gis application. The path I have taken so far is using an UBUNTU 10.04LTS installation. I'm using PostgreSQL 8.4 and PostGIS 1.5. I already made a ...
10
votes
2answers
645 views

Waterman butterfly projection in Mapnik

Like the title says, how would someone configure Mapnik to use the Waterman butterfly projection ? Otherwise, what other tools would be able to render using this projection ?
1
vote
0answers
427 views

Tilecache + Mapnik + Apache generates incomplete tiles (missing layers)

I have TileCache + Mapnik working with a custom osm.xml stylesheet. When I run tilecache_http_server.py the tiles are served OK. But when I run TileCache under Apache (with mod_wsgi) I see incomplete ...
2
votes
1answer
902 views

Setting up TileCache to make use of Mapnik and OpenStreetMaps

First of all, I'd say that I'm completely newb at maps related stuff... I am trying to install TileCache and configure it to use Mapnik to render tiles from OpenStreetMaps. I managed to setup the ...
3
votes
1answer
397 views

Where can i find free mapnik map styles with focus on waterways?

I am using Google maps for my map tiles. These tiles are very road oriented. As i am making an application for waterways i would like to change my map so that its main focus is on waterways. I have a ...
6
votes
1answer
662 views

Mapnik/Python Compatibility

Anyone know what versions of Python Mapnik is compatible with? I'm having trouble getting Mapnik to work. I'm thinking it might be because I am on 64-bit Win 7 and installed the 64-bit Python (v2.7) ...
8
votes
1answer
2k views

Setting up TileStache

I want to set up TileStache, but I'm new enough to the world of GIS to find the TileStache docs a bit impenetrable. I've just about figured out that I need to run tilestache-server.py -c ...
7
votes
2answers
1k views

Can Mapnik render spatial data from SQL Server?

This is a very simple question - I just want to know if anybody can confirm that they have successfully used Mapnik to render tiles directly from data held in SQL Server. (And, if so, what did you do ...