Also there is the LAYER TILEINDEX<br><a href="http://mapserver.org/optimization/tileindex.html#tileindex">http://mapserver.org/optimization/tileindex.html#tileindex</a><br>that may do that you need. Like a virtual mosaic.<br>
<br><div class="gmail_quote">2011/9/12 Rahkonen Jukka <span dir="ltr">&lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
You will do it with &quot;ogrtileindex&quot;. Read <a href="http://www.mapserver.org/optimization/tileindex.html" target="_blank">http://www.mapserver.org/optimization/tileindex.html</a><br>
<font color="#888888"><br>
-Jukka Rahkonen-<br>
</font><div><div></div><div class="h5"><br>
Mr. Puneet Kishor wrote:<br>
<br>
&gt; On Sep 11, 2011, at 9:05 PM, JIAJIA WANG wrote:<br>
<br>
&gt;&gt; The data in the shapefile are suburb boundaries, but I got several<br>
&gt; shapefiles, one shapefile for one state. I want a map showing the whole<br>
&gt; country&#39;s suburb boundaries.<br>
&gt; That&#39;s can be done by defining several layers (one layer reads one<br>
&gt; shapefile) in one mapfile. But actually there are not conflicts between<br>
&gt; these shapefiles. So I want to know is there any way to define only one<br>
&gt; layer and read the data from all these shapefiles.<br>
<br>
<br>
&gt; I am pretty sure (but not 100%) that you can have only one data source per layer. That said, you could either combine all the shapefiles into a single countrywide shapefile, or you could create separate layers, and then create a layer group (I am pretty sure you can group the layers into one... its been a long time, and I am just coming back to MapServer, so check the docs). That way, all the different layers for different states will behave as if they are a single layer. From the docs --<br>

<br>
GROUP [name]<br>
  Name of a group that this layer belongs to. The group name can then be reference as a regular<br>
  layer name in the template files, allowing to do things like turning on and off a group of<br>
  layers at once.<br>
<br>
&gt;<br>
&gt; On Mon, Sep 12, 2011 at 11:17 AM, Mr. Puneet Kishor &lt;<a href="mailto:punk.kish@gmail.com">punk.kish@gmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Sep 11, 2011, at 8:10 PM, jjwang wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I know that the DATA statement should be given a data source of the<br>
&gt;&gt; layer.<br>
&gt;&gt;&gt; What if the data comes from multi shapefiles?<br>
&gt;&gt;&gt; Can I give it a list of shapefiles and how to write it?<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Generally a LAYER maps to a shapefile or a table in a db. It is hard for me<br>
&gt;&gt; to imagine how one layer could have data from two or more shapefiles.<br>
&gt;&gt; Perhaps more explanation would help here.<br>
&gt;&gt;<br>
&gt;&gt;<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a 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>
mapserver-users mailing list<br>
<a 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>
</div></div></blockquote></div><br>