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/

5
votes
0answers
650 views

Creating dynamically filtered layers using Tilestache/Mapnik?

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) dimensions,...
4
votes
0answers
700 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 │ └...
3
votes
0answers
226 views

mapnik-vector-tile produces tiles with only one feature

I've written some C/C++ code to wrap mapnik-vector-tile and produce a mapbox vector tile from GeoJSON. mvtc_return * mvtc_from_geo_json(const int tile_size, const ...
3
votes
0answers
466 views

Mapnik3 + python3 + Postgis

I've installed mapnik3, python bindings, and postgis (and imported a pbf file into postgis), and can't seem to even make it generate a simple map as a png file. Specifically - where can I find ...
3
votes
0answers
40 views

Which FOSS label engine that supports shrink to fit label in polygon?

I've not found a way to label features using shrink to fit label in polygon, i've tried Qgis, and searched on Geoserver, Mapserver and Mapnik, none of them supports this feature, i'm looking for any ...
3
votes
0answers
437 views

Export Mapbox-Studio project to Mapnik XML

Tilemill had a feature to export the project to Mapnik XML (see here). Is there an equivalent functionality in Mapbox Studio? Some background: I'm trying to use a style like OSM Bright, edit it a ...
3
votes
0answers
301 views

Quantumnik plugin replacement?

I am looking for export QGIS Style in MapNik (so, his .xml format) I see that Quantumnik plugin can do that, but is not supported anymore (and cannot be installed at all) . Is there any alternative ...
3
votes
0answers
64 views

How can I show timezone in TileMill?

I downloaded data from Natural Earth Data and added it to TileMill (git revision 8044976 on Mac) I downloaded raster data, borders, cities, airports and timezones. However, the timezones show only a ...
3
votes
0answers
155 views

Data format for offline apps on iPad?

For an iPAD application (based on WhirlyGlobe) we've two modes: offline and online. It's a meteorological application so each day around 1600 layers (worldwide) per day are created on the servers. ...
3
votes
0answers
339 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
776 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
120 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
0answers
381 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 ...
2
votes
0answers
94 views

Editing vector tiles?

I'd like to create a web service where the user can edit some basic information of vector tiles. For example change the category of a street category from 5 to other value (4,3,2,1). I'm not so ...
2
votes
0answers
179 views

How to configure tilestache.cfg “projection”?

I am using tilestache-1.51.6 and mapnik 3.0.9. The tilestache.cfg is { "cache": { "name": "Disk", "path": "/var/www/cachedata", "umask": "0000" }, "layers": { "test": { ...
2
votes
0answers
54 views

mapnik proj4 tpers error

I'm working on a project where we need our tiles rendered with tilt perspective. I have installed and running openstreetmap server and it's working, but I need this projection to work: +proj=tpers +...
2
votes
0answers
108 views

Mapnik Tilecache Settings

I installed mapnik and created XML files for creating map. Using a python I created the image corresponding to the XML File point to a postgis enabled postgresql database. Then I downloaded the ...
2
votes
0answers
275 views

Calculating extent of custom tiles?

Problem The picture is just an example of my case, but I am left with blank space on the left when I load all the tiles and I get error message in the console: Failed to load resource: the server ...
2
votes
0answers
154 views

Making a pretty Base Map for QGIS and OpenLayers?

I am developing a standalone QGIS application as well a web GIS using Openalyers. Both applications use GeoServer published WMS and WFS services of parcels as a base layer. I was wondering if it is ...
2
votes
0answers
80 views

XML entities not working with node-mapnik

I'm not getting XML entities to work with node-mapnik. In the changelog for 1.4.4 I read: "Mapnik now build with rapidxml/ptree xml parser rather than libxml2 (meaning no xincludes or entities are ...
2
votes
0answers
290 views

“getting Unknown projection string error” serving EPSG:4326 tiles with open street maps mapnik renderd

The goal: I am attempting to generate map tiles with EPSG:4326 instead of web mercator by specifying EPSG:4326 in the mapnik style file srs attributes My current setup: I am running Ubuntu 14.14 ...
2
votes
0answers
301 views

Optimize Postgis contour lines DB

I'd like to try to optimize a world-wide 10m contour lines (isohypses) Postgis database(from SRTM). The complete DB takes 504GB on disk, contour lines are already in epsg:3857, and simplified with ...
2
votes
0answers
108 views

How to make water transparent on openstreemap-carto style?

I have build up manually a tile server on Ubuntu 14.04. LTS, by following switch2osm's guide and have used the openstreetmap-carto style. Now I intend to add a base layer, underneath the current one,...
2
votes
0answers
181 views

Mapnik: Parameterize queries for PostGIS datasource?

My datasource is PostGIS, but I need to build the query on the fly based on user-supplied filters. Obviously I don't want to create an SQLI vulnerability, so I'd like to parameterize my query, e.g., "...
2
votes
0answers
149 views

How to add Geo PDF header to a PDF rendered with mapnik?

I rendered a PDF with mapnik and I am now trying to add geospatial header information to the PDF. I tried the method add_geospatial_pdf_header() from mapnik.printing.PDFPrinter. I do get some Geo PDF ...
2
votes
0answers
126 views

Is there a way to re-order how layers render in Mapnik?

I'm creating Mapnik stylesheets and I am trying to edit the order layers are rendered. I tried just moving the XML code, but that didn't seem to work. Are there specific steps to make some features ...
2
votes
0answers
91 views

Changing border style in OpenStreetMap?

I am trying to figure out how to change OpenStreetMap country borders color/thickness. I've set up a tile server using OSM data, PostgreSQL & Mapnik. The default mapnik style is used. There ...
2
votes
0answers
154 views

How to serve an image layer with tilestache

I have some .png images with associated .wld and .tfw files. I'd like to display this in OpenLayers, and I already have a Tilestache server running, so it would be good to leverage this. OpenLayers ...
2
votes
0answers
247 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
194 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 ...
2
votes
0answers
238 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
64 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 ...
2
votes
0answers
267 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
18 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 ...
1
vote
0answers
63 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 ...
1
vote
0answers
244 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
0answers
108 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 ...
1
vote
0answers
78 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 ...
1
vote
0answers
71 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=...
1
vote
0answers
45 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
86 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
0answers
342 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 ...
1
vote
0answers
159 views

Mapnik with ECW on Ubuntu

Does anyone know how to build a mapnik with an ECW driver on Ubuntu. There is a successfully installed GDAL 2.2.1 with ECW support. Install ECW 3.3 wget http://www.kyngchaos.com/files/macosxport/...
1
vote
0answers
191 views

Renderer error Could not create datasource for type 'postgis'

I am trying to setup osm on centos 7. I have been following this link http://qiita.com/nkmrtkhd/items/642ae1b8a996cc46d85c. Most of the steps work here but I needed to do some extra googling for ...
1
vote
0answers
338 views

Can TileMill be configured to produce vector tiles, given a mapnik that supports the format?

Out of the box, TileMill 0.10.2 can import shapefiles from OpenStreetMaps (OSM), can style layers with CartoCSS, and can output an mbtiles file containing raster tiles (png). TileMill uses mapnik as ...
1
vote
0answers
32 views

Custom TextBox in Mapnik

I'm using Mapnik in Python for batch creation of png files from my raster layers. <RasterSymbolizer> from XML style works perfect in my case. However I would like to put a small text annotation ...
1
vote
0answers
186 views

Problem with mapnik

My code: import mapnik geometries = [ (0, "POLYGON ((0 0, 5 0, 5 5, 0 5, 0 0))"), (1, "POLYGON((1 5, 4 5, 4 6, 1 6, 1 5))") ] ds = mapnik.MemoryDatasource() ctx = mapnik.Context() for ...
1
vote
0answers
163 views

Using Mapnik's OGR plugin for Oracle Spatial Database

Mapnik wiki page of OGR plugin says that I can use the plugin for MSSQL server in the following manner: <Layer name="mssql" srs="+proj=latlong +datum=WGS84"> <StyleName>mssql_style<...
1
vote
0answers
112 views

Mapnik pgraster in PostGIS using ST_MapAlgebra on Tiled rasters

Is it possible and feasible to run a simple ST_MapAlgebra on the fly for a multi-band tiled (100x100) raster with mapnik extension pgraster? For example I am trying with this xml: <Layer name="...
1
vote
0answers
441 views

OpenSeaMap tiles over OpenStreetMap

i already have an OSM server with north-america-latest.osm.pbf layer, this is rendered with mapnik. My question is, where can I download OpenSeaMap layers and what would be the process for mounting ...