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

3
votes
0answers
168 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
443 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
53 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
44 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
173 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
223 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) ...
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
35 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
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 ...
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 ...
1
vote
0answers
47 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 ...
1
vote
0answers
59 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
97 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
139 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
103 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
35 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
95 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 ...
1
vote
0answers
367 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
187 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
62 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
103 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
148 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
216 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
454 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
15 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
30 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
66 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
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
0answers
26 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
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 ...
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"; ...
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 ...
0
votes
0answers
40 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
65 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 ...
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
0answers
43 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 ...
0
votes
0answers
21 views

Tilemill logs - Is there a way to remove [tilemill] prefix

In the Tilemill logs, is there a way to remove the [tilemill] prefix of every line? I'm trying to add the timestamp of each log line in the tilemill logs. I can easily do it with log-prefix module. I ...
0
votes
0answers
70 views

Tilemill reversing inner and outer in multipolygon relations

Tilemill renders multipolygon relation (a middle part of a big lake (ID 2101875)) incorrectly: Multipolygon relations (inner/outer) seems to render mirror-like, compare: an island in OpenStreetMap ...
0
votes
0answers
37 views

Mapnik projection for rectangular coordinates

I am trying to use mapnik to render indoor floorplans and am having a little trouble figuring out the SRS projection. I have geoJSON that represents the floorplan. The coordinates are just cartesian ...
0
votes
0answers
119 views

Geojson not rendered with Mapnik

I am trying to generate a tile with Mapnik with a GeoJSON. The stylesheet.xml with the part to render the GeoJSON is the following: <Style name="cities" filter-mode="first"> <Rule> ...
0
votes
0answers
112 views

Mapnik XML Stylesheet in QGIS

Is it possible to use a Mapnik XML Stylesheet to style/render data in QGIS? I know there is Quantumnik to generate Mapnik XML Stylesheets. Yet I am wondering if it is possible to import a Mapnik XML ...
0
votes
0answers
109 views

OGCServer as WMS application in Apache

I'm a really new in Mapnik OGC Server. Could you please help me with configuring OGCServer as WMS Server on Apache2? I use Windows platform and have already configured Mapnik,Python27. I've also ...
0
votes
0answers
186 views

Mapnik: GeoTIFF flipped (mirrored vertically)

I generated a GeoTiff using the QGIS HeatMap plugin and want to render it on top of some OSM data. The problem is that the raster gets rendered upside-down in the output. Can someone point me in the ...
0
votes
0answers
115 views

How to convert .shp file to zip file with mapnik?

I am creating android application for campus indoor map. I research so much think.I decide use osmdroid. I write here what I have done 1) I draw indoor map with JOSM. 2) I convert file.osm file to ...
0
votes
0answers
48 views

Insert a Mapnik Tile Between Google Base Map and Label Image

I'm currently using Mapnik to create choropleth tiles of regions in Brazil via node-mapnik by using the g.connector from Wax as in the code below and it works well. var map = new ...
0
votes
0answers
86 views

tilecache config for generation mapnik tile

i have a xml stylesheet like below map: <Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" ...
0
votes
0answers
105 views

command line alternates for softwares like tilemill, maptiler

tilemill works just fine for my needs but , i want to do the whole process on command line . since new geotiff files are going to be added in my project, and i need to automate this whole process . ...
0
votes
0answers
43 views

Mapnik TextSymbolizer not randomly missing out text

I have an issue with mapnik 2.1.0-pre. Mapnik skips labeling polygons with the TextSymbolizer attribute. Is there any particular reason this could happen? text_symbolizer = ...