5

I have created a Ubuntu 14.04 tile server. I loaded an OSM base map into the POSTGIS database and created a slippy-map using OpenLayers 3.9. Then I loaded data of an overlay into the POSTGIS database and now I am trying to create a layer for it.

To create layers, the only solution with decent documentation seems to be Tilemill. But to use Tilemill on my server I have to use "SSH connection forwarding", explained here. I don't want to create a security leak into my server.

Are there any other options, with decent documentation, with which I can create custom layers for my map?

What I already 'know':

  • Create a simple map with Mapnik

  • Store shape files into the POSTGIS database

  • Use OpenLayers to display the layer

What I need to know: I have a simple overlay (created with Mapnik): enter image description here

This overlay has to be rendered into different tiles and have zoom levels, just like a OSM base map. I want to use this overlay and put it over an area on my OSM-tiled map.

What do I need to be able to create a layer that can be displayed with OpenLayers like: url: '/overlay/{x}/{y}/{z}'?

  • Noone that can help me on my way? – PIDZB Nov 30 '15 at 9:04
  • any success with your tiling? I need to achieve more or less the same thing. – Jadav Bheda Aug 8 '16 at 23:57
5

This page has a awesome tutorial of how to create a complete Tile server using the stack Mod_tile, renderd, mapnik, osm2pgsql and a postgresql/postgis database.

If you already have a style created by the Tilemill you can export to the Mapnik format and use it to generate your tiles and render with frameworks like OpenLayers and Leaflet.

  • 1
    Thank you for your reaction. I already used this guide to create a tile server, and it works great. What I don't know is how to exactly use these components with my own custom data.. – PIDZB Jan 8 '16 at 12:56
  • Where's your custom data? In a postgis database? – coderade Jan 8 '16 at 13:03
  • Yes, I receive a shape-file that I insert into the POSTgis database. – PIDZB Jan 8 '16 at 13:49
  • I don't understand your problem. If you already imported the shapefile to a postgis database, you created a style with the tilemill tool, you exported to a mapnik.xml file and also used the guide to create a tile server using the created mapnik style. Where's your problem? With a running tile server you can simply call the desired URL: '/overlay/{x}/{y}/{z} – coderade Jan 8 '16 at 14:21
  • 2
    great! i needed this info. – tony gil May 7 '16 at 19:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.