qix files
Marcos Sánchez Provencio
marcos at BURKE.ATH.CX
Fri Aug 10 01:17:18 PDT 2007
Sadly, there is a dot in the file name, so the .shp won't be appended
automatically, as I said.
Since there is not an obvious solution, I am migrating to PostGIS. I
already had part of the data in pg, so the change is minimal, and I am a
database person anyway. It will be easier to use Django GIS when it is
ready too.
Thank you for the responses.
El jue, 09-08-2007 a las 12:03 -0300, Gaston Izaguirre escribió:
> 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 at 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?
> >
More information about the MapServer-users
mailing list