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

1
vote
0answers
25 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
8 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
13 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
26 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
26 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
20 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
21 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
41 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
117 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
6 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
21 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
8 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
21 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
27 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
25 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
9 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
33 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
17 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
16 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
10 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
134 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
36 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 ...
1
vote
1answer
84 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
15 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
62 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
39 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
49 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
64 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
63 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 ...
2
votes
1answer
154 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
128 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
43 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
47 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
137 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 ...
1
vote
0answers
58 views

How do I serve out a WMS using mapnik?

I have an old Mapnik's XML file, from which I need to serve out data as a WMS service. I've gone through the Mapnik site, and I didn't find anything. I've also looked at Mapnik's OGC server, and ...
1
vote
0answers
14 views

Mapnik/Tilemill: Align or orient a Marker along a Line, such as a Gate

In Mapnik (actually Tilemill), using OSM data, I'm trying to draw a gate across a way, such that the gate is perpendicular to the road. But the gate always gets drawn with the same orientation, ...
1
vote
0answers
98 views

Export Mapbox-Studio project to Mapnik XML

Tilemill had a feature to export the project to Mapnik XML (see here). Is there an equivalent functionality in Mapbox Studio? Some background: I'm trying to use a style like OSM Bright, edit it a ...
2
votes
0answers
74 views

Quantumnik plugin replacement?

I am looking for export QGIS Style in MapNik (so, his .xml format) I see that Quantumnik plugin can do that, but is not supported anymore (and cannot be installed at all) . Is there any alternative ...
1
vote
4answers
195 views

Permission Denied when installing openstreetmap server

I am installing a tile server from this link on my Ubuntu Machine 14.04. The problem I am facing is in this line : ./make.py cd ../OSMBright/ carto project.mml > OSMBright.xml Whenever I enter ...
3
votes
0answers
94 views

How to merge layers from two vector tiles with Mapnik?

I'm using Mapnik + Mapbox nodejs stack. Given two vector tiles (PBFs) for the same location/zoom, with some layers having the same name in both. How do I merge them into one PBF tile - replacing ...
0
votes
0answers
74 views

Rendering OpenStreetMaps with GeoServer

My target is to have the whole planet to be available in the map client[leaflet.js/openlayers.js] but only a specific country loaded with roads etc. I have followed the steps below to setup my ...
0
votes
0answers
176 views

Rendering Problem: OpenStreetMap Server CentOS 7

The Problem I'm trying to install an OpenStreetMap server on CentOS 7. I'm using mapnik 2.2.0 and PostGis 2.0. When I try to render the tiles for the server I get the following error: ...
0
votes
0answers
189 views

ImportError: No module named mapnik on CentOS 7

The problem: I've installed mapnik 3.0.1 successfully by running the typical source code install: ./configure make && make install ldconfig -v However.... When I import mapnik into ...
2
votes
1answer
29 views

Indexing PostGIS table by tile boundaries

I have a PostGIS table with 2M rows, all Points. I'm creating tiles from the data, but it's quite slow. Although I have the normal geometry indexes enabled on the table, I wonder if it's possible to ...
0
votes
0answers
86 views

Scons error of Mapnik: Boost version 1.47 or greater is required

I've tried to compile mapnik from src on RedHat 6.2. I've updated a boost library to boost148 and gcc to gcc-4.7.2. When I start python scons/scons.py install I'm still getting mistakes like: ...
0
votes
1answer
112 views

OpenStreetMaps Local Server: Mapnik not Rendering Tiles

Introduction: I've built a local OSM server following this guide https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/. I've gotten through the guide just fine, and the server ...
1
vote
1answer
128 views

Using OpenStreetMaps (*.pbf) data with Mapnik?

I am using mapnik to directly render a map using xml sheet. I downloaded world boundaries, created the mapnik stylesheet from wiki page, and ran the python code which created a world image : Now ...
0
votes
1answer
303 views

Starting Tile Sever Rendering Error: OSMBright.xml

I was following the entire process found here: https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/ I have an error though on Testing your tileserver part where i run the ...
0
votes
0answers
37 views

Updating OSM TileServer

I built an OSM TileServer using the entire planet OSM data about a year. I wold like to update the database of my TileServer by using the new planet OSM data. Given that the original planet OSM data ...