[mapserver-users] MapServer and shapefile

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Oct 2 01:11:01 PDT 2012


Hi,

Mapserver is not a TMS server and you must either start using OpenLayers.Layer.WMS or install some tile cache acting as TMS server in between your Mapserver and OpenLayers. Tilecache, Mapcache, Mapproxy, Geowebcache and for sure some others will all work sooner or later once you have solved the installation and configuration puzzle.

-Jukka Rahkonen-

________________________________
Brolese wrote:

> Yes, sorry, I was talking about OpenLayers.
> I understood and is like I did with all the layers I set pointing on PostGIS. I have also a "base layer" set as >OpenLayers.Layer.TMS that load image tiles to show the city map. What we want to do is to change the base layer to read the city map from shapfile instead of reading image tiles.

> Do you know if there is a way to do what we want or do I have to reconsider my structure and consider and use it as OpenLayers.Layer.WMS?

Fabio


________________________________
Da: Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi>
A: "mapserver-users at lists.osgeo.org" <mapserver-users at lists.osgeo.org>
Inviato: Martedì 2 Ottobre 2012 9:05
Oggetto: Re: [mapserver-users] MapServer and shapefile

Hi,

Because you talk about base layer I think that you are perhaps going to show your map in OpenLayers. If that is the case then the answer is yes and this OpenLayers example shows how it can be done.
http://dev.openlayers.org/releases/OpenLayers-2.12/examples/wms-untiled.html
On the Mapserver side you must configure a WMS layer that is using shapefile as input data.
http://www.mapserver.org/ogc/wms_server.html


-Jukka Rahkonen-
________________________________
Fabio Brolese wrote:

> Hello everybody,
> after a long search on Google I'm here to ask you if it's possible to use a shapefile as base layer.
> Everything I found was on exporting to shapefile or drawing objects from shapefile but nothing saying that I can >use it as base layer.

Can anyone help me?

TIA

Fabio
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list