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

3
votes
2answers
47 views

What is an appropriate tileLayer source for tiles served on an apache localhost through leaflet?

--I found a solution. Please, see answers below.-- I've been trying for about about 25 hours to get a working, locally hosted, tile server running, using this guide from switch2osm. I have a ...
0
votes
0answers
22 views

Node Mapnik PostgreSQL vector tiles Question

I am pretty new to Mapnik and Node. I don't understand much so far thats why I have some questions and it would be nice if someone who knows the topic has time to answer. I set up a an OSM database ...
0
votes
1answer
25 views

OSM Carto Street Numbers style rules for OSM Bright

I'm running an OSM tile server stack using Mod_tile, renderd, mapnik, osm2pgsql and a postgresql/postgis database on Ubuntu Linux 14.04. I've chosen OSM Bright for my tiles, but i would like to ...
0
votes
0answers
19 views

I want to remove the maritime border in higher admin levels( > 4) using carto boundries

Am using carto boundaries to generate my map tiles, when my map rendered over admin level 4, it shows the maritime borders extending on sea which looks very odd on map UI. You could see that in the ...
2
votes
1answer
40 views

Creating an Interrupted Map With OGR, Mapnik and PIL

I am trying to create a simple interrupted Sinusoidal map with Python using OGR, Mapnik and PIL. The general idea is: Make 6x 60 degree sinusoidal maps For each one, make a mask to make it gore ...
2
votes
0answers
40 views

Making a pretty Base Map for QGIS and OpenLayers?

I am developing a standalone QGIS application as well a web GIS using Openalyers. Both applications use GeoServer published WMS and WFS services of parcels as a base layer. I was wondering if it is ...
0
votes
0answers
29 views

Can mapnik implement WMS and WFS services ?

I want to know if there is any implementation for the WMS and WFS in Mapnik ? and does mapnik implementation of the WMS use .mbtiles to serve images ?
1
vote
1answer
13 views

How to modify mapnik's buffer-size by kosmtik's localconfig.json/.js?

I want to override mapnik's buffer-size in kosmtik. How to override it in localconfig.json/.js?
0
votes
0answers
13 views

Is it possible to serve png32 (with RGB + A) with Mapnik 2.2?

I have four separate rasters, combined into a GDAL VRT. I'm using mapnik 2.2 to export this data via an XML stylesheet that's passed to the python library landez. I'm able to write valid map tiles if ...
1
vote
0answers
60 views

Mapnik3 + python3 + Postgis

I've installed mapnik3, python bindings, and postgis (and imported a pbf file into postgis), and can't seem to even make it generate a simple map as a png file. Specifically - where can I find ...
2
votes
0answers
20 views

XML entities not working with node-mapnik

I'm not getting XML entities to work with node-mapnik. In the changelog for 1.4.4 I read: "Mapnik now build with rapidxml/ptree xml parser rather than libxml2 (meaning no xincludes or entities are ...
3
votes
0answers
72 views

How to generate static heat maps server side?

I've been searching a way to generate server side static maps using Python (or any other languages, doesn't matter) I can create the maps I want with Qgis (And they look really great) but I don't ...
2
votes
0answers
38 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
66 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
58 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
25 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
53 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
26 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 polytiles....
1
vote
1answer
29 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
50 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 one,...
0
votes
1answer
49 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
15 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
40 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
250 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
94 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
36 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
48 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
40 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
20 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
38 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
49 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
58 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 ...
2
votes
1answer
39 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
73 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
60 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
140 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 ...
1
vote
1answer
58 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 below)...
0
votes
0answers
11 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
31 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
31 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
113 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
11 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
59 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
40 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
40 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
15 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
511 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
61 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
321 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
26 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 ...