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

How to put a watermark at Mapnik tiles?

Maybe I have to add new layer with my PNG watermark at XML style, but how? I already tried to change somthing at XML, but don't understand how to add one global layer.
0
votes
1answer
11 views

Incorrect tiles from a shapefile are generated by mapnik

I used mapnik_node_tile_server to generate tiles from a shapefile created by gdal_contour. The tile generation function is: function fetchTile(layer, z, x, y, callback) { var map = new mapnik.Map(...
0
votes
0answers
15 views

Mapnik datasource error connection

I don't know why doesn't render a vector tile. In localhost works perfectly but when I'm working with my production server doesn't work. I have a route to test if my server tile is connected with ...
3
votes
0answers
22 views

Mapnik: Cannot get markers to overlap

I'm using the Natural Earth shapefile to generate maps of ethnographic data. For every location where I have evidence of (for example) whether men or women had the job of brewing beer, I want to show ...
1
vote
1answer
16 views

How can insert properties on a vector tile

I am trying to set up a web server in Node.js that serves vector tiles to be displayed in a browser using MapboxGL JS. The data for the vector tiles is stored in a Postgressql database with PostGIS ...
0
votes
0answers
69 views

Import error with Mapnik in Anaconda 2

I'm using Anaconda to write geographic programs, so I need to use packages like Mapnik. After installing Mapnik in Anaconda2, it started to error. First about Mapnik itself and after do some actions ...
0
votes
0answers
26 views

How to simulate way_pixels rules in GeoServer like in Mapnik?

Openstreetmap-carto project.mml have a queries like this: way_area/NULLIF(POW(!scale_denominator!*0.001*0.28,2),0) AS way_pixels Do I understand correctly that way_pixels just shows how many times ...
2
votes
0answers
31 views

Mapnik XML mapfile projection of multiply layers [closed]

How to apply a multiply layer with Mapnik from EPSG:4326 TIFFs to EPSG:3875 projected tiles? I have two TIFF files, one containing the color-relief and the other the slope-shade (generated with GDAL, ...
0
votes
1answer
50 views

Local OSM Tile Server not rendering

I searched this issue in other topics but only found outdated topics with previous versions of Ubuntu. I'm using Ubuntu 18.04 in my laptop and I'm following the tutorial available at https://...
3
votes
1answer
92 views

mapnik offline maps using generate_tiles_multiprocess.py

I've been working for a couple of days to get offline map tiles working for use in JXMapviewer2 but I am having trouble when using generate_tiles_multiprocess.py to process the tiles. My intention is ...
0
votes
0answers
29 views

Add the OpenSeaMap styles to the OSM Tile Server

I've installed my own OSM Tile Server from here: https://github.com/Overv/openstreetmap-tile-server Working very sweet and nice! Now my goal is to add the OpenSeaMap nautical styles from here: ...
0
votes
1answer
18 views

Mapnik: Can you draw outline/ strokes on Polygon geometries?

My data consists of a lot of polygons which need to be outlined. Unfortunately I cannot find any option on the PolygonSymbolizer - and my LineSymbolizer seems to be without effect. Here is my ...
1
vote
0answers
15 views

Overlapping polygons produce rendering artifacts a low zoom [duplicate]

I have duplicated this problem in both QGIS and mapnik. For this question, I will show the problem using QGIS. I have imported heightmap images along a coastal area. I then added an overlay layer ...
2
votes
1answer
92 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
0answers
60 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
53 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
2answers
79 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. ...
1
vote
0answers
35 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 ...
2
votes
1answer
158 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 ...
0
votes
1answer
133 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 '...
0
votes
0answers
34 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"&...
0
votes
1answer
187 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 ...
2
votes
1answer
58 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> ...
0
votes
0answers
39 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") ...
0
votes
1answer
128 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; ...
1
vote
0answers
106 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
1answer
355 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
1answer
36 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
0answers
194 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
214 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
402 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 ...
3
votes
1answer
348 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 ...
1
vote
1answer
75 views

Dynamically rendering tiles in mapnik [closed]

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
0answers
331 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 ...
1
vote
1answer
267 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
1answer
272 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
40 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 ...
2
votes
1answer
219 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
49 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
35 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 ...
2
votes
0answers
577 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
503 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 ...
1
vote
0answers
101 views

Cannot generate mapnik tiles on Fedora

I have gone through the following tutorial to start a map server on Fedora 28: https://wiki.openstreetmap.org/wiki/Mapnik/Installation_on_Fedora_18 Although the tutorial is a bit old, most of the ...
0
votes
1answer
65 views

MarkerSymbolizer of MultiLine not orientated in line direction (Mapnik, Mapbox)

What I want: drawing orientated arrows on one-directional streets What I tried so far: MarkerSymbolizer: However, the arrows are all looking towards the "east" (right of the screen) instead of the ...
1
vote
1answer
129 views

Unresolved externals on simple mapnik c++ application

I'm attempting to write a simple win32 x64 console application in c++ using VS 2017 that uses the Mapnik v3.0.9 SDK to render a png from a pgsql database. All I've done so far is include a reference ...
1
vote
0answers
91 views

Creating tiles in the mapon from geojson

I generate a tile from postgis. I'm trying to superimpose data from geojson. But when data is superimposed, an error occurs: Mapnik LOG> 2018-02-12 14:33:14: feature_style_processor: Style=...
4
votes
1answer
165 views

OSM2PGSQL - Openstreetmap Tiles showing no detail at certain levels

I recently built myself a Map server using this guide: https://www.linuxbabe.com/linux-server/openstreetmap-tile-server-ubuntu-16-04 This has worked really well to an extent. I have however noticed ...
3
votes
2answers
373 views

Is there an OSM Mapnik Gray Basemap in English

I have found a basemap, the OSM (Mapnik SW) map, that I would like to incorporate into a project in ArcMap. It has a great blend of gray scale methods to denote urban areas, terrain, and water ...
1
vote
1answer
166 views

How can I project this data correctly in node-mapnik?

I'm trying to use node-mapnik to rasterize vector data into a transparent image and overlay it onto a basemap. I'm generating OpenStreetMap basemaps with tile-stitch. That's working well. I'm then ...
0
votes
1answer
139 views

Mapnik + TileStache not displaying map properly

I have been running into an issue with getting my map displayed using Mapnik XML stylesheets with TileStache. When i am using MBTiles format, the map is displayed perfectly however when i switch over ...