Marcos,

Check your mapfile for the definition of your vector layer:
Shapefiles are native to MapServer, and therefore do not require the .shp extension in the DATA path of the LAYER.

In fact, in order for MapServer to use the .qix extension you MUST NOT specify the extension, for example:

LAYER
 ...
 DATA us_states    #MapServer will search for us_states.qix and will use it
 ...
END

LAYER
 ...
DATA us_states.shp #MapServer will search for us_states.shp.qix and won't find it
 ...
END

Extracted from http://mapserver.gis.umn.edu/docs/reference/utilityreference/shptree

Saludos,
Gaston.



----- Original Message ----- From: "Marcos Sánchez Provencio"
To: <MAPSERVER-USERS@LISTS.UMN.EDU>
Sent: Thursday, August 09, 2007 9:37 AM
Subject: [UMN_MAPSERVER-USERS] qix files


Now that I've seen how kind you are...

I get this warning I cannot ignore, since it comes up as an error:
IOError at /simif/wms/mapserv/
msSearchDiskTree(): Unable to access file. Unable to open spatial index
for /home/simif/src/simif/mapas/vardatos/PENINSULA_fc200708090001.4.shp.qix. In most cases you can safely ignore this message, otherwise check file names and permissions.

Can I ignore the message (with some kind of ignore warnings flag)? Can I
force it not to use qix file, no matter how slow it works?

Alternatively, I have a shx file (some kind of index too, I guess), can
I make it use that instead?

Also, if I generate the qix file, mapbuilder either does not find
PENINSULA_fc200708090001.4.shp (if i do not include .shp) or
PENINSULA_fc200708090001.4.qix (if i do include it). Funny :-P

Anything better than generating qix files and renaming them to .shp.qix?

Reply via email to