[mapserver-users] Connecting to a mapnik / renderd / mod_tile layer

Juanma M. R. juanma.mr at gmail.com
Mon Jul 14 05:08:32 PDT 2014


Hi list,

I will answer partially to myself.

I have checked mapserver documentation, but following the instructions
in Rendering
> OSM Data <http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu> it
> fails when trying to compile mapserver-utils due to not being able to
> connect www.naturalearthdata.com.


Finally I downloaded the file mannually finding the correct URL:

cd data/
wget http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_boundary_lines_land.zip
mv ne_10m_admin_0_boundary_lines_land.zip 10m-admin-0-boundary-lines-land.zip

I get compiling it and get the osm-google.map file containing the styles
for OSM. I copy them to my own mapfile and change the fonts to those I have
in my fonts directory for MapServer. And it worked! This way I sorted out
the problem of serving OSM data with MapServer.

I found another versión of the tutorial for serving OSM with MapServer
<https://github.com/mapserver/mapserver/wiki/Rendering-OSM-data-on-Ubuntu-12.04>
that
I feel is more up to date, but is almost the same content. I would
recommend this one if other people wants to serve OSM with MapServer.

About the issue of using the data from the mod_tile layer with MapServer, I
still need help on it. It would be helpful so that I do not have two
versions of OSM data, one based on osm2pgsql and the other based on impsom.
Also I would be able to avoid following this tutorial. At the end if I
can't find a working option I will replace the tiled OSM based on Mapnik by
this one based on MapServer to avoid duplicating data.

Cheers,
Juan Manuel Moreno Rivera.

2014-07-14 10:58 GMT+02:00 Juanma M. R. <juanma.mr at gmail.com>:

> Dear list,
>
> I have a server offering OSM tiled layer based on the instructions here
> <http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/>
> .
>
> I have a openlayers using this OSM base layer and other overlay layers but
> I would like to make them printable as an image or PDF. After trying with
> client-side alternatives and failing one after another, I am trying now
> based on a server-side and MapServer based approach, the one I am more used
> to.
>
> So, I have already configured the overlays layers in my map file and I
> need to include the OSM tiled layer I have directly from mod_tile data. The
> issue is that I can't find a way to do it. I am not familiar with mapnik,
> that is why I am trying with mapserv which I installed on the server. Also
> I would like to use mapserver to use the PDF, KML and multiple image
> formats supported. I have always used mapserver, but I inherit this OSM
> configuration and I found problems migrating or addapting it.
>
> I have checked mapserver documentation, but following the instructions in Rendering
> OSM Data <http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu> it
> fails when trying to compile mapserver-utils due to not being able to
> connect www.naturalearthdata.com. However, here
> <http://trac.osgeo.org/mapserver/wiki/RenderingOsmData> it says no
> osm2pgsql estructure is supported anymore. So I am affraid I will need to
> load data again to be able to serve OSM layer from MapServer.
>
> Does anyone know if it is possible to connect to this mod_tile tiles from
> a mapserver mapfile?
>
> If no, does anyone know why mapserver-utils are failing and if there is
> another tutorial for configuring OSM own server with MapServer?
>
> Regards,
> Juan Manuel Moreno Rivera.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140714/4a764828/attachment.htm>


More information about the MapServer-users mailing list