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
1answer
22 views

Styling map and generating tiles for Mapnik and/or GeoServer?

I have almost 5 shapefile layers(contains point,line,polygon), now I want to style different layers, for example, different layers, different attributes of the same layer will rendered with different ...
2
votes
0answers
13 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 ...
0
votes
0answers
8 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
1answer
33 views

Create offline map for android

I am using mapsforge but I have problem with street names.I would like to develop an offline vector map for a city like osmAnd offline map or an offline vector map in mapnik format.Could you please ...
0
votes
0answers
11 views

Using custom mapbox styles with mapnik

I created my own tile server according to this instruction and my own layout/style with mapbox. Following the mentioned instruction I currently use OSM Bright as layout/style. In short: How can I use ...
0
votes
1answer
31 views

Displaying raster tiles from OSM data stored in a postgis server

I have been recently tasked with setting up a raster tile server that serves tiles from data pulled from a postgis store. I have managed to get a vector tile server up and running but I'm stuck on ...
0
votes
0answers
10 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
31 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
30 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 ...
1
vote
1answer
32 views

Building political world wall map for print? [closed]

I'm trying to create a political wall map. I've settled on the Natural Earth projection and thus have had problems with quite a few tools that don't support the projection (Tilemill, QGIS, Maperitive ...
0
votes
0answers
18 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 ...
0
votes
1answer
23 views

renderd not rendering

I followed the instructions manually building a tile server and ran in some problems. When entering http://localhost:8080/osm_tiles/0/0/0.png renderd shows this: renderd[263]: DEBUG: Got incoming ...
1
vote
0answers
13 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 ...
2
votes
1answer
40 views

Max Zoom Level in Mapnik

A question regarding mapnik: Is it possible to configure a custom max. zoom level? I am trying to find a way to get mapnik to render tiles for zoom levels 20+ (till 28 would be nice). PS: The ...
0
votes
0answers
15 views

Draw only the portion of a border shared by two features?

I need to draw two countries' shared border in a style distinct from the other borders on my map. I've come up with some very hacky ways that kind of work, but is there a right way to do this? I'm ...
1
vote
0answers
68 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
1answer
33 views

Removing Dashed Borders of CartoDB Polygons

I've created a CartoDB map with a bunch of different multipolygons and it is displayed with a CartoCSS color ramp I created. However I've noticed that I cannot rid my map of the dashed lines that ...
0
votes
0answers
19 views

Keeping file paths when converting cartocss to mapnik style

I am using Tilemill to edit a map style (mss) which is then exported for mapnik (xml). The problem is that although I specify the full path to my layer sources (e.g. shapefiles) when I export the ...
0
votes
0answers
27 views

icu4c + Mapnik - I want to switch icu4c from 55.1 to 54.1 to get Mapnik to work

What is the best way to downgrade icu4c from 55.1 to 54.1 on Mac OS X Mavericks. I tried brew switch icu4c 54.1 and failed. Reason to switch back to 54.1 I am trying to setup and use Mapnik. I was ...
1
vote
1answer
32 views

I have a shapefile with polygons/areas, and a point (lat,lon). How to figure out which polygon/area this point belongs to?

I have a shapefile with areas (eg. a simple world map with countries - polygons, epsg:4326). I also have a point (lat, lon coordinates). What's the simplest/easiest way to figure out in which ...
3
votes
0answers
51 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. ...
2
votes
3answers
108 views

Generating vector tiles with Mapnik

Is it possible to generate Vector Tiles using the 2.2.0 Mapnik release? If so, please give a sample configuration or point to an example.
1
vote
0answers
39 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
38 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 ...
0
votes
1answer
104 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 ...
2
votes
0answers
46 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 ...
0
votes
0answers
26 views

Rendered tiles look stretched

I've setup a tile rendering system based on Mapnik + PostGIS. When I open the data with QGis directly from PostGIS it looks fine; but when I attempt to generate tiles with Mapnik they look stretched ...
1
vote
0answers
71 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
2answers
122 views

Converting from Lat/Lon (WGS84) to Mercator (UTM)

i am trying to render a map with Mapnik via Python. Therefore I first created a style file (as XML) and my code looks so far: m = mapnik.Map(400, 400) style = 'osm.xml' mapnik.load_map(m, style) box ...
1
vote
0answers
46 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 ...
0
votes
2answers
181 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 ...
0
votes
0answers
51 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
59 views

CartoCSS: labels along inside of polygon boundary

I'm using CartoCSS to render maps that include large polygons (like national parks). At higher zoom levels I want labels along the inside of the polygon boundaries, like in OpenStreetMap: I ...
1
vote
1answer
54 views

Unable to find either renderd.py or generate_tiles.py

We created a Ubuntu 14.04.1 LTS x64 OSM tile server from packages using the excellent instructions provided by http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/ The tile ...
2
votes
1answer
144 views

Error in Windshaft-cartodb installation step of CartoDb

I am trying to install cartodb on ubuntu 12.04. I have done all the steps mentioned on https://github.com/CartoDB/cartodb and I am stuck at the Install Windshaft-cartodb Step. The following steps ...
2
votes
0answers
82 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 ...
4
votes
1answer
82 views

Rendering two shapes for point, and overlapping, using Mapnik?

I'm using Mapnik to render a list of points; for each of these points I want to render a plain round shape, and an icon inside the shape, using two different SVGs. To that end, I wrote a CartoCSS ...
3
votes
1answer
133 views

artifacts in SRTM contour layers processed with GDAL tools and rendered with mapnik

Here is my workflow for importing individual SRTM tiles into postgis using the GDAL utils and rendering a png using mapnik: gdal_fillnodata.py -srcnodata -32768 gdal_contour -i 10 -a ele -snodata ...
2
votes
1answer
185 views

GeoServer WMS / WMTS with Mapnik rendering backend

I am going to migrate our current TileCache WMS-T server to a current and up to date GeoServer / GeoWebCache product. We use Mapnik as our rendering back end and I would love to keep it this way. I ...
1
vote
1answer
28 views

why am I getting a horizontal solid strip when projecting large image?

I am using Mapnik to create tiles on a tile server. I'm depicting sea level rise in North America using SRTM data, and it works fine in most of the continent. However, when zoomed out in my browser ...
0
votes
1answer
109 views

Pattern styled polygons in Tilemill

I'm just learning CartoCSS with Tilemill. I've got a really simple requirement for styling a polygon but cannot find any hint nowhere. What is the code for styling simple polygon fills e.g. can be ...
0
votes
0answers
41 views

postgis & mapnik “column ”CLASS“ does not exist”

I've piped an osm map of greece into postgis with osm2pgsql and was playing around with C++ mapnik sample code giving "planet_osm_polygon" as the source table: parameters p0; p0["type"] = ...
0
votes
0answers
59 views

Why does a (relatively) small .CSV file break the Mapnik CSV plugin?

I have an app showing a map of N. America, and I want to let users toggle a layer displaying airports. The map needs to be available without an Internet connection, so I'm hosting the tiles and ...
2
votes
0answers
584 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 + ...
0
votes
1answer
32 views

Tiles are missing when request from Openlayer2

I have configured a Tile server and i followed the Link for OSM Tile server from switch2osm everything is fine, except when i tried to get the tiles using Openlayers its not serving. But if i give ...
-1
votes
2answers
179 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 ...
1
vote
0answers
41 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 ...
0
votes
1answer
100 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
130 views

how to get mapnik to render tiles from xml mapfile

I have Mapnik set up on Ubuntu. Tirex directs rendering requests from an OpenLayers client browser to Mapnik, which is set up to use the xml file below. <?xml version="1.0" encoding="utf-8"?> ...