[Mapserver-users] Re: Use of shptree

pkishor_98 pkishor@geoanalytics.com
Fri, 01 Aug 2003 20:17:26 -0000


--- In mapserver-users@yahoogroups.com, "Zamil Murji"
<Zamil.Murji@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.


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users