<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Geomoosers,<br>
    <br>
     FYI, here's my solution for GeoMoose 2.7.1 when using a lat/lon
    shapefile and getting "No results found for your query".  I'll file
    an Issue for the query.php fix.<br>
    <br>
    Brent Fraser<br>
    <div class="moz-forward-container"><br>
      <br>
      -------- Forwarded Message --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
            </th>
            <td>Re: Firebug results</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
            <td>Sun, 26 Jul 2015 21:21:41 -0600</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
            <td>Brent Fraser <a class="moz-txt-link-rfc2396E" href="mailto:bfraser@geoanalytic.com"><bfraser@geoanalytic.com></a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Organization:
            </th>
            <td>GeoAnalytic Inc.</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
            <td>Simon Gathuri <a class="moz-txt-link-rfc2396E" href="mailto:simon.gathuri@yahoo.com"><simon.gathuri@yahoo.com></a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      Here's what I have,<br>
      <br>
      <tt>    <service name="search_parcels" title="Search"
        clear-highlight="true"></tt><tt><br>
      </tt><tt>        <url>php/query.php</url></tt><tt><br>
      </tt><tt>        <step type="input"></tt><tt><br>
      </tt><tt>            <input type="hidden" name="highlight"
        value="true"/></tt><tt><br>
      </tt><tt>            <input type="hidden" name="mode"
        value="search"/></tt><tt><br>
      </tt><tt><br>
      </tt><tt>            <input type="hidden" name="layer0"    
        value="MS_projeclatlongt/projeclatlongt"/></tt><tt><br>
      </tt><tt>            <input type="hidden" name="template0" 
        value="itemquery"/></tt><tt><br>
      </tt><tt>                        <input type="select"
        name="fieldname0" title="Search By:"></tt><tt><br>
      </tt><tt>                             <option
        value="PLOTNO_1">LR NO</option></tt><tt><br>
      </tt><tt>                             <option
        value="PAID">Status</option></tt><tt><br>
      </tt><tt>                        </input></tt><tt><br>
      </tt><tt>            <input type="hidden" name="comparitor0"
        value="eq-str"/></tt><tt><br>
      </tt><tt>                        <input type="user" 
        name="value0" title=""/></tt><tt><br>
      </tt><tt>        </step></tt><tt><br>
      </tt><tt>    </service></tt><br>
      <br>
      <br>
      and a search_result.html:<br>
      <br>
      <tt><!-- MapServer Template --></tt><tt><br>
      </tt><tt><b>PLOT NO:</b> <a data-pin="[PLOTNO_1]"
        id="gm-parcel-[PLOTNO_1]" class='sprite-control
        sprite-control-find-selected' style="padding-left: 22px"
        parcel-shape="[shpxy precision=5]" href=<a
          moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="javascript:GeoMOOSE.zoomToPointsList(dojo.byId('gm-parcel-[PLOTNO_1]').getAttribute('parcel-shape'),'EPSG:4326');"><a class="moz-txt-link-rfc2396E" href="javascript:GeoMOOSE.zoomToPointsList(dojo.byId('gm-parcel-[PLOTNO_1]').getAttribute('parcel-shape'),'EPSG:4326');">"javascript:GeoMOOSE.zoomToPointsList(dojo.byId('gm-parcel-[PLOTNO_1]').getAttribute('parcel-shape'),

          'EPSG:4326');"</a></a>>[PLOTNO_1]</a><br/></tt><tt><br>
      </tt><tt><b>PLOT_NO2:</b> [PLOTNO_1]<br/></tt><tt><br>
      </tt><tt><hr/></tt><br>
      <br>
      And I added some code to query.php (the lines in bold):<br>
      <br>
      <b><tt>                    $map_projection_def =
          $map->getProjection();</tt></b><b><tt><br>
        </tt></b><b><tt>                    $map_projection_obj =
          ms_newProjectionObj($map_projection_def);</tt></b><b><tt><br>
        </tt></b><b><tt><br>
        </tt></b><b><tt>                   
          if($queryLayer->getProjection() != NULL) {</tt></b><b><tt><br>
        </tt></b><b><tt>                        $projection =
          $queryLayer->getProjection();</tt></b><b><tt><br>
        </tt></b><b><tt>                    }</tt></b><b><tt><br>
        </tt></b><b><tt>                    if($projection != NULL) {</tt></b><b><tt><br>
        </tt></b><b><tt>                        # reproject the query
          shape as available.</tt></b><b><tt><br>
        </tt></b><b><tt>                        $projection =
          ms_newProjectionObj($projection);</tt></b><b><tt><br>
        </tt></b><b><tt>                    }</tt></b><b><tt><br>
        </tt></b><b><tt>                    if($projection) {</tt></b><b><tt><br>
        </tt></b><b><tt>                       
          $ext->project($projection, $map_projection_obj);</tt></b><b><tt><br>
        </tt></b><b><tt>                    }</tt></b><b><tt><br>
        </tt></b><b><tt>                    if($DEBUG) {</tt></b><b><tt><br>
        </tt></b><b><tt>                        error_log(implode(',',
          array($ext->minx,$ext->miny,$ext->maxx,$ext->maxy)));</tt></b><b><tt><br>
        </tt></b><b><tt>                       
          error_log("<br/>extent for query in map
          SRS.<br/>");</tt></b><b><tt><br>
        </tt></b><b><tt>                    }</tt></b><tt><br>
      </tt><tt><br>
      </tt><tt>                    $queryLayer->open();</tt><tt><br>
      </tt><tt>                    if($DEBUG) { error_log('queryLayer
        opened'); }</tt><tt><br>
      </tt><tt>                    $queryLayer->queryByRect($ext);</tt><tt><br>
      </tt><tt>                    if($DEBUG) { error_log('queryLayer
        queried'); }</tt><br>
      <br>
      I could ship you an updated query.php, but I need to know which
      version of GeoMoose you are using.<br>
      <pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
      <div class="moz-cite-prefix">On 7/26/2015 9:07 PM, Simon Gathuri
        wrote:<br>
      </div>
      <blockquote
        cite="mid:739978798.3162191.1437966476372.JavaMail.yahoo@mail.yahoo.com"
        type="cite">
        <div style="color:#000; background-color:#fff;
          font-family:lucida console, sans-serif;font-size:16px">
          <div id="yui_3_16_0_1_1437966297385_3044" dir="ltr"><span
              id="yui_3_16_0_1_1437966297385_2919" class="">comparitor0</span><code
              id="yui_3_16_0_1_1437966297385_2923" role="listitem"
              class="">like-icase</code><span
              id="yui_3_16_0_1_1437966297385_2929" class="">comparitor1</span><code
              id="yui_3_16_0_1_1437966297385_2933" role="listitem"
              class="">gt</code><span
              id="yui_3_16_0_1_1437966297385_2939" class="">dojo.preventCache</span><code
              id="yui_3_16_0_1_1437966297385_2943" role="listitem"
              class="">1437966212722</code><span
              id="yui_3_16_0_1_1437966297385_2949" class="">fieldname0</span><code
              id="yui_3_16_0_1_1437966297385_2953" role="listitem"
              class="">PLOTNO_1</code><span
              id="yui_3_16_0_1_1437966297385_2959" class="">fieldname1</span><code
              id="yui_3_16_0_1_1437966297385_2963" role="listitem"
              class="">AREA</code><span
              id="yui_3_16_0_1_1437966297385_2969" class="">highlight</span><code
              id="yui_3_16_0_1_1437966297385_2973" role="listitem"
              class="">true</code><span
              id="yui_3_16_0_1_1437966297385_2979" class="">layer0</span><code
              id="yui_3_16_0_1_1437966297385_2983" role="listitem"
              class="">projeclatlongt/projeclatlongt</code><span
              id="yui_3_16_0_1_1437966297385_2989" class="">mode</span><code
              id="yui_3_16_0_1_1437966297385_2993" role="listitem"
              class="">search</code><span
              id="yui_3_16_0_1_1437966297385_2999" class="">operator1</span><code
              id="yui_3_16_0_1_1437966297385_3003" role="listitem"
              class="">or</code><span
              id="yui_3_16_0_1_1437966297385_3009" class="">template0</span><code
              id="yui_3_16_0_1_1437966297385_3013" role="listitem"
              class="">itemquery</code><span
              id="yui_3_16_0_1_1437966297385_3019" class="">value0</span><code
              id="yui_3_16_0_1_1437966297385_3023" role="listitem"
              class="">24612</code><span
              id="yui_3_16_0_1_1437966297385_3029" class="">value1</span><br>
          </div>
          <div id="yui_3_16_0_1_1437966297385_3037" class="">Source</div>
          <code id="yui_3_16_0_1_1437966297385_3039" role="listitem"
            class="">highlight=true&mode=search&layer0=projeclatlongt%2Fprojeclatlongt&template0=itemquery&fieldname0=PLOTNO_1</code><code
            id="yui_3_16_0_1_1437966297385_3041" role="listitem"
            class="">&comparitor0=like-icase&value0=24612&fieldname1=AREA&operator1=or&comparitor1=gt&value1=&dojo.preventCache</code><code
            id="yui_3_16_0_1_1437966297385_3043" role="listitem"
            class="">=143796621272</code>
          <div id="yui_3_16_0_1_1437966297385_3234" dir="ltr"><br>
            <code id="yui_3_16_0_1_1437966297385_3043" role="listitem"
              class=""></code></div>
          <div id="yui_3_16_0_1_1437966297385_3235" dir="ltr"><br>
            <code id="yui_3_16_0_1_1437966297385_3043" role="listitem"
              class=""></code></div>
          <div id="yui_3_16_0_1_1437966297385_3378" dir="ltr"><code
              id="yui_3_16_0_1_1437966297385_3043" role="listitem"
              class="">I request you to rewrite the search part in the
              mapbook you worked before. I think it is easier because i
              may be missing something may be wrong defination<br>
            </code></div>
        </div>
      </blockquote>
      <br>
      <br>
    </div>
    <br>
  </body>
</html>