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

0
votes
0answers
14 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
50 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
26 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
12 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
23 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
26 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
43 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
86 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
33 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
24 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
65 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
33 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
24 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
57 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
94 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
35 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
122 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
46 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
50 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
46 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
121 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
79 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
63 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
115 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
160 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
90 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
38 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
54 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
457 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
31 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
137 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
40 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
18 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
88 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
102 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"?> ...
2
votes
1answer
53 views

Python Geospatial Development Error

I'm working through some examples in the Python Geospatial Development book by Erik Westra. On page 439, about setting up a tile map server, he gives the following code for calculating a bounding ...
0
votes
0answers
113 views

Where can i get OSM water polygon for lower zoom level?

i wants ocean (water polygons shapefile) for generating vector tile map. Initially tested using shape file openstreetmapdata it works fine. But at low zoom level i produce pbf file with higher size. ...
0
votes
1answer
26 views

return state of point from postgis / mapnik pgsql db

I realize that I can confirm whether or not a point lies within a state like this: SELECT ST_Contains(poly,pt) As testr FROM ( SELECT ...
1
vote
1answer
111 views

how to make mapnik style raster, not just render as solid color

I have set up Mapnik with mod_tile and renderd. I replaced the default osm.xml file with my own xml file, which is shown below. My problem is that all images are being created as solid blue tiles as ...
0
votes
0answers
105 views

use mapnik to read from multiple geotiffs

I set up Mapnik to custom-render a GeoTiff file. python and xml files to do so were taken from a github mapnik example, and the successful image output is a rainbow-esque .png from the original .tif. ...
0
votes
1answer
27 views

What is a purpose of parameter 'separater' in mapnik csv plugin datasource?

What is the purpose of the parameter 'separater' in the Mapnik CSV plugin DataSource Example of the code: parameters p; p["type"]="csv"; p["inline"]=quotedStr; ...
0
votes
0answers
34 views

How I use point symbolizer for styling in mapnik c++ source code?

I have tried point symbolizer for styling in c++ mapnik source code ,the given code line : roads2_rule_11.append(point_symbolizer("/home/razaliaqat/raza.jpg")); But it is giving an error given ...
1
vote
0answers
30 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 ...
0
votes
0answers
17 views

Pass Data as a String Using Mapnik CVS Plugin

I am new in mapnik and c++ I need Help. I have a code written in C++ that read a data using postGis .The Sample Code is given Below: parameters p; p["type"]="postgis"; ...
1
vote
1answer
39 views

Mapnik tiles have latitude distortion, projection issue?

I'm trying to work out a kink in setting up mapnik-node. My geos are in postgis, and I allllmost have them rendering properly, but my GIS experience is lacking so I can't seem to determine why this ...
2
votes
1answer
206 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 ...
2
votes
0answers
84 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
76 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 : ...
3
votes
2answers
146 views

Python, OGR and Mapnik: Possibility of passing existing ogr.Open() datasource into Mapnik without using mapnik.Ogr()?

Okay, I'm trying to modify create_utfgrids.py to use an OGR VRT file, rather than shapefiles, and while the OGR stuff in this code responds to the VRT, the Mapnik stuff is not. It's failing with.. ...