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
0answers
14 views

“getting Unknown projection string error” serving EPSG:4326 tiles with open street maps mapnik renderd

The goal: I am attempting to generate map tiles with EPSG:4326 instead of web mercator by specifying EPSG:4326 in the mapnik style file srs attributes My current setup: I am running Ubuntu 14.14 ...
0
votes
1answer
16 views

How to apply Mapnik Zoom Level Styling via Leaflet Zoom Levels

I've setup a node mapnik server to render some tiles for polygons. The application I've built to call out to these tiles is in Leaflet An example of a current mapnik styling rule is below <Style ...
4
votes
0answers
34 views

Some characters in OpenStreetMap display as rectangles

I installed tileserver based on the instructions provided here for Ubuntu 14.04 using this approach . All fonts and Shapefiles were downloaded and installed from INSTALL.md. The tileserver works ...
0
votes
0answers
10 views

Mapnik tiling speed help

I am working with a large series of jp2 files and need to mosaic and web map tile them. I would like to go form zoom 1-20. I am using mapnik to tile my images. Using gdalbuildvrt I was able to build ...
1
vote
0answers
33 views

Optimize Postgis contour lines DB

I'd like to try to optimize a world-wide 10m contour lines (isohypses) Postgis database(from SRTM). The complete DB takes 504GB on disk, contour lines are already in epsg:3857, and simplified with ...
1
vote
1answer
23 views

polytiles.py not showing large areas of water with osm carto style

I've used polytiles.py with the old XML OSM style to generate tiles from the GB pbf and it worked fine. However, when I import the PBF into the db with the openstreetmap-carto style and use ...
1
vote
1answer
14 views

Tilestrata XML error

I am trying to install Tilestrata on a DigitalOcean server. I already have it up and running on an AWS instance. But although I think I'm doing the same thing I did to install it on AWS, so far I have ...
1
vote
0answers
45 views

How to make water transparent on openstreemap-carto style?

I have build up manually a tile server on Ubuntu 14.04. LTS, by following switch2osm's guide and have used the openstreetmap-carto style. Now I intend to add a base layer, underneath the current ...
0
votes
1answer
22 views

Transform scale of polygon pattern fills with Carto/Mapnik

In CartoCSS you can specify an SVG pattern fill for a polygon as so: #layer { polygon-pattern-file: url(images/fill.svg); } However, the size of the fill is too big at small scales and too ...
0
votes
0answers
7 views

Problems with Mapnik raster colorizer discrete not properly assigning values to their stop value

I'm using Mapnik (Python) to convert a raster (float valued) to MBTiles. In general the discrete colorizer is working fine, except for zero values, where it fails to recognize their correct stop ...
0
votes
0answers
25 views

How to serve multiple Map style for a single map tile server

I have made one OSM map tile server and using open carto tool to style the map. But I am in need to have multiple style for the same map tile server LIVE. Is this really possible? If yes then please ...
2
votes
2answers
111 views

How to generate 512x512 map tiles (2x resolution for retina displays)

I'm looking for a method to produce 512x512 pixels map tiles using CartoCSS and Mapnik, for example exactly as CardoDB does for its base maps (here below a 256x256 map tile vs its correspondent ...
2
votes
1answer
66 views

Render low zoom level with mapnik

I am trying to render the MapQuest Open style at zoom level 3 for the whole world using Mapnik, at a higher resolution than available online. I have downloaded mapnik, and the MapQuest Open style. ...
0
votes
0answers
27 views

Mapnik render from a postgres cluster on an external drive

Because of limited space on my laptop I had to set up my europe-latest.osm.pbf on an external drive. Keeping the flat-nodes on my laptop reduces the processing time. The main time is spent on creating ...
0
votes
0answers
31 views

Mapnik, MemoryDatasource and StyleSheet: Rendering WKT

I want to render linestring with the help of mapnik but I get blank picture. Python code: import mapnik stylesheet = 'python-wkt.xml' image = 'python-wkt.png' m = mapnik.Map(600, 300) context = ...
1
vote
0answers
30 views

QGIS to tilemill export

does anyone know if there is a way to save a QGIS project in a manner that allows it or if there is a way to save a qgis project as mbtiles for use with mapbox
0
votes
0answers
13 views

How to translate units to pixels for symbology rendering in Mapnik?

I would like to translate .QML-file to Mapnik .XML to render layer via Mapnik using the same style that is created for QGIS. The problem is that sizes and offsets on QGIS are defined in millimeters or ...
1
vote
0answers
31 views

UTFGrid and line features: UTFGrid not consistently triggering mouse events for line features

[Update: My first solution works (notes below), but I'm still interested in responses to the second solution I suggested.] Original Post: Has anyone experienced and resolved difficulties with ...
1
vote
1answer
37 views

Prerendered tiles of small area?

I would like to use custom styled tiles for quite a small area. I know there are general solutions like mapnik or mapbox but since I am really only interested in showing tiles for one forrest, is ...
1
vote
1answer
34 views

How to export Mapnik style to XML?

I would like to create Mapnik style using Python API and export it to XML-file. Creating style part is clear enough API has sufficient documentation. But I wasn't able to find function that does the ...
1
vote
1answer
29 views

TileMill : set minzoom to layers?

i found in this post: CartoCSS layer visibility a solution to set a layer not visible for some zoom levels. But in https://github.com/gravitystorm/openstreetmap-carto it seems that a minzoom ...
1
vote
0answers
44 views

Updating mapnik stylesheet to render WGS84?

We have a production tile server loaded using osm2pgsql serving osm-bright, osm-carto and osm-mapquest style tiles and would like to be able to server those in WGS84 projection, as well. I've tried ...
0
votes
0answers
53 views

Strategies to keep cost of hosting your own map server and geocoder low

I'm currently thinking about setting up my own tile server (mapnik, mod_tile, renderd) and geocoder (nominatim) for my application. In short, the application aims to let a user specify his location ...
8
votes
1answer
123 views

Mapnik failing through a webstack

I've inherited a pretty large / complex (internal) web portal (run under python 2.6.6), which has some mapping capabilities, using Mapnik 2.2.0. The web service has recently started throwing 500 ...
0
votes
0answers
10 views

mapnik.Gdal(file=my_latlon_raster_file_path) returns a datasource with an empty all_features() list

When I get my mapnik layer datasource like that for a raster file: layer = mapnik.Layer(my_raster_layer_name) layer.srs = my_srs layer.datasource = mapnik.Gdal(file=full_path_to_my_raster_file) and ...
1
vote
1answer
37 views

Duplicated place names when rendering tiles with mapnik and mod_tile

So I am trying to render all the tiles for the state of Florida with the file generate_tiles.py that came with mapnik. The tiles are rendering, but erroneously including multiple city names (see ...
0
votes
0answers
10 views

Rotating street name text using mod_wsgi and mapnik

I am currently using mod_wsgi on apache2 linux to serve OSM mapping via mapnik. I use OpenLayers3 to display the map in HTML. Is it possible to rotate the street names when openlayers map has rotated? ...
1
vote
0answers
28 views

tilemill resolution

I have created a map on tilemill and can export the tiles to mbtiles. However I need to determine the resolution for each zoom level. On a previous project that used different technology (tilecache) I ...
3
votes
0answers
30 views

Mapnik: Parameterize queries for PostGIS datasource?

My datasource is PostGIS, but I need to build the query on the fly based on user-supplied filters. Obviously I don't want to create an SQLI vulnerability, so I'd like to parameterize my query, e.g., ...
1
vote
0answers
75 views

Formula of mapnik bounding box (spherical mercator)

I want to implement a tile server and I'm following the code in the repo node-mapnik-sample-code. When a request is sent with the parameters x, y, z (longitude, latitude, zoom), those parameters are ...
0
votes
0answers
10 views

Previewing Mapnik Fonts

I have searched the web all morning for a preview of the Mapnik Fonts available on Tilemill. I know if I have a project open and go to fonts Tilemill provides a long list of available fonts (below). ...
1
vote
0answers
46 views

How to add Geo PDF header to a PDF rendered with mapnik?

I rendered a PDF with mapnik and I am now trying to add geospatial header information to the PDF. I tried the method add_geospatial_pdf_header() from mapnik.printing.PDFPrinter. I do get some Geo PDF ...
0
votes
0answers
23 views

How to handle Multiple Shapefiles to provide map tile server?

I have Nearly 60 shape file represent different regions. I use Mapnik + node js to render tiles by applying same stylesheet.xml for all shape files. Questions: 1)Is there any other way to effciently ...
0
votes
0answers
29 views

Tilestache slow when interrupted

I am using tilestache to serve mapnik OSM map, I am finding it really slow when mapnik rendering is interrupted (say when user zooms out twice with empty cache). It has to wait for the first zoom ...
0
votes
0answers
11 views

How to rotate Mapnik Layer by specific layer

I'm working on implementation of the offline tile server with custom Server is running according to this instruction https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/ I ...
1
vote
1answer
267 views

Custom tile server - how to create a layer using Mapnik and mod_tile using POSTGIS db

I have created a Ubuntu 14.04 tile server. I loaded an OSM base map into the POSTGIS database and created a slippy-map using OpenLayers 3.9. Then I loaded data of an overlay into the POSTGIS database ...
1
vote
1answer
50 views

Can I make a multi layers pdf from a mapnik xml?

I am playing with mapnik and trying to export multiple vector files as one pdf with multiple layers. For the moment, my vectors get merged when rendering. Is there a way to keep each vector in a ...
2
votes
1answer
177 views

pre-rendering for whole planet using render_list is very very slow

I'm trying to render tiles for the entire planet using 8 threads. It is taking weeks to render the whole planet is there any way to optimise the tile pre-rendering. Hardware in use is m4.2xlarge (32.0 ...
0
votes
0answers
21 views

Is there a way to re-order how layers render in Mapnik?

I'm creating Mapnik stylesheets and I am trying to edit the order layers are rendered. I tried just moving the XML code, but that didn't seem to work. Are there specific steps to make some features ...
0
votes
2answers
108 views

Serving an image as a tile layer with node mapnik

I have an image that I get from a server, I need to then take that image and tile it on the fly and pass it back to the user. Everything I see keeps using stylesheets which is not what I want/need. Is ...
2
votes
0answers
40 views

Changing border style in OpenStreetMap?

I am trying to figure out how to change OpenStreetMap country borders color/thickness. I've set up a tile server using OSM data, PostgreSQL & Mapnik. The default mapnik style is used. There ...
0
votes
0answers
56 views

TileMill / Mapnik with Postgis datasource

I'm having some problems getting a full features (roads, rivers, buildings, parks, etc) map to show on TileMill. The steps I taken so far: Mounted a PG9.4 with Postgis 2.1 database Downloaded the ...
0
votes
2answers
85 views

Render all roads with an equal width in Mapnik

Is there any easy way to render all roads and paths with an equal width in Mapnik? In the rendition below, all lines have the same line width, but since many of the bigger roads have many lanes or ...
1
vote
0answers
91 views

Mapnik zoom_to_box for shape

I have used the code from Mapnik python tutorial. Now I want to use zoom_to_box to zoom to certain extent. I want to zoom to Box2d(-180.0, 0.0, 0.0, 90.0), however, after appied zoom_to_box, I saw the ...
3
votes
1answer
248 views

How to render tm2 projects

What are the options for rendering tm2 projects? As far as I know the open source Mapbox tm2 projects have proprietary data sources (like OSM Bright 2), thus they are of little use, but some other ...
1
vote
1answer
234 views

osm2pgsql vs imposm rendering performance

Is there any difference in rendering performance between using a osm2pgsql vs imposm imported PostGIS DB in Mapnik? Or asking it differently, is there any downside of using imposm if I only want to ...
2
votes
1answer
55 views

How to compile Mapnik 2.2.0 with mapnik-vector-tile headers

I want to generate vector tiles with Mapnik 2.2.0 (That's the latest version that can be installed on debian wheezy). According to this answer, I need to compile mapnik with mapnik-vector-tile which ...
1
vote
0answers
55 views

Combine two parallel lines to one with postgis

In OpenStreetMap, a highway=motorway consists out of two parallel lines, each representing one direction: On a professional map the two lanes get combined to one single line and drawn with a middle ...
2
votes
0answers
19 views

Which FOSS label engine that supports shrink to fit label in polygon?

I've not found a way to label features using shrink to fit label in polygon, i've tried Qgis, and searched on Geoserver, Mapserver and Mapnik, none of them supports this feature, i'm looking for any ...
2
votes
1answer
186 views

Offline Map with mapnik: Tiles are vertically unaligned and randomly displayed (Leaflet + Tilecache + Mapnik + Postgis)

I'm new to maps and currently I am developing my first offline Map with OSM data. I have map data added to postgres via osm2pgsql and installed mapnik 2.2. For caching I have used tilecache with ...