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

2014-07-14 Thread Juanma M. R.
Dear list,

I have a server offering OSM tiled layer based on the instructions here
.

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  it
fails when trying to compile mapserver-utils due to not being able to
connect www.naturalearthdata.com. However, here
 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.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2014-07-14 Thread Juanma M. R.
Hi list,

I will answer partially to myself.

I have checked mapserver documentation, but following the instructions
in Rendering
> OSM Data  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

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. :

> Dear list,
>
> I have a server offering OSM tiled layer based on the instructions here
> 
> .
>
> 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  it
> fails when trying to compile mapserver-utils due to not being able to
> connect www.naturalearthdata.com. However, here
>  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.
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users