[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

Re: [mapserver-users] algorithm for line offset (-99 value)

2014-07-14 Thread Lime, Steve D (MNIT)
Hi Peter: The functions you’re looking for are msOffsetPolyline() and 
msOffsetCurve() in maputil.c. We do use GEOS if it’s available though and fall 
back to our own code only if necessary.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Peter Maes
Sent: Monday, July 07, 2014 4:32 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] algorithm for line offset (-99 value)

Hi,

In the past we only rendered image tiles for roads, where we need the 2 lanes 
to be drawn separately. For this we've been using the -99 value offset 
parameter.

However, now we need to use mapserver wfs on the vector side and do this line 
offset on the client.

Can anyone point me to the right direction on how this is implemented? 
Unfortunately I can't read c very well so digging in the mapserver source also 
seems difficult.

Perhaps if I know where to look for?

Given a WKT linestring (either WGS84 or EPSG 900913) how could I offset it a 
few pixels in direction of the line?

Thanks for any help or pointers.


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Problem with yum installation of Mapserver 6.2.1-5 on Fedora 20

2014-07-14 Thread Richard Greenwood
Did you look for /usr/libexec/mapserver? That's where it is on my Fedora20,
with a sym link
   /var/www/cgi-bin/mapserv -> /usr/libexec/mapserver


On Mon, Jul 7, 2014 at 7:39 AM, Alessandro Mazzella 
wrote:

> Hi all,
>
> I'm trying to install mapserver 6.2.1-5 on my Fedora20 VM with yum, but
> I'm reporting a crucial problem: yum installation successfully ends, but
> there is no "mapserv" file on whole my filesystem. shp2img and legend files
> can be correctly found on /usr/bin/ directory instead.
>
> Any suggestion ?
>
> Thanks all
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users