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
12 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
20 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
35 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
56 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
17 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
61 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 ...
1
vote
0answers
39 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
24 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
25 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
16 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
32 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 ...
0
votes
0answers
75 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
26 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
36 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
28 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
15 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
34 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
50 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
45 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
55 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
18 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
29 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
31 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
15 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
12 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
20 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
14 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
33 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 ...
1
vote
0answers
54 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 ...
1
vote
0answers
30 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
45 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
77 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.. ...
1
vote
1answer
35 views

How can i set up the “own OSM” for own maps, having no relation to the current real spacial photos

For some needs we need an OSM-style map displaying the area before the reservoir was constructed and thus displaying the historical shore line. There are some historical aerial photos (not provided by ...
0
votes
0answers
34 views

Mod Tile Cache Size

I am using Mod Tile, Renderd and Mapnik to creat a Tile Server. My question here is, does mod_tile have specific limits for the cache size? If yes, where can it be configured. And what mechanism it ...
2
votes
1answer
67 views

Generate MBTiles from xml

I need to generate hundreds of MBTiles from different shapefiles and same styles, so I created a xml from tilemill with a single shapefile and styling, using python landez library to generate MBTiles ...
0
votes
1answer
82 views

Create Georeferenced Raster For JPEG file with Mapnik Python

I am able to use Mapnik generate_image.py to generate image with a BBOX and projection. Also, I have added a python script to generate a JGW file. But to completely georeference the generated image. ...
0
votes
1answer
253 views

Download mapbox default style as tiles

I need to have the tiles of a small city as PNGs. The style should be the same as in https://www.mapbox.com/editor/? Can I export the map there for a certain bounding box to tiles (or mbtiles)? I have ...
3
votes
1answer
323 views

Why aren't Mapbox vector tiles rendered in the browser?

Would it be technically possible to have Mapbox's compact vector tile format sent to the client (instead of PNG tiles), then rendered inside the browser with JS code? Second question: when using ...
2
votes
1answer
66 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
0answers
41 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 ...
0
votes
0answers
68 views

How to generate map tiles with TileStache and a custom projection

I would like to generate my own map tiles using TileStache and a custom projection. I have been struggling with this for quite some time and am hoping I can get some advice to get the tiles to ...
1
vote
0answers
60 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
101 views

Rendering points and polygons with Mapnik

I've tried to render a few maps in Mapnik and I have a little problem. I want to render a map that contains two layers: point and polygon. I've used this script: import mapnik rule = mapnik.Rule() ...
1
vote
0answers
147 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 ...
0
votes
0answers
29 views

How to generate tiles for EPSG:3413 from shapefiles

I want to make tiles at EPSG:3413 projection from coastline shapefiles provided by naturalearthdata. How to do it? I converted shapefiles to 3413 via ogr2ogr, imported it to mapnik, set ...
0
votes
1answer
30 views

Custom projection with mapnik

I would like to superimpose openstreetmap data over a raster image, using mapnik. My problem is that this image is not in a projection being defined by a SRS, I have some non-linear algorithm to run ...
3
votes
3answers
277 views

Offline Map Service with Mapnik and Leaflet

I'm relatively new to GIS, so I hope my asking doesn't appear to be ignorant in any way. I currently work on an offline map service solution for usage in areas without internet connection. For that ...
2
votes
1answer
347 views

Mapnik + OpenStreetMap + Shapefile with Raster Images + Mod Tile + PostGIS

I am new to GIS. I have a Shapefile (.shp, .shx and .pbf). The .pbf file contains path to PNG files located on my machine only. I was able to save the Shp data to PostGis via Shape2Gis tool. Now ...
1
vote
1answer
100 views

How to render tiles from kml file

I'm trying to render tiles out of a KML file. Normally, I'd render tiles out of an planet.osm extract. For example, I'd select a tag using osmosis and then process it with osm2pgsql. Then I'd ...
0
votes
0answers
44 views

tilestache wms layer in qgis and open layer rendered layer

I have setup tilestache and styled a map for using mapnik xml and I can call on the url in a web browser, how can I call the url for a wms layer in QGIS or is there a way to view mapnik xml in qgis. I ...