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"><<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>></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 "ogrtileindex". 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>
> On Sep 11, 2011, at 9:05 PM, JIAJIA WANG wrote:<br>
<br>
>> The data in the shapefile are suburb boundaries, but I got several<br>
> shapefiles, one shapefile for one state. I want a map showing the whole<br>
> country's suburb boundaries.<br>
> That's can be done by defining several layers (one layer reads one<br>
> shapefile) in one mapfile. But actually there are not conflicts between<br>
> these shapefiles. So I want to know is there any way to define only one<br>
> layer and read the data from all these shapefiles.<br>
<br>
<br>
> 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>
><br>
> On Mon, Sep 12, 2011 at 11:17 AM, Mr. Puneet Kishor <<a href="mailto:punk.kish@gmail.com">punk.kish@gmail.com</a>>wrote:<br>
><br>
>><br>
>> On Sep 11, 2011, at 8:10 PM, jjwang wrote:<br>
>><br>
>>> Hi,<br>
>>><br>
>>> I know that the DATA statement should be given a data source of the<br>
>> layer.<br>
>>> What if the data comes from multi shapefiles?<br>
>>> Can I give it a list of shapefiles and how to write it?<br>
>>><br>
>><br>
>><br>
>> Generally a LAYER maps to a shapefile or a table in a db. It is hard for me<br>
>> to imagine how one layer could have data from two or more shapefiles.<br>
>> Perhaps more explanation would help here.<br>
>><br>
>><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>