[mapserver-users] Shapefile indices and Mapserv vs Mapscript

Stephen Woodbridge woodbri at swoodbridge.com
Wed Apr 10 15:29:05 EDT 2002


Sean,

The msSearchDiskTree() error is only informational. It means that some
of your shapefiles do not have spatial indexes built for them (ie: not
all *.shp have a *.qix file. You can suppress the message in mapscript
by putting an '@' in front of the call to draw the map, or build the
indexes using shptree. Mapserver has probably been built with ignore
missing data option so it ignores this fact. the error report by
mapscript is from the mapscript wrapper and not mapserver. So that
should explain the difference. I have written a bug/enhance request to
include the file name that is generating the error to make it easier to
chase these down.

-Steve

Sean Gillies wrote:
> 
> Greetings,
> 
> I'm finding a quirk between mapserv and mapscript and
> am hoping that someone can enlighten me.
> 
> Using mapserver and mapscript 3.5 I am finding that
> mapscript cannot access a shapefile without the
> presence of a shptree index, while mapserv can
> access the same shapefile without a shptree index,
> even when using the same map (produced from map.save()).
> 
> Why would mapscript produce a msSearchDiskTree() error
> when there is no error from mapserv?  Do mapserv.exe
> and mapserver.lib not use the same code to access
> shapefiles?
> 
> I'm using mapserver and mapscript that I've built on
> Win2k from the 3.5 source.  Am setting the shapefile
> layer to connection type MS_SHAPEFILE.
> 
> thanks,
> Sean
> 
>   ------------------------------------------------------------------------
>                        Name: sig_business.txt
>    sig_business.txt    Type: Plain Text (text/plain)
>                    Encoding: 7bit



More information about the mapserver-users mailing list