[Mapserver-users] Indexing of Shapefiles
Darren.Cope at statcan.ca
Darren.Cope at statcan.ca
Fri Mar 5 08:11:12 PST 2004
Thanks Steve Woodbridge (and Stephen Clark as well) for your prompt
answer(s)!
Darren
-----Original Message-----
From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com]
Sent: March 5, 2004 10:20 AM
To: mapserver-users at lists.gis.umn.edu; Darren.Cope at statcan.ca
Subject: Re: [Mapserver-users] Indexing of Shapefiles
Darren,
You should build spatial indexes for all your shapefiles. this speeds
up query and display.
find data_dir -name "*.shp" -exec shptree {} \;
should improve things. It assumes you are on Linux/Unix and the you
have shptree in the path. shptree creates the mapserver spatial index
*.qix and can be found in your mapserver build directory.
-Steve W.
On 5 Mar 2004 at 9:38, Darren.Cope at statcan.ca wrote:
> Hi all,
>
> I have several very large shapefiles that I wish to display.
> Everything works fine, except that rending and querying take a _long_
> time. Does MapServer work with attribute indexes on shapefiles to
> speed up queries? Spatial indexes to speed up queries? I have read
> about the TILEINDEX but am not sure how this applies to a single large
> shapefile.
>
> Any help would be appreciated!
>
> Thanks,
>
> Darren Cope
> Statistics Canada/Statistique Canada
> Geography Division/Division de la géographie
> Jean Talon 3D5
> Ottawa, Canada
> (613) 951-6461
>
>
More information about the MapServer-users
mailing list