<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">Thanks Jeff,<div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">Based on the feedback here, could I maybe suggest that the last part of the shptree page be reworded to something like</div><div class=""><br></div><div class="">&lt;&lt;&lt;</div><div class=""><br class=""></div><div class=""><span style="font-family: Arial, sans-serif; color: rgb(62, 67, 73); font-size: 13px; " class="Apple-style-span"><h2 style="font-family: Arial, sans-serif; background-color: rgb(198, 198, 219); font-weight: normal; color: rgb(33, 34, 36); margin-top: 30px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 10px; text-shadow: white 0px 1px 0px; font-size: 19px; " class="">Mapfile Notes<a href="http://www.mapserver.org/utilities/shptree.html#mapfile-notes" title="Permalink to this headline" style="color: rgb(198, 15, 15); text-decoration: none; visibility: hidden; font-size: 0.8em; padding-top: 0px; padding-right: 4px; padding-bottom: 0px; padding-left: 4px; " class="headerlink"></a></h2><p style="line-height: 1.5em; " class="">The qix will be used when it is available and may provide significant gains in rendering speed.&nbsp;</p><p style="line-height: 1.5em; " class="">ESRI index files (.sbn / .shx) are not used by MapServer.</p><p style="line-height: 1.5em; " class=""><span style="line-height: normal; " class="Apple-style-span"><p style="margin-top: 0px; margin-right: 10px; margin-bottom: 5px; margin-left: 0px; font-weight: bold; display: inline; line-height: 1.5em; " class="first admonition-title">Note</p>&nbsp;<p style="line-height: 1.5em; display: inline; " class="last">Prior to Mapserver 5.2,&nbsp;</p></span>in order for MapServer to use the<em class="">.qix</em>&nbsp;extension you MUST NOT specify the extension, for example:</p></span><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 13px; " class="Apple-style-span"><div class="highlight-mapfile"><div style="background-color: white; position: static; z-index: auto; " class="highlight"><pre style="overflow-x: auto; overflow-y: auto; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; background-color: white; color: rgb(34, 34, 34); line-height: 1.2em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(198, 201, 203); border-right-color: rgb(198, 201, 203); border-bottom-color: rgb(198, 201, 203); border-left-color: rgb(198, 201, 203); font-size: 1.2em; margin-top: 1.5em; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; -webkit-box-shadow: rgb(216, 216, 216) 1px 1px 1px; " class=""><span style="color: rgb(0, 112, 32); font-weight: bold; " class="k">LAYER</span>
  <span class="p">...</span>
  <span style="color: rgb(0, 112, 32); font-weight: bold; " class="k">DATA</span> <span style="color: rgb(64, 112, 160); " class="s">"us_states"</span>    <span style="color: rgb(64, 128, 144); font-style: italic; " class="c">#MapServer will search for us_states.qix and will use it</span>
  <span class="p">...</span>
<span style="color: rgb(0, 112, 32); font-weight: bold; " class="k">END</span>

<span style="color: rgb(0, 112, 32); font-weight: bold; " class="k">LAYER</span>
  <span class="p">...</span>
  <span style="color: rgb(0, 112, 32); font-weight: bold; " class="k">DATA</span> <span style="color: rgb(64, 112, 160); " class="s">"us_states.shp"</span>    <span style="color: rgb(64, 128, 144); font-style: italic; " class="c">#MapServer will search for us_states.shp.qix and won't find it</span>
  <span class="p">...</span>
<span style="color: rgb(0, 112, 32); font-weight: bold; " class="k">END</span>
</pre><div class=""><span style="color: rgb(0, 112, 32); font-weight: bold; " class="k"><span style="color: rgb(62, 67, 73); font-weight: normal; line-height: 19px; " class="Apple-style-span">Shapefiles are native to MapServer, and therefore do not require the&nbsp;<em class="">.shp</em>&nbsp;extension in the DATA path of the LAYER.</span></span></div></div></div></span></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">&gt;&gt;&gt;</div><div class=""><br></div><div class="">cheers</div><div class=""><br></div><div class="">Ben</div><div class=""><br></div><div class=""><br></div><div class="">&nbsp;<br class=""><div><div class="">On 13/05/2011, at 9:30 AM, <a href="mailto:mapserver-users-request@lists.osgeo.org">mapserver-users-request@lists.osgeo.org</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; " class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " class=""><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); " class=""><b class="">From:<span class="Apple-converted-space">&nbsp;</span></b></span><span style="font-family: Helvetica; font-size: medium; " class="">Jeff McKenna &lt;<a href="mailto:jmckenna@gatewaygeomatics.com" class="">jmckenna@gatewaygeomatics.com</a>&gt;<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " class=""><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); " class=""><b class="">Date:<span class="Apple-converted-space">&nbsp;</span></b></span><span style="font-family: Helvetica; font-size: medium; " class="">12 May 2011 8:58:00 PM AWST<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " class=""><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); " class=""><b class="">To:<span class="Apple-converted-space">&nbsp;</span></b></span><span style="font-family: Helvetica; font-size: medium; " class=""><a href="mailto:mapserver-users@lists.osgeo.org" class="">mapserver-users@lists.osgeo.org</a><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " class=""><span style="font-family: Helvetica; font-size: medium; color: rgb(127, 127, 127); " class=""><b class="">Subject:<span class="Apple-converted-space">&nbsp;</span></b></span><span style="font-family: Helvetica; font-size: medium; " class=""><b class="">Re: [mapserver-users] Layer rendering performance problem</b><br class=""></span></div><br class=""><br class="">On 11-05-11 9:59 PM, Ben Madin wrote:<br class=""><blockquote type="cite">I'm not sure whether it is still the case, but it used also to be that<br class=""></blockquote><blockquote type="cite">if you wanted to use the index, you need to name the shapefile without<br class=""></blockquote><blockquote type="cite">the .shp extension. If you used the .shp extension it wouldn't use the<br class=""></blockquote><blockquote type="cite">.qix index.<br class=""></blockquote><blockquote type="cite"><br class=""></blockquote><blockquote type="cite">So maybe this is a question - Is that still the case?<br class=""></blockquote><br class="">Hi Ben,<br class=""><br class="">This is documented at:<span class="Apple-converted-space">&nbsp;</span><a href="http://www.mapserver.org/utilities/shptree.html#mapfile-notes" class="">http://www.mapserver.org/utilities/shptree.html#mapfile-notes</a><br class=""><br class="">"Note: As of MapServer 5.2 the qix will be used even when the .shp extension is specified"<br class=""><br class="">PS. this is why I always push the documentation team/developers to record the version number the change applies to, directly in the document.<br class=""><br class="">-jeff<br class=""><br class="">--<span class="Apple-converted-space">&nbsp;</span><br class="">Jeff McKenna<br class="">MapServer Consulting and Training Services<br class=""><a href="http://www.gatewaygeomatics.com/" class="">http://www.gatewaygeomatics.com/</a><br class=""><br class=""></span></blockquote></div><br class=""></div></body></html>