<div dir="ltr">Hi list,<div><br></div><div>I will answer partially to myself.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span style="font-size:13px;font-family:arial,sans-serif">I have checked mapserver documentation, but following the instructions in </span><a href="http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu" target="_blank" style="font-size:13px;font-family:arial,sans-serif">Rendering OSM Data</a><span style="font-size:13px;font-family:arial,sans-serif"> it fails when trying to compile mapserver-utils due to not being able to connect </span><a href="http://www.naturalearthdata.com/" target="_blank" style="font-size:13px;font-family:arial,sans-serif">www.naturalearthdata.com</a><span style="font-size:13px;font-family:arial,sans-serif">. </span></blockquote>
<div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif">Finally I downloaded the file mannually finding the correct URL:</span></div><div>
<span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><pre style="margin-right:1em;margin-left:1.6em;padding:8px;border:1px solid rgb(226,226,226);width:auto;color:rgb(72,72,72);font-size:12.222222328186035px;background-color:rgb(250,250,250)">
cd data/
wget <a href="http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_boundary_lines_land.zip">http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_boundary_lines_land.zip</a>
mv ne_10m_admin_0_boundary_lines_land.zip 10m-admin-0-boundary-lines-land.zip</pre></div><div><span style="font-size:13px;font-family:arial,sans-serif">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.</span></div>
<div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div>I found another versión of the tutorial for <a href="https://github.com/mapserver/mapserver/wiki/Rendering-OSM-data-on-Ubuntu-12.04">serving OSM with MapServer</a> 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.</div>
<div><br></div><div>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.</div>
<div><br></div><div>Cheers,</div><div>Juan Manuel Moreno Rivera.<br></div><div class="gmail_extra"><div><div dir="ltr"><p>2014-07-14 10:58 GMT+02:00 Juanma M. R. <span dir="ltr"><<a href="mailto:juanma.mr@gmail.com" target="_blank">juanma.mr@gmail.com</a>></span>:<br>
</p></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear list,<div><br></div><div>I have a server offering OSM tiled layer based on the instructions <a href="http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/" target="_blank">here</a>.</div>
<div><br></div>
<div>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.</div>

<div><br></div><div>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.</div>

<div><br></div><div>I have checked mapserver documentation, but following the instructions in <a href="http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu" target="_blank">Rendering OSM Data</a> it fails when trying to compile mapserver-utils due to not being able to connect <a href="http://www.naturalearthdata.com" target="_blank">www.naturalearthdata.com</a>. However, <a href="http://trac.osgeo.org/mapserver/wiki/RenderingOsmData" target="_blank">here</a> 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.</div>

<div><br></div><div>Does anyone know if it is possible to connect to this mod_tile tiles from a mapserver mapfile? <br></div><div><br></div><div>If no, does anyone know why mapserver-utils are failing and if there is another tutorial for configuring OSM own server with MapServer?</div>

<div><br></div><div>Regards,<br clear="all"><div><div dir="ltr">Juan Manuel Moreno Rivera.<br>


<font face="Arial"><span style="font-size:10pt;font-family:Arial"></span></font></div></div>
</div></div>
</blockquote></div><br></div></div>