Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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/

2
votes
1answer
45 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
0answers
18 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
10 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
0answers
20 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
23 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
27 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
67 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
59 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
277 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
24 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
111 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
121 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
217 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
211 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
90 views

How to convert .yml to .mml file?

I want to use this style in my tile server. But I am using Carto for creating mapnik.xml. It says I need to supply a mml file to convert it to mapnik xml. Is there any way that I can convert a yml ...
0
votes
0answers
43 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
0answers
233 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 ...
0
votes
0answers
62 views

Points and animation not showing up on CartoVL JavaScript page

I'm trying to show my points and animation for CartoVL. I'm using a local Ubuntu installation as explained in https://cartodb.readthedocs.io/en/latest/install.html I am including the basic Carto / ...
1
vote
1answer
184 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
159 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
0answers
12 views

make queries on different databases in tilestache

I have 3 databases, each containing vectorial data. I want for each zoom level to fetch the appropriate vectorial data. So I have the following: "data": { "allowed origin": "*", ...
0
votes
1answer
32 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 ...
0
votes
0answers
8 views

Mapnik breaks symbolizers at the date line. How to fix it?

Mapnik breaks off that part of any symbolizer, which goes across the International Date Line. See the enclosed illustrations.   Is it possible to solve this problem?
1
vote
0answers
89 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
39 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
25 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
345 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 ...
0
votes
0answers
39 views

TileCache and Mapnik render blank ocean tile. How do you fix this and alternatives?

I have been toying around with TileCache, using mod_wsgi, Postgis, and Mapnik; however, I have run into two problems... I have gotten TileCache to serve tiles. However, these tiles are blank blue ...
1
vote
1answer
237 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
75 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
0answers
149 views

Render OpenTopoMap (or similar) on MapBox?

Is it possible to convert the OpenTopoMap mapnik XML file into something which can be used for rendering via the MapBox API? Perhaps convert to CartoCSS via MapBox Studio Classic? I am looking for a ...
0
votes
1answer
41 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
70 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
65 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
132 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
279 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
118 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
108 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 ...
0
votes
1answer
431 views

Error in Mapnik installation: “%1 is not a valid Win32 application.”

While installing Mapnik in Windows 10 64bit and with Python version 2.7.5(64bit) I have encountered this error: import mapnik Traceback (most recent call last): File "", line 1, in File ...
0
votes
1answer
185 views

Mapnik renders almost blank image when rendering 2 layers

From Python code I can get Mapnik to render this PNG image: And this one: But if I try to render both these layers (to render the dots on top of the basemap), then I get only this PNG - which is all ...
0
votes
1answer
311 views

Mapnik to reuse colors from geotiff when rendering png format

I am trying to make mapnik read this geotiff file and render it as a PNG file. Unfortunately all the colors from the geotiff file are not retained. The resulting PNG is completely blank. This is my ...
2
votes
1answer
61 views

Priority of street labels over amenity icons

OK, so I have a CartoCSS project. These are all of the stylesheets used (as described in my project.mml): "Stylesheet": [ "palette.mss", "base.mss", "roads.mss", "labels.mss", ...
1
vote
0answers
43 views

Mapnik - Preserve RGB value of transparent pixels

Currently generating PNG raster tiles (mapnik) with custom style where I store one information (map_feature) by channel (rgba). Mapnik seems to multiply alpha with value of red, green or blue. I ...
1
vote
0answers
331 views

How to create a GIS map (web application) using OpenLayers 3 or 4? [closed]

I want to create a GIS map using TileCache, Mapnik, PostgreSQL-PostGIS in a Python-Django web application. var layer2 = new ol.layer.Tile({ source: new ol.source.OSM() }) map = new ol....
1
vote
0answers
81 views

OSM only label internal boundaries with Carto and Mapnik

Using the OSM workflow on switch2osm.org, we want to label all internal country boundaries but not external ones (coastlines). There are 3 ways we could think of: Is there any way to not show ...
1
vote
1answer
131 views

Dynamically change Mapnik XML without restarting renderd

I have multiple tables of data in my PostgreSQL database that have wkb_geometry columns used to generate layers. I would like to allow users to select which layers on a map they will see by accessing ...
1
vote
1answer
285 views

Show both label and icon for amenities using Carto CSS

I'm trying to style, e.g. museums, so that both their icon and their name shows up. However, there seems to be some conflict. Here's my - related - code: .points { ::tourism { [tourism = '...
0
votes
1answer
102 views

Post-processing CartoCSS layer by custom graphic algorithm

My goal: Inspired by Watercolor map created by Stamen Design I'm trying to create custom OSM based map tiles. In the article the Stamen Design guys describe the way of post-processing their tiles (...
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 ...
1
vote
0answers
329 views

Google Maps API setTilt(45) on custom tile layer

With google maps api, I'm trying to put a custom XYZ service on top of google satellite 3d view (45°). Is it possible? I have a mapnik stack server serving a custom tile XYZ service (transparent ...