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

4
votes
0answers
303 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) ...
3
votes
0answers
42 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
64 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
222 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
548 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
69 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
88 views

Cartographic-complete Maps in PDF On Request using Open Source?

Currently I have some data in PostGIS. I want to implement the following: users will make a request via web, with parameters like location, scale, layers to be displayed, etc. and I need to provide ...
2
votes
0answers
748 views

How to render Mapbox Vector Tiles from OSM data?

I'd like to render my own vector tiles in the Mapbox Vector Tile format (MVT) format using OpenStreetMap data (ultimately for use with Mapbox's hot Mapbox GL JS client renderer). Is TileStache + ...
2
votes
0answers
127 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 ...
2
votes
0answers
96 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
108 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
191 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
58 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
21 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
0answers
27 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 ...
1
vote
0answers
19 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 ...
1
vote
0answers
20 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
96 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
47 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
47 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
92 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
51 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
69 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 ...
1
vote
0answers
43 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
22 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
40 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 ...
1
vote
0answers
98 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
114 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
258 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 ...
1
vote
0answers
222 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
46 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
457 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 ...
1
vote
0answers
289 views

Map with custom tiles having uncommon EPSG

I've produced with mapnik my own tiles with EPSG:31256 on a shapefile. I've structured the tiles in a OSM-like tree: zoom/x/y.png, with zoom from 0 to 2 and, x y starting from 1: tiles ├── 0 │ ...
1
vote
0answers
64 views

New geographical point won't show on map

I did recently ask a question about how to add a new point to a PostGIS table. Now when I've got the new point in the table it should be visible on my map, but it isn't. I'm using Mapnik together ...
1
vote
0answers
111 views

Mapnik OGCServer doesn't work if theres no active internet connection

Didn't find anything similar so: I have a mapnik OGCServer on an ubuntu 12.04 virtual machine (vmware player) which works fine. The problem occurs when i disconnect all network connections, when ogc ...
1
vote
0answers
168 views

produce images with shapefiles and OpenStreetMap

I have a python file http://pastebin.com/jzwE6c6P which iterates over the features of a shapefile and renders a simple image by zooming to the bounding box of each feature. What I need is ...
1
vote
0answers
233 views

Mapnik: mapnik.has_pycairo() returns False. How to fix this on Windows for Python27?

I'm trying to modify rundemo.py (comes canned with Mapnik Windows binaries) to render output files at a higher resolution, but it seems I still have issues with my Mapnik-to-Cairo setup. I've got ...
1
vote
0answers
491 views

Tilecache + Mapnik + Apache generates incomplete tiles (missing layers)

I have TileCache + Mapnik working with a custom osm.xml stylesheet. When I run tilecache_http_server.py the tiles are served OK. But when I run TileCache under Apache (with mod_wsgi) I see incomplete ...
0
votes
0answers
19 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 ...
0
votes
0answers
39 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
29 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
55 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 ...
0
votes
0answers
30 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
0answers
25 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 ...
0
votes
0answers
31 views

Error in osm.xml while generating the output xml for tile server using generate_xml.py

I'm setting up my own tile server using PostGreSQL, PostGIS extension, mapnik and osm2pgsql. While trying to generate the xml by using the command: E:\>python generate_xml.py download_osm.xml ...
0
votes
0answers
50 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 ...
0
votes
0answers
12 views

More Mapnik Servers for serving a large area?

As you may recall, I had some problem with the Mapnik toolchain about serving the whole planet. I was thinking about this idea: if I divide the world in 4 macro-areas (like Cartesian quadrants on ...
0
votes
0answers
44 views

Windshaft + Postgres to read geojson

I am using Windshaft and trying to figure out how I can take a geojson text object from Postgres and have it rendered as a tile layer. I have tried the following query: sql: "select ...
0
votes
0answers
93 views

Mapnik / Renderd / mod_tile rendering too slow

I've a little problem showing map tiles. My website during development/testing was using OSM, but we will going to production, and we want to serve the tiles without using OSM server no more. Using ...
0
votes
0answers
26 views

OpenStreetMaps openstreetmap-carto XML error or Missing Data from osm2pgsql

I've successfully built a tile server using the documentation provided here: https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/ For my data, I obtained the north american ...