<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> </DIV>
<DIV>It depends on where you click on the data for the query. Attached is a screen shot of where the different errors occur. Also, below is the mapfile running on MapServer 5.6.5. If you would like me to send you the shape files I can do that as well. Thanks so much for your help.</DIV>
<DIV> </DIV>
<DIV>EW</DIV>
<DIV> </DIV>
<DIV>MAP # begin .map file</DIV>
<DIV> </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> </DIV>
<DIV>OUTPUTFORMAT<BR> NAME png<BR> DRIVER "AGG/PNG"<BR> MIMETYPE "image/png"<BR> IMAGEMODE RGB<BR> EXTENSION "png"<BR>END</DIV>
<DIV> </DIV>
<DIV>PROJECTION<BR> "init=epsg:26913"<BR>END</DIV>
<DIV> </DIV>
<DIV>WEB<BR> HEADER "/data/gis/www/html/ms_common/ms_header.html"<BR> TEMPLATE "rmrt.html"<BR> FOOTER "/data/gis/www/html/ms_common/ms_footer.html"<BR> ERROR "<A href="http://gis.hq.wapa.gov/ms_common/errort.html?[mpt]&message=[errmsg">http://gis.hq.wapa.gov/ms_common/errort.html?[mpt]&message=[errmsg</A>]"<BR> MINSCALE 100<BR> IMAGEPATH "/data/gis/www/html/tmp/"<BR> IMAGEURL "/tmp/"<BR> #LOG "rmrt.log"<BR> METADATA<BR> WMS_TITLE "Rocky Mountain Region"<BR> WMS_ABSTRACT "WAPA MapServer for the Rocky Mountain Region"<BR> WMS_ACCESSCONSTRAINTS "none"<BR> WMS_FEATURE_INFO_MIME_TYPE "text/html"<BR> WMS_ONLINERESOURCE "<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>&"<BR> WMS_SRS "EPSG:26913"<BR> END<BR>END</DIV>
<DIV> </DIV>
<DIV>QUERYMAP<BR> SIZE 400 300<BR> STATUS ON<BR> STYLE HILITE<BR> COLOR 0 255 255<BR>END</DIV>
<DIV> </DIV>
<DIV>REFERENCE<BR> STATUS ON<BR> IMAGE graphics/refmap.png<BR> EXTENT -315667.756 3995206.206 1037558.937 5080105.709<BR> SIZE 250 200<BR> MINBOXSIZE 10<BR> MAXBOXSIZE 100<BR> MARKER star<BR> MARKERSIZE 20<BR> COLOR -1 -1 -1<BR> OUTLINECOLOR 255 0 0<BR>END</DIV>
<DIV> </DIV>
<DIV>LEGEND<BR> STATUS ON<BR> IMAGECOLOR 255 255 255<BR> KEYSIZE 16 12<BR> LABEL<BR> TYPE TRUETYPE<BR> FONT "arial"<BR> SIZE 9<BR> COLOR 0 0 0<BR> END<BR>END</DIV>
<DIV> </DIV>
<DIV>SCALEBAR<BR> STATUS EMBED<BR> POSITION LR<BR> COLOR 0 0 0<BR> BACKGROUNDCOLOR 255 255 255<BR> OUTLINECOLOR 0 0 0<BR> UNITS MILES<BR> INTERVALS 4<BR> SIZE 200 5<BR> TRANSPARENT ON<BR> STYLE 0<BR> LABEL<BR> COLOR 255 255 255<BR> OUTLINECOLOR 0 0 0<BR> FONT "arial-bold"<BR> TYPE truetype<BR> SIZE 8<BR> END<BR>END</DIV>
<DIV> </DIV>
<DIV>########## LAYER DEFINITIONS ##########</DIV>
<DIV> </DIV>
<DIV>LAYER<BR> NAME 'fotest'<BR> STATUS OFF<BR> TILEINDEX "/data/gis/vector/rmr/shapes/fo_test_idx"<BR> TILEITEM "location"<BR> TYPE POLYGON<BR> CLASS<BR> NAME "Index Test"<BR> TEMPLATE "strs.html"<BR> STYLE<BR> OUTLINECOLOR 0 0 255<BR> END<BR> END<BR> HEADER "strs_header.html"<BR> FOOTER "strs_footer.html"<BR>END</DIV>
<DIV> </DIV>
<DIV>END</DIV>
<DIV> </DIV>
<DIV><BR><BR>>>> On 10/28/2011 at 3:31 PM, in message <CA+YzLBdmmvztPpkRL1D=u5gc09zHDYO_7HmYDrWEUUOyJai1_w@mail.gmail.com>, Frank Warmerdam <warmerdam@pobox.com> 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 given request? 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). 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. 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 <Weisbend@wapa.gov> wrote:<BR>> Hello,<BR>><BR>> We are using a tileindex layer to draw multiple county parcel data layers.<BR>> For some reason the query of these layers is either hit or miss. Sometimes<BR>> it returns a query. Other times a query returns "Invalid field index 0"<BR>> from the error file defined in the mapfile. And the third query result I'm<BR>> getting is "Internal Server Error" from I assume apache. These results are<BR>> all on the same data indexed by this one tileindex layer. Would it help if<BR>> I built a shptree qix file and do I just do that for the tileindex file or<BR>> all file the tileindex file is pointing to. I have wasted two day's on this<BR>> and am completely open to any and all idea's. Thanks in advance.<BR>><BR>> EW<BR>> _______________________________________________<BR>> mapserver-users mailing list<BR>> mapserver-users@lists.osgeo.org<BR>> <A href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR>><BR>><BR><BR><BR><BR>-- <BR>---------------------------------------+--------------------------------------<BR>I set the clouds in motion - turn up | 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 | Geospatial Software Developer<BR></DIV></TD></TR></TBODY></TABLE></BODY></HTML>