<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18372"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Frank,</DIV>
<DIV>&nbsp;</DIV>
<DIV>It depends on where you click on the data for the query.&nbsp; Attached is a screen shot of where the different errors occur.&nbsp; Also, below is the mapfile running on MapServer 5.6.5.&nbsp; If you would like me to send you the shape files I can do that as well.&nbsp; Thanks so much for your help.</DIV>
<DIV>&nbsp;</DIV>
<DIV>EW</DIV>
<DIV>&nbsp;</DIV>
<DIV>MAP # begin .map file</DIV>
<DIV>&nbsp;</DIV>
<DIV>NAME RMR<BR>SYMBOLSET /data/gis/www/html/ms_common/symbol.list<BR>FONTSET /data/gis/www/html/ms_common/fonts/fonts.list<BR>STATUS ON<BR>SIZE 600 500<BR>EXTENT -264634.5 4050685.5 975961.5 5039620.5<BR>UNITS METERS<BR>SHAPEPATH "/data/gis/vector/rmr/shapes"<BR>DATAPATTERN ".*"<BR>TEMPLATEPATTERN ".*"<BR>RESOLUTION 96</DIV>
<DIV>&nbsp;</DIV>
<DIV>OUTPUTFORMAT<BR>&nbsp;NAME png<BR>&nbsp;DRIVER "AGG/PNG"<BR>&nbsp;MIMETYPE "image/png"<BR>&nbsp;IMAGEMODE RGB<BR>&nbsp;EXTENSION "png"<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>PROJECTION<BR>&nbsp; "init=epsg:26913"<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>WEB<BR>&nbsp; HEADER "/data/gis/www/html/ms_common/ms_header.html"<BR>&nbsp; TEMPLATE "rmrt.html"<BR>&nbsp; FOOTER "/data/gis/www/html/ms_common/ms_footer.html"<BR>&nbsp; ERROR "<A href="http://gis.hq.wapa.gov/ms_common/errort.html?[mpt]&amp;message=[errmsg">http://gis.hq.wapa.gov/ms_common/errort.html?[mpt]&amp;message=[errmsg</A>]"<BR>&nbsp; MINSCALE 100<BR>&nbsp; IMAGEPATH "/data/gis/www/html/tmp/"<BR>&nbsp; IMAGEURL "/tmp/"<BR>&nbsp; #LOG "rmrt.log"<BR>&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp; WMS_TITLE&nbsp; "Rocky Mountain Region"<BR>&nbsp;&nbsp;&nbsp; WMS_ABSTRACT "WAPA MapServer for the Rocky Mountain Region"<BR>&nbsp;&nbsp;&nbsp; WMS_ACCESSCONSTRAINTS "none"<BR>&nbsp;WMS_FEATURE_INFO_MIME_TYPE "text/html"<BR>&nbsp;&nbsp;&nbsp; WMS_ONLINERESOURCE&nbsp; "<A href="http://gis.hq.wapa.gov/cgi-bin/mapserv?map=/data/gis/www/html/rmr/rmrt.map">http://gis.hq.wapa.gov/cgi-bin/mapserv?map=/data/gis/www/html/rmr/rmrt.map</A>&amp;"<BR>&nbsp;&nbsp;&nbsp; WMS_SRS&nbsp; "EPSG:26913"<BR>&nbsp; END<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>QUERYMAP<BR>&nbsp; SIZE 400 300<BR>&nbsp; STATUS ON<BR>&nbsp; STYLE HILITE<BR>&nbsp; COLOR 0 255 255<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>REFERENCE<BR>&nbsp; STATUS ON<BR>&nbsp; IMAGE graphics/refmap.png<BR>&nbsp; EXTENT -315667.756 3995206.206 1037558.937 5080105.709<BR>&nbsp; SIZE 250 200<BR>&nbsp; MINBOXSIZE 10<BR>&nbsp; MAXBOXSIZE 100<BR>&nbsp; MARKER star<BR>&nbsp; MARKERSIZE 20<BR>&nbsp; COLOR -1 -1 -1<BR>&nbsp; OUTLINECOLOR 255 0 0<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>LEGEND<BR>&nbsp; STATUS ON<BR>&nbsp; IMAGECOLOR 255 255 255<BR>&nbsp; KEYSIZE 16 12<BR>&nbsp;&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp; TYPE TRUETYPE<BR>&nbsp;&nbsp;&nbsp; FONT "arial"<BR>&nbsp;&nbsp;&nbsp; SIZE 9<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp;&nbsp; END<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>SCALEBAR<BR>&nbsp; STATUS EMBED<BR>&nbsp; POSITION LR<BR>&nbsp; COLOR 0 0 0<BR>&nbsp; BACKGROUNDCOLOR 255 255 255<BR>&nbsp; OUTLINECOLOR 0 0 0<BR>&nbsp; UNITS MILES<BR>&nbsp; INTERVALS 4<BR>&nbsp; SIZE 200 5<BR>&nbsp; TRANSPARENT ON<BR>&nbsp; STYLE 0<BR>&nbsp;&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp; COLOR&nbsp; 255 255 255<BR>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp; FONT "arial-bold"<BR>&nbsp;&nbsp;&nbsp; TYPE truetype<BR>&nbsp;&nbsp;&nbsp; SIZE 8<BR>&nbsp;&nbsp; END<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>########## LAYER DEFINITIONS ##########</DIV>
<DIV>&nbsp;</DIV>
<DIV>LAYER<BR>&nbsp; NAME 'fotest'<BR>&nbsp; STATUS OFF<BR>&nbsp; TILEINDEX "/data/gis/vector/rmr/shapes/fo_test_idx"<BR>&nbsp; TILEITEM "location"<BR>&nbsp; TYPE POLYGON<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME "Index Test"<BR>&nbsp;TEMPLATE "strs.html"<BR>&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 255<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END<BR>&nbsp; HEADER "strs_header.html"<BR>&nbsp; FOOTER "strs_footer.html"<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>END</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR>&gt;&gt;&gt; On 10/28/2011 at 3:31 PM, in message &lt;CA+YzLBdmmvztPpkRL1D=u5gc09zHDYO_7HmYDrWEUUOyJai1_w@mail.gmail.com&gt;, Frank Warmerdam &lt;warmerdam@pobox.com&gt; wrote:<BR></DIV>
<TABLE style="MARGIN: 0px 0px 0px 15px; FONT-SIZE: 1em" border=0 bgColor=#f3f3f3>
<TBODY>
<TR>
<TD>
<DIV style="BORDER-LEFT: #050505 1px solid; PADDING-LEFT: 7px">Eric,<BR><BR>Do things fail consistently fora&nbsp; given request?&nbsp; I would be<BR>willing to do some examination of this problem this evening<BR>(pacific time) if you can provide a canned demonstration of<BR>the issue (mapfile+tileindex+query).&nbsp; I should be able to fake<BR>the data referred to by the tileindex if necessary.<BR><BR>I don't feel that adding a spatial index (.qix) is the right<BR>solution.&nbsp;&nbsp; Something is either wrong with your tileindex<BR>or with mapserver (IMHO).<BR><BR>Best regards,<BR><BR>On Fri, Oct 28, 2011 at 2:09 PM, Eric Weisbender &lt;Weisbend@wapa.gov&gt; wrote:<BR>&gt; Hello,<BR>&gt;<BR>&gt; We are using a tileindex layer to draw multiple county parcel data layers.<BR>&gt; For some reason the query of these layers is either hit or miss.&nbsp; Sometimes<BR>&gt; it returns a query.&nbsp; Other times a query returns "Invalid field index 0"<BR>&gt; from the error file defined in the mapfile.&nbsp; And the third query result I'm<BR>&gt; getting is "Internal Server Error" from I assume apache.&nbsp; These results are<BR>&gt; all on the same data indexed by this one tileindex layer.&nbsp; Would it help if<BR>&gt; I built a shptree qix file and do I just do that for the tileindex file or<BR>&gt; all file the tileindex file is pointing to.&nbsp; I have wasted two day's on this<BR>&gt; and am completely open to any and all idea's.&nbsp; Thanks in advance.<BR>&gt;<BR>&gt; EW<BR>&gt; _______________________________________________<BR>&gt; mapserver-users mailing list<BR>&gt; mapserver-users@lists.osgeo.org<BR>&gt; <A href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR>&gt;<BR>&gt;<BR><BR><BR><BR>-- <BR>---------------------------------------+--------------------------------------<BR>I set the clouds in motion - turn up&nbsp;&nbsp; | Frank Warmerdam, warmerdam@pobox.com<BR>light and sound - activate the windows | <A href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</A><BR>and watch the world go round - Rush&nbsp;&nbsp;&nbsp; | Geospatial Software Developer<BR></DIV></TD></TR></TBODY></TABLE></BODY></HTML>