Questions tagged [mapnik]

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/

Filter by
Sorted by
Tagged with
-1
votes
0answers
164 views

Mapnik TextSymbolizer not randomly missing out text? [on hold]

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 = mapnik.TextSymbolizer(...
2
votes
1answer
36 views

Prerendering OSM tiles with CartoCSS?

I've set up a PostGIS database and imported my map data. Then I ran render_list to render my tiles. Serving them through mod-tile works just fine. However, the files on my HDD are *.meta files and ...
1
vote
1answer
77 views

Undefined reference to mapnik::hit_grid from C++ compile?

I am trying to compile a c++ mapnik program with code in question being: mapnik::grid my_grid(256, 256, "id"); and the command to compile being: g++ grid_gen.cpp -std=c++11 -lmapnik -lcairo -...
3
votes
3answers
2k 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
1answer
322 views

Serving OSM tiles - mod_tile/renderd/postgresql problem: I sometimes get 404 Not Found

When I request tiles I get sometimes 404 Not Found. Usually, if I request the same tile again it appears alright (with 200 OK). This is what I found in renderd logs: renderd[734]: An error occurred ...
6
votes
1answer
8k views

Applying Mapnik style for OpenStreetMap data in ArcMap? [duplicate]

I am loading OpenStreetMap vector data into ArcMap (using the Download and Symbolize OSM Data tool of ArcGIS Editor for OpenStreetMap 1.1). I'm sure there must be a simple way to apply the style/...
1
vote
1answer
38 views

TileStache Internal Server Error

I was installing TileStache and and followed all the necessary steps, Upon running the tilestache-server.py file, It starts the server at http://127.0.0.1:8080/. And opening this into my browser gives ...
1
vote
0answers
32 views

Mapnik Slow tile generation with i9-990K, 64GB ram and NVME SSD Database

I have setup an OSM tile server following the guide at: https://switch2osm.org/manually-building-a-tile-server-18-04-lts and https://github.com/giggls/openstreetmap-carto-de. My database is stored on ...
1
vote
1answer
219 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 ...
1
vote
2answers
49 views

Split long lines in PostGIS

I would like to render contours using Mapnik. The problem is that some contours are very long which makes rendering too slow and so I decided to spling long contours to multiple smaller segments. ...
0
votes
1answer
44 views

How to add a custom layer to OSM data in switch2osm?

I'm new to switch2osm and I've created an OSM Tile Server with switch2osm on Ubuntu 16.04 LTS. It uses Apache, Mod_tile, renderd and Mapnik to render tiles. It uses PostgreSQL as DBMS and osm2pgsql to ...
0
votes
1answer
54 views

Using renderd on OSM tile server?

I followed this tutorial and have some troubles. When I restart and get status of the renderd service, I get the following error : renderd[8162]: An error occurred while loading the map layer '...
2
votes
1answer
90 views

Improving Mapnik render time

I'm adding polylines (elevation curves) to a world map. Said polylines are stored in a PostgreSQL database from gdal_contour tool. The geometry columns (LineString, 3857) has a GIST index and a ...
1
vote
0answers
21 views

CentOS 7, Mapnik, and Tilestache: Seems like image assets are ignored by Mapnik's point/pattern symbolizers

[Update 6.6.2019] Ok...new detail. I checked a different Apache error log and discovered that it's littered with these errors, generically corresponding to.. failed to allocate png_ptr Actual ...
4
votes
1answer
975 views

Rendering tm2 projects? [closed]

What are the options for rendering tm2 projects? As far as I know the open source Mapbox tm2 projects have proprietary data sources (like OSM Bright 2), thus they are of little use, but some other ...
1
vote
1answer
111 views

Is it possible with mapnik/cartocss to draw transparent land?

I've tried to put a transparent background, but then, the seas are transparent too, and i don't want that. I just want transparent land, and blue seas ...
3
votes
1answer
274 views

Mapnik + postgresql + python = Segmentation fault

I would like to render subset of OpenStreetMap features over big area into one image, no sub-tiles. System: Devuan ascii 64bit (alike Debian 9), 64GB RAM, headless (SSH only) There is what I already ...
0
votes
0answers
21 views

Add PNG as a layer in Mapnik

I'm playing around with Mapnik and trying to add a PNG image over a map created from an XML file. This is my XML file: <Map background-color="white" minimum-version="0.7.2" srs="+init=epsg:3395"&...
1
vote
2answers
925 views

Installing OpenStreetMap Tile Server with Custom Projection Systems?

I am trying to install the OSM tile server on a local machine with a custom projection system like epsg:3573. For the server installation I followed this tutorial (http://switch2osm.org/serving-tiles/...
2
votes
1answer
36 views

Mapnik LineSymbolizer for overlaping lines

I'm creating a map with Mapnik, and I have some trouble to correctly render overlapping lines. Fot instance let's consider this piece of XML: <Style name="ferry-routes"> <Rule> ...
1
vote
0answers
290 views

Mapnik PGRaster Plugin creating 8x8 tiles with visible boundaries [closed]

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 ...
0
votes
0answers
31 views

Connect Mapnik to MSSQL

I want to connect Mapnik to MSSQL Spatial SDE, but I don't know how to do this. import mapnik m = mapnik.Map(256,256) mapnik.load_map(m, "test.xml") m.zoom_all() mapnik.render_to_file(m, "2.png") ...
4
votes
2answers
3k 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 ...
4
votes
1answer
213 views

Mapnik and GeoTIFF tiling optimization

If I am using one extra large GeoTiff as datasource. Does Mapnik take advantage of tiled structure of source file (its a GeoTiff with internal tile structure) when rendering tiles? Which driver/plugin ...
0
votes
1answer
86 views

Map tile not rendered on node-mapnik?

const mapnik = require('mapnik'); const sphericalmercator = require('@mapbox/sphericalmercator'); mapnik.register_default_fonts(); mapnik.register_default_input_plugins(); const TILE_HEIGHT = 256; ...
4
votes
1answer
305 views

Density Mapping with mapnik

I have a database with millions of points so I'm aggregating data returned from the source in the form of (lat,lon, total_count). Where lat/lon is the centroid of a geohash and total_count is the ...
2
votes
1answer
324 views

Periodically updating OpenStreetMap tile server to keep it up to date?

I have successfully built my tile server by following this link (https://switch2osm.org/manually-building-a-tile-server-18-04-lts/) and open layers for viewing the tiles. How do I keep automate the ...
1
vote
0answers
80 views

Build a tile server using MySQL as backend

I need to set up a tile server using MySQL but cannot find any documentation for it. I have done it with Postgres by following this link and it works fine. I understand that after downloading the ...
2
votes
0answers
443 views

Setup mapnik: tile generation very slow

I've setup a Mapnik tileserver with this steps: https://switch2osm.org/manually-building-a-tile-server-18-04-lts/ This are the specs of my server: OS: Ubuntu 18.04 LTS 8 vcpu's 28 GB RAM I've ...
1
vote
1answer
27 views

Mapnik upsampled raster isn't smooth

I'm using Mapnik to show a map with hillshading. It works well when displaying it up to my tiff's native resolution and a little bit above, for instance at zoom 13 (dataset is SRTM30): But then if I ...
2
votes
1answer
293 views

Ubuntu: Updating Mapnik from 2.2.0 to 3.x, complications?

I'm wanting to upgrade Mapnik on a production system from 2.2.0 to 3.x to take advantage of improvements to data-driven rendering. Fortunately the install instructions for Ubuntu have been updated ...
8
votes
1answer
502 views

Generate static heat maps server side?

I've been searching for a way to generate server side static maps using Python (or any other languages, doesn't matter). I can create the maps I want with QGIS (and they look really great) but I don'...
2
votes
0answers
145 views

Mapnik / OSM data not rendering correctly

I was wondering if someone could help me with a problem that I'm having rendering some maps with mapnik and OSM data. I'm imported the Australia OSM data from geofabrik into postgis, using osm2pgsql, ...
2
votes
1answer
160 views

GDAL reprojection 4326 to 3857 creates gap

I have an EPSG:4326 tif covering the world that I need to reproject to EPSG:3857 in order to use it with Mapnik to create a map. When displaying the original tif and leaving Mapnik doing the ...
2
votes
1answer
205 views

Duplicated place names when rendering tiles with mapnik and mod_tile

So I am trying to render all the tiles for the state of Florida with the file generate_tiles.py that came with mapnik. The tiles are rendering, but erroneously including multiple city names (see below)...
2
votes
2answers
2k views

Renderd outputs “failed to initialize projection 4326”

I'm setting up a tile server using the guide provided here. I have everything set up. proj4 is installed in version 4.8.0. The espg file is existant, I ran an xmllint over my xml style file without ...
3
votes
1answer
714 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
47 views

Dynamically rendering tiles in mapnik

I am working on a mapping project on an embedded system (~1 Ghz, 512MB RAM, 2GB flash storage). It is not feasible to pre-render all of the tiles and setup a tile server. Instead, I was planning to ...
1
vote
1answer
228 views

Serving multiple styles openstreetmap-carto(4.x versions) and osm-bright from tile server?

I have followed this link to implement serving multiple tile styles from tile server. It says that I just need to update .xml style file path in renderd.conf file. But the openstreetmap carto recent 4....
1
vote
0answers
266 views

How can I render custom google maps tiles with mapnik?

I'm currently developing my own little GIS service, that displays custom computed information on a google map. As you can see, I'm loading a custom tile overlay, where I renderd the information in a ...
4
votes
2answers
2k views

Serving multiple styles from tile server

I installed an OSM Mapnik tile server (according to the switch2osm documentation). Now, i'd like to serve tiles in different styles from the same server. Is this somehow possible?
1
vote
1answer
202 views

Is it mandatory to specify --style argument and --tag-transform-script in osm2pgsql query for importing .pbf file?

I am trying to build a tile server that serves tiles of multiple styles(osm and osm-bright). I have followed this link for implementing this. But here I found that osm2pgsql query for importing .pdf ...
0
votes
1answer
36 views

Do not display specific map feature with CartoCSS

I have built an OpenStreetMap tile server following this guide and everything seems to work fine. Now I want to customize the look of the generated tiles, and I started with something I tought it was ...
1
vote
1answer
128 views

Problem with fonts in Mapnik

I am using version 3.0.12 , I have made an XML file and I am using Arial Black and Arial Bold fonts but mapnik was not rendering those fonts. So , I changed the fonts to DejaVu Sans Book and then all ...
1
vote
0answers
135 views

Drawing polygon border on inside only in Mapnik?

I must draw a boundary of a natural reserve area in mapnik so that it looks like this: It is a partially opaque green polygon with a wide line border (also partially opaque) on the inside of the said ...
0
votes
1answer
64 views

Labelling left and right names on a line, in a .mss file?

I am currently working with project.mml and associated .mss files. I am looking at replacing OSM admin labels with a secondary source and I am wondering how Carto does the labeling along the lines ...
0
votes
1answer
43 views

Wide borders look weird for small polygons in Mapnik

I am experiencing this kind of visual defects for small polygons in Mapnik. These, in particular, are the small islands in the Pacific. As you see, instead of being uniform and nice, the borders have ...
0
votes
0answers
28 views

Is export of QGIS layer styles to mapnik possible? [duplicate]

Is it possible to export layer styles to mapnik xml from QGIS? As I understand it, it used to be possible once by means of quantumnik plug-in, which is discontinued now. I see this issue has already ...
5
votes
1answer
537 views

Exporting 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.
1
vote
1answer
86 views

polytiles.py not showing large areas of water with osm carto style

I've used polytiles.py with the old XML OSM style to generate tiles from the GB pbf and it worked fine. However, when I import the PBF into the db with the openstreetmap-carto style and use polytiles....