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/

1
vote
1answer
68 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 -...
1
vote
1answer
223 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 ...
2
votes
1answer
22 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
1answer
102 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 ...
1
vote
1answer
189 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
0answers
276 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
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") ...
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
201 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
55 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
277 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
262 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
52 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
322 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
23 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
200 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
486 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
94 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
111 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
199 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
594 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
87 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
37 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 ...
0
votes
0answers
58 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
177 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
223 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
150 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
31 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
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": "*", ...
1
vote
1answer
109 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 ...
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
83 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
63 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
37 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
22 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
515 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.
0
votes
0answers
36 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
79 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....
0
votes
1answer
177 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
220 views

Navigate through non-geographical maps

I'd need to navigate through and mark non-geographical maps. I used Leaflet.js example to do that (http://leafletjs.com/examples/crs-simple/crs-simple.html), and it's working, but my images would be ...
1
vote
1answer
95 views

I have a shapefile with polygons/areas, and a point (lat,lon). How to figure out which polygon/area this point belongs to?

I have a shapefile with areas (eg. a simple world map with countries - polygons, epsg:4326). I also have a point (lat, lon coordinates). What's the simplest/easiest way to figure out in which ...
1
vote
0answers
71 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 ...
3
votes
2answers
139 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
144 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
40 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
170 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
1answer
199 views

Render low zoom level with mapnik

I am trying to render the MapQuest Open style at zoom level 3 for the whole world using Mapnik, at a higher resolution than available online. I have downloaded mapnik, and the MapQuest Open style. ...
0
votes
1answer
274 views

change color of loading tile

I have my osm server with mapnik, it works fine but now I want to change the background color( black to white), how can I do that? Is it a server or client configuration?