Thanks Jeff, Truth be told, I haven't set up a map file with a shapefile for about three years (all our data is in PostGIS now), so I haven't looked at the docs on that for a while.
Based on the feedback here, could I maybe suggest that the last part of the shptree page be reworded to something like <<< Mapfile Notes The qix will be used when it is available and may provide significant gains in rendering speed. ESRI index files (.sbn / .shx) are not used by MapServer. Note Prior to Mapserver 5.2, 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 Shapefiles are native to MapServer, and therefore do not require the .shp extension in the DATA path of the LAYER. >>> cheers Ben On 13/05/2011, at 9:30 AM, mapserver-users-requ...@lists.osgeo.org wrote: > From: Jeff McKenna <jmcke...@gatewaygeomatics.com> > Date: 12 May 2011 8:58:00 PM AWST > To: mapserver-users@lists.osgeo.org > Subject: Re: [mapserver-users] Layer rendering performance problem > > > On 11-05-11 9:59 PM, Ben Madin wrote: >> I'm not sure whether it is still the case, but it used also to be that >> if you wanted to use the index, you need to name the shapefile without >> the .shp extension. If you used the .shp extension it wouldn't use the >> .qix index. >> >> So maybe this is a question - Is that still the case? > > Hi Ben, > > This is documented at: > http://www.mapserver.org/utilities/shptree.html#mapfile-notes > > "Note: As of MapServer 5.2 the qix will be used even when the .shp extension > is specified" > > PS. this is why I always push the documentation team/developers to record the > version number the change applies to, directly in the document. > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ >
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users