<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Ok folks,</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>I used your suggestions and addede some configurations to the map files:</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span class="tab">    </span><span>MAP</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span class="tab">   
 </span><span class="tab">    </span><span class="tab">......</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span class="tab">    </span><span class="tab">    SHAPEFILE /gis/ms5/etc/shapefile</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span class="tab">    </span><span class="tab">    </span><span class="tab">.....</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span class="tab">    </span><span class="tab">END</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif;
 background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">    LAYER<br>        NAME "level_04"<br>        TYPE POLYGON<br>        DATA SITIREN_CARTO_LEVEL04<br>        STATUS ON<br>        CLASS<br>            NAME "Level 04"<br>            OUTLINECOLOR 0 0 0<br>        END<br>    END</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span
 class="tab"></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span class="tab">In the HTML page, in the function for the onReady event:</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span class="tab"></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span class="tab">    </span><span class="tab">    </span><span class="tab">map.addLayer( new OpenLayers.Layer.WMS("level_04", mapserver_url, {<br>                        layers: "level_04",
 <br>                        format: "image/png", <br>                        singleTile: true,<br>                        isBaseLayer: true<br>                    },{<br>                        visibility: true<br>                   
 }<br>                )<br>            );</span><span class="tab">   </span><br><span class="tab"></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span class="tab"></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">I have also 2 OpenLayers.Layer.TMS defined and they are shown in the menů layer with exclusive radio buttons and they are set as base layer. All the other layers are defined as OpenLayers.Layer.WMS and associated one to onet with a menů leaf. The problem I'm encountering is: the new layer that point to a shapefile isn't shown anywhere so I can't use it. I think the code is correct
 because I have no errors on page loading.</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">What I'm doing wrong?</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">TIA</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color:
 transparent; font-style: normal;">Fabio</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">Da:</span></b> Mr. Puneet Kishor
 <punk.kish@gmail.com><br> <b><span style="font-weight: bold;">A:</span></b> "mapserver-users@lists.osgeo.org" <mapserver-users@lists.osgeo.org> <br><b><span style="font-weight: bold;">Cc:</span></b> Fabio Brolese <fabiobrolese-forum@yahoo.it> <br> <b><span style="font-weight: bold;">Inviato:</span></b> Venerdě 5 Ottobre 2012 8:34<br> <b><span style="font-weight: bold;">Oggetto:</span></b> Re: [mapserver-users] MapServer and shapefile<br> </font> </div> <br><br>On Oct 4, 2012, at 10:56 PM, Fabio Brolese <<a ymailto="mailto:fabiobrolese-forum@yahoo.it" href="mailto:fabiobrolese-forum@yahoo.it">fabiobrolese-forum@yahoo.it</a>> wrote:<br><br>> Trying using shapefile as base layer I didn't find where to put my shapefile and to let them seen by MapServer. The examples say me to set the map file correctly but not where to save the shp files how to say to MapServer where thay are. Is there a directive in the main map file where to
 set the location of shp files like I set the log file path and etc.<br>> <br>> <br><br><a href="http://mapserver.org/mapfile/map.html" target="_blank">http://mapserver.org/mapfile/map.html</a><br><br>MAP<br>  SHAPEPATH [filename]<br>    Path to the directory holding the shapefiles or tiles. <br>    There can be further subdirectories under SHAPEPATH.<br><br><br><br><br><a href="http://mapserver.org/mapfile/layer.html" target="_blank">http://mapserver.org/mapfile/layer.html</a><br><br>LAYER<br>  DATA [filename]|[sde parameters][postgis table/column][oracle table/column]<br>    Full filename of the spatial data to process. No file <br>    extension is necessary for shapefiles. Can be specified <br>    relative to the SHAPEPATH option from the Map Object.<br><br><br><br><br><br><br>> <br>> <br>> <br>> <br>> <br>>> ________________________________<br>>> Da:
 Cristiano Sumariva <<a ymailto="mailto:sumariva@gmail.com" href="mailto:sumariva@gmail.com">sumariva@gmail.com</a>><br>>> A: Fabio Brolese <<a ymailto="mailto:fabiobrolese-forum@yahoo.it" href="mailto:fabiobrolese-forum@yahoo.it">fabiobrolese-forum@yahoo.it</a>> <br>>> Inviato: Martedě 2 Ottobre 2012 13:14<br>>> Oggetto: Re: [mapserver-users] MapServer and shapefile<br>>> <br>>> <br>>> If your map vector is not huge, and processing time is not a problem - something greater then a few seconds for a tile - you can use a WMS layer as base.<br>>> Just add isBaseLayer true to parameter options on layer.<br>>> This should be minimal to change.<br>>> At my sites I did not note WMS overhead on requests.<br>>> You should know that OpenLayers is greed and will issue several concurrent requests to server. Processing spikes will happen.<br>>> <br>>> <br>>> For larger sets you
 maybe at the need of some cache stuff.<br>>> Consider using one in a programming language you know in case you need do maintenance in source code.<br>>> Or if confortable with some, create your particular simple cache maybe an option.<br>>> <br>>> <br>>> 2012/10/2 Fabio Brolese <<a ymailto="mailto:fabiobrolese-forum@yahoo.it" href="mailto:fabiobrolese-forum@yahoo.it">fabiobrolese-forum@yahoo.it</a>><br>>> <br>>> Yes, sorry, I was talking about OpenLayers.<br>>>> 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.<br>>>> <br>>>> <br>>>> 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?<br>>>> <br>>>> <br>>>> Fabio<br>>>> <br>>>> <br>>>> <br>>>> <br>>>> <br>>>>> ________________________________<br>>>>> Da: Rahkonen Jukka <<a ymailto="mailto:Jukka.Rahkonen@mmmtike.fi" href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>><br>>>>> A: "<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>" <<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>> <br>>>>> Inviato: Martedě 2 Ottobre 2012 9:05<br>>>>> Oggetto: Re: [mapserver-users] MapServer and shapefile<br>>>>> <br>>>>> <br>>>>> Hi,<br>>>>> <br>>>>> 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.<br>>>>> <a href="http://dev.openlayers.org/releases/OpenLayers-2.12/examples/wms-untiled.html" target="_blank">http://dev.openlayers.org/releases/OpenLayers-2.12/examples/wms-untiled.html</a><br>>>>> On the Mapserver side you must configure a WMS layer that is using shapefile as<br>> input data.<br>>>>> <a href="http://www.mapserver.org/ogc/wms_server.html" target="_blank">http://www.mapserver.org/ogc/wms_server.html</a><br>>>>> <br>>>>> <br>>>>> -Jukka Rahkonen-<br>>>>> ________________________________<br>>>>> Fabio Brolese wrote:<br>>>>> <br>>>>>> Hello everybody,<br>>>>>> after a long search on Google I'm here to ask you if it's possible to use
 a shapefile as base layer.<br>>>>>> Everything I found was on exporting to shapefile or drawing objects from shapefile but nothing saying that I can >use it as base layer.<br>>>>> <br>>>>> Can anyone help me?<br>>>>> <br>>>>> TIA<br>>>>> <br>>>>> Fabio<br>>>>> _______________________________________________<br>>>>> mapserver-users mailing list<br>>>>> <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>>>>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>>>>> <br>>>>> <br>>>>> <br>>>> _______________________________________________<br>>>> mapserver-users mailing list<br>>>> <a
 ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>>>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>>>> <br>>>> <br>>> <br>>> <br>> _______________________________________________<br>> mapserver-users mailing list<br>> <a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br><br><br><br> </div> </div> </blockquote></div>   </div></body></html>