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
17 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 ...
3
votes
1answer
646 views

How to configure tilecache on nginx

I am running a geodjango application with mapnik and tilecache. Currently tilecache is run on another server to decrease the load on the application server. The application server has nginx as the ...
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 ...
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 ...
2
votes
1answer
719 views

font error when using mapnik generate_tiles.py

generate_tiles.py has worked fine throughout the transition from mapnik 0.7 to mapnik 2.x in gentoo linux. Now I have switched to debian (wheezy) and I am getting the following error when I run ...
0
votes
1answer
212 views

Cannot install node-mapnik on Windows 2008 x64

I have been spending the last few days trying to get node-mapnik running but with no success. Initially inspired by Wilhelm Berg's demo (https://www.youtube.com/watch?v=GlTaRpg3CbQ) which renders ...
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 ...
2
votes
2answers
112 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 ...
4
votes
1answer
192 views

Is it possible to export a QGIS project to Mapnik XML?

Is it possible to export a QGIS project to Mapnik xml? I'm using QGIS 2.4 and Quantumnik does not seem to work with that version.
0
votes
2answers
411 views

Error while building OSMBright

Error while building OSMBright when i run the make.py the following error is coming Traceback (most recent call last): File "./make.py", line 123, in <module> build() File ...
0
votes
1answer
340 views

How to configure mapproxy and mapnik for getfeatureinfo requests

I'm wondering if its possible to configure mapproxy and mapnik for getfeatureinfo requests. I've made this combination work for getmap requests, but when I request getfeatureinfo I receive layer xxx ...
4
votes
2answers
417 views

Using custom styles with Mapnik

I'm setting up a custom tile server using OpenstreetMaps and Mapnik. I've been able to successfully setup the server and serve tiles using it. I'm using the OSM-Bright style right now. I would like ...
0
votes
2answers
428 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 ...
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 ...
3
votes
2answers
615 views

using mod_tile in windows

I am trying to generate tiles on the fly in windows using mod_tile. I have followed the tutorial http://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/ on ubuntu and successfully ...
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
1answer
180 views

Best way to import Tilemill produced mbtiles to CouchDB?

I'm using MapProxy to seed a CouchDB with tile images on a FreeBSD server. My workflow is Tilemill -> mbtiles export -> mapproxy seed -> CouchDB. For zoom levels 10 - 17, rendering takes ~ 2-3 days, ...
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 ...
5
votes
1answer
1k 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. ...
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
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 ...
4
votes
1answer
12k 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 ...
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
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 = ...
3
votes
1answer
249 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
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 ...
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 ...
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
35 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
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 ...
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 ...
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 ...
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 ...
1
vote
1answer
1k views

Renderd outputs “failed to initialize projection 4326”

I'm setting up a tile server using the guide provided here. I have everything set up. proj4 is installed in version 4.8.0. The espg file is existant, I ran an xmllint over my xml style file without ...
1
vote
4answers
260 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 ...
1
vote
1answer
269 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 ...
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 ...
0
votes
1answer
437 views

Orthographic reprojection with mapnik

I am trying to create a google earth like wep application. My problem is that I can't get to render a full view of the earth. The zoom_all() function generates the following error : RuntimeError: ...
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 ...
2
votes
2answers
310 views

How to style ways with CartoCSS depending on a relation property (OSM)

I'm using CartoCSS together with an OSM Postgres DB (hstore on). I want to set the line color depending on the operator tag of relations (routes). How can I do that? Update Thanks to Paul Norman for ...
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
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). ...