[Mapserver-users] Merge of shapefiles

woodbri at swoodbridge.com woodbri at swoodbridge.com
Thu Oct 30 14:21:53 PST 2003


Johan,

This is exactly what tileindexes are for. So if you files are in 
directory "data" do something like this:

find data -name "*.shp" > tile-input.txt
tile4ms tile-input.txt data-tiles

The next two lines will help with performance. I leave them up to the 
reader to figure out :)

find data -name "*.shp" -exec shptree {} \;
shptree data-tiles

then in you mapfile

LAYER "data"
TILEINDEX "data-tiles"
...

And is should work! If you have a lot of different layers in "data" 
then you will want to sort them into different tileindexes for each 
layer.

-Steve W.

On 30 Oct 2003 at 22:45, Johan Antonsson wrote:

> Hi all,
> 
> A couple of newbie questions that I'm having problem finding answers to:
> 
> I have a large set of shape files covering most of Sweden in 50 by 50 km
> squares (pieces). I would like to seamlessly generate maps within this
> dataset. Does MapServer have any support for this? I.e. to know when its
> time to load the shape file for an adjacent map e.g. when the user pans
> (between two squares). Or do I have to keep track of this myself?
> 
> I have seen that MapServer has support for tiles but I haven't found any
> good explanation what this really is. I know it's possible to generate a
> tileindex shape file that will contain polygons for and links to a
> number of shape files but how can I make MapServer use this file? Can it
> help me with the above problem? Can anyone point me to a good tiles
> information source?
> 
> Thanks in advance
> 
> /Johan
> 
> ------------------------------------------------------------
> Johan Antonsson
> johan at antonsson.com
> ------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 





More information about the MapServer-users mailing list