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

5
votes
0answers
410 views

Tilestache/Mapnik: Is it possible to create dynamically filtered layers?

I'm using Tilestache to generate two layers with the mapnik and mapnik grid providers, and it's working great! However, I want users to be able to filter the data over many (more than ten) dimensions,...
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 ...
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 ...
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., "...
3
votes
0answers
152 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 ...
3
votes
0answers
163 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 ...
3
votes
0answers
58 views

How can I show timezone in TileMill?

I downloaded data from Natural Earth Data and added it to TileMill (git revision 8044976 on Mac) I downloaded raster data, borders, cities, airports and timezones. However, the timezones show only a ...
3
votes
0answers
166 views

Using custom mapbox studio styles with mapnik

I created my own tile server according to this instruction and my own layout/style with Mapbox Studio. Following the mentioned instruction I currently use OSM Bright as layout/style. Question: How ...
3
votes
0answers
97 views

Data format for offline apps on iPad?

For an iPAD application (based on WhirlyGlobe) we've two modes: offline and online. It's a meteorological application so each day around 1600 layers (worldwide) per day are created on the servers. ...
3
votes
0answers
224 views

mapnik xml and carto css

I have a large mapnik xml file that I would like to convert to carto css to manage with tile-mill. What tools should I use on Ubuntu 14.04. I have tried to compile the cartogenerator from Dane but it ...
3
votes
0answers
253 views

How to create a Typographic Map with Mapnik

So i am trying to make a typographic map using mapnik. I want the street names along a particular street not to overlap, but I want an intersection between two streets to over lap. Currently some ...
3
votes
0answers
667 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 +...
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 ...
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 ...
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 ...
2
votes
0answers
44 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 ...
2
votes
0answers
22 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
0answers
115 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 ...
2
votes
0answers
100 views

How to serve an image layer with tilestache

I have some .png images with associated .wld and .tfw files. I'd like to display this in OpenLayers, and I already have a Tilestache server running, so it would be good to leverage this. OpenLayers ...
2
votes
0answers
127 views

TileMill: inset line with negative line-offset property value produces strange artifacts

I'm trying to create an inset line in TileMill within a polygon using a negative value with the line-offset property. However, it looks like the a line's cap doesn't get shifted, causing strange ...
2
votes
0answers
138 views

Mapnik change xml config on the fly

I have tile server running based on mapnik, mod_tile, and renderd. It was succesfully generate and serving tile using mapnik xml configuration which defined on renderd.conf. Something like this : [...
2
votes
0answers
132 views

How to optimize color ramp for terrain

I'm working on a project to highlight LiDAR terrain on the web and part of the idea is to show the detail of the data at large scales. I've already read through the excellent Mapbox guide and I've got ...
2
votes
0answers
210 views

Styling river charts with TileMill - issue with filling a polygon made of disjoint line segments

I am trying to style inland river charts produced by the Army Corps of Engineers. I imported the vectors into Postgres, and I’m using TileMill to style the data. I am having trouble correctly filling ...
2
votes
0answers
59 views

Mod Tiles configuring probelem

I have installed all most every requirements to configure Mod Tiles. When I am trying to install it by ./autogen.sh its not installing. Its replying ./autogen.sh: 2: ./autogen.sh: autoreconf: not ...
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 ...
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
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,...
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
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
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 ...
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 ...
1
vote
0answers
112 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 ...
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 ...
1
vote
0answers
357 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
17 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
44 views

Mapnik: Non-Image Polygon fill (e.g., diagonals)

Some of the output produced by our team - primarily on updates for 'legacy' projects - is styled with diagonal line fills (an example appears below). In mapnik, this can be achieved using <...
1
vote
0answers
187 views

Serving Dynamic Tiles

I want to display data (tiles and utfgrid info) inside MSSQL on top of google maps using Mapnik. I have looked into mapnik and setup a small prototype both with tilestache and also with node-mapnik ...
1
vote
0answers
81 views

Mapnik performance - large polyline dataset

I'm working with a very large set of polylines - contour data - to be rendered with Mapnik. (The contours are generated using gdal_contour from SRTM data.) At present I'm storing them in PostGIS and ...
1
vote
0answers
119 views

How to add a non-pattern polygon fill in mapnik/mapbox?

I have a map with a polygon that I want to fill with an SVG image (see simple example below). I got polygon-pattern-file to work, but I don't want the image to be used as a pattern. I mean, when I ...
1
vote
0answers
219 views

SVG patterns in Tilemill/Mapbox Studio

I'm working on a project that requires custom styles for lines, similar to that in Mapbox's line-pattern-file example, but I keep running into an issue where my custom line symbology looks suboptimal ...
1
vote
0answers
97 views

DPI Dependent OSM Tile Rendering

We have built an OSM Tile Server following the instructions at http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/ The tile server is rendering tiles, but the street names on ...
1
vote
0answers
52 views

“fill in” .vrt with missing locations in a mosaic

I have ~2000 NASA SRTM .hgt files. I wanted to join them together in a single mosaic, and to save disk space I used GDAL to create a .VRT rather than a very large GeoTiff. This is read by Mapnik. ...
1
vote
0answers
28 views

Point Symbolizer() in rundemo.cpp file Giving error

The code is given Below: roads2_rule_11.append(point_symbolizer("abc.png")); The error is given below: rundemo.cpp: In function âint main(int, char**)â: rundemo.cpp:142:57: error: no matching ...
1
vote
0answers
62 views

What is a Format of csv plugin datasource string in mapnik

I have tried that Format Is that is a correct format to pass to CSV plugin,the sample C++ code is given Below: std::string csv_string("wkt,Name POLYGON((5.123456 51.6, 6.8 52.6, 7.8 51.6, 5.123456 51....
1
vote
0answers
165 views

UTFGrid from raster source

Is it possible to make utfgrids from a raster source (e.g. GeoTIFF)? I am trying to get utfgrids from a .tif with mapnik.xml and TileStache but it seems not to be working. As a workaround I am ...
1
vote
0answers
170 views

Mapnik PGRaster Plugin creating 8x8 tiles with visible boundaries

I have used the latest addition to Mapnik PGRaster plugin (https://github.com/mapnik/mapnik/tree/2.3.x) by Strk(https://github.com/strk/mapnik/tree/2.3.x-pgraster) and merged recently. I am able to ...
1
vote
0answers
395 views

Generating full planet tiles from OpenStreetMap data?

i am tested using two scenarios, 1) First, i am used switch2osm for tile rendering. its good it handles many things. But it takes long days to pre-render all tiles and it takes huge memory in TB. ...
1
vote
0answers
371 views

Configuring Mapproxy + Mapnik for using Getfeatureinfo

This is probably a duplicate of this question: How to configure mapproxy and mapnik for getfeatureinfo requests, however, that one is old and still unanswered. I'm trying to configure a Mapproxy ...
1
vote
0answers
62 views

Avoid text/shields from being too close using Mapnik xml

I'm having the problem of text/shields from different layers appear too close to each other on the map generated from Mapnik xml. The screenshot below shows the problem I have three layers in this ...
1
vote
0answers
571 views

Mapserver and Tilecache configuration issue

Currently I am using mapnik2 with tilecache for map generation. As there is shift in some of the tiles generated,I am trying to configure mapserver with tilecache for caching tiles. I have installed ...