[Mapserver-users] Re: Use of shptree
pkishor_98
pkishor at geoanalytics.com
Fri Aug 1 13:17:26 PDT 2003
--- In mapserver-users at yahoogroups.com, "Zamil Murji"
<Zamil.Murji at d...> wrote:
> Hello list,
>
> I am using shptree to index my shapefiles. I have a
> funny case. Using shptree on one of my pointfiles
> actually increases the time to load an image by 0.5
> seconds. I have a feeling it has something to do with
> the depth factor. How can I see what depth the index
> is created at?
> This shapefile has 1.6 million point
> shapes. Should the depth be higher or lower than what
> the shptree uses?
You created the shptree index, no? When you created it, you specified
the index. If you didn't, it used the default depth. From shptree
documentation --
shptree
Purpose: Creates a quadtree-based spatial index for a shapefile. The
default tree depth is calculated so that each tree node (quadtree
cell) contains 8 shapes. Do not use the default with point files, a
value between 6 and 10 seems to work ok. Your millage may vary and
you'll need to do some experimenting.
Syntax: shptree [shpfile] {depth}
Do some experimentation with different depths. Hope this helps.
More information about the MapServer-users
mailing list