<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>This is less a mapserver issue than a data management issue - and shapefiles are not a particularly good way to manage data.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; 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: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>I suggest you look at a spatially enabled database, with attribute & spatial indexes, such as Postgis, instead of shapefiles as a data source. These are pretty much designed for such use cases.<br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; 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: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>That said, if you cannot use a spatial database in this case, you can do things with mapserver to improve things - like have multiple layers (though 6000 seems a bit excessive) in a single group - so addressable as a single layer but each with its own shapefile spatial index file.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; 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: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>Brent Wood<br></span></div><div><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div
 dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> "EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE" <james.evans.4@us.af.mil><br> <b><span style="font-weight: bold;">To:</span></b> "mapserver-users@lists.osgeo.org" <mapserver-users@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, January 30, 2014 5:32 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [mapserver-users] Layer with over 6000 shapefiles<br> </font> </div> <div class="y_msg_container"><br>Hi,<br>Is there a way to add a layer that points to 6000 some odd shapefiles?  I've created a set of contour files for the whole world, and when I had the info in a single shapefile it was about 260GBs.  Mapserver would serve it up, but performance was horrible.  I now have the set broken up into about 6000 separate shapefiles, but don't know how to address that in a single
 layer.  I tried using gdaltindex, to create a single index file that points to all the other shapefiles, but I get an error saying the shapefiles are an unsupported type.  Is there some other way to create an index that Mapserver can use to point to this many shapefiles?<br>Thanks,<br>James<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></div> </div> </div>  </div></body></html>