<div dir="ltr"><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Can you report the epsg code for your layer? <br></div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">And then, can you check the order of the epsg codes listed in your 
 INCLUDE '../../common_metadata.map'file?</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">I've found that the projection of the layer being searched needs to be listed<u> first </u>in the list of projections for 
'ows_srs' and 
'wfs_srs, otherwise the search will return no results.</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Not sure if that is a bug, but I've had it come up with users a couple of times, and have been meaning to report it so that people are at least aware of it. It's particularly hard for users to figure out because the key lines are in the INCLUDE file.</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">maybe that helps you solve the problem?</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Tanya<br>

</div><div class="gmail_default" style="font-size:large"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail-m_6181369111404048651gmail-m_739815537338638089gmail_attr">On Mon, Jan 14, 2019 at 9:56 AM Jim Klassen <<a href="mailto:klassen.js@gmail.com" target="_blank">klassen.js@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>I think that means that MapServer isn't returning any results. 
      There are many potential causes for that.  It could be the query
      is running properly but not returning any features because nothing
      matched, it could be there is a problem in the mapfile or mapbook,
      maybe an encoding problem, ...</p>
    <p>Can you see what GeoMoose is sending to mapserver and how
      mapserver is responding using the browser developer tools?<br>
    </p>
    <div class="gmail-m_6181369111404048651gmail-m_739815537338638089gmail-m_7261362199125718153moz-cite-prefix">On 1/12/19 5:08 PM, Stathis G.
      Arapostathis wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">Hello,
            <div><br>
            </div>
            <div>I followed the example of the parcels dataset of the
              gm3 demo and I created two map-sources in mapbook for the
              same dataset. </div>
            <div><br>
            </div>
            <div>The first one uses type = mapserver while the second
              one uses type = mapserver-wfs.  </div>
            <div><br>
            </div>
            <div>I did this because the search service does not work
              with the mapserver type.</div>
            <div><br>
            </div>
            <div>I can see both of my layers in my geomoose app (the
              names of the layers are cemeteries/cemeteries and
              vector-cemeteries/cemeteries).</div>
            <div><br>
            </div>
            <div>But:</div>
            <div><br>
            </div>
            <div>When i use search with the the
              vector-cemeteries/cemeteries layer (type=mapserver-wfs)
              the layer is recognized (I see layer:1 in the results) but
              the features are not (I see features:0 in the results). As
              a result search is not working properly.<br>
            </div>
            <div><br>
            </div>
            <div>I use the same .map file for both of them layers of
              mapbook. </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>Below you can find the search template and the addition
              in app.js</div>
            <div>===================================</div>
            <div><br>
            </div>
            <div>My search template is pretty simple:</div>
            <div>
              <div><![CDATA[</div>
              <div>                <div class="search-result"></div>
              <div>                    <div class="search-label"></div>
              <div>                        {{ <a href="http://properties.name" target="_blank">properties.name</a>
                }}</div>
              <div>                    </div></div>
              <div>                    <div class="search-action"></div>
              <div>                        <div style="padding:
                2px"></div>
              <div>                            <a
                onClick="app.zoomToExtent([{{ properties.boundedBy |
                join }}])" class="zoomto-link"></div>
              <div>                                <i class="fa
                fa-search"></i></div>
              <div>                                {{ <a href="http://properties.id" target="_blank">properties.id</a>
                }}</div>
              <div>                            </a></div>
              <div>                        </div></div>
              <div>                    </div></div>
              <div>                    <div
                class="search-address"></div>
              <div>                        {{ <a href="http://properties.name" target="_blank">properties.name</a>
                }}<br/></div>
              <div>                        {{ properties.city
                }}<br/></div>
              <div>                    </div></div>
              <div>                </div></div>
              <div>            ]]></div>
            </div>
            <div><br>
            </div>
            <div>The javascript code of the app.js is:</div>
            <div><br>
            </div>
            <div>
              <div>app.registerService('search-cemeteries',
                SearchService, {</div>
              <div>         searchLayers:
                ['vector-cemeteries/cemeteries'],</div>
              <div><span style="white-space:pre-wrap">            </span>fields: [</div>
              <div>            {type: 'select', label: 'City', name:
                "id",</div>
              <div>             options: [</div>
              <div>                { label: "Ακρωτήριο Πούντα", value:
                "17" },</div>
              <div><span style="white-space:pre-wrap">                            </span>{ label:
                "Αλεξανδρούπολη", value: "6" },</div>
              <div>                { label: "Θεσσαλονίκη (Ζέιτενλινκ)",
                value: "2" },</div>
              <div><span style="white-space:pre-wrap">                    </span>    { label:
                "Καλαμαριά (κοιμητήριο)", value: "18" },</div>
              <div><span style="white-space:pre-wrap">                            </span>{ label:
                "Καλαμαριά (επιτύμβιες στήλες)", value: "3" },</div>
              <div><span style="white-space:pre-wrap">                            </span>{ label:
                "Καλοσκοπή", value: "10" },</div>
              <div>                { label: "Καρούτες", value: "12" },</div>
              <div><span style="white-space:pre-wrap">                            </span>{ label:
                "Κάτω Κορυφή", value: "11" },</div>
              <div><span style="white-space:pre-wrap">                            </span>{ label:
                "Μεσόβουνο  (Κοζάνη)", value: "9" },</div>
              <div>                { label: "Μούδρος", value: "7" },</div>
              <div><span style="white-space:pre-wrap">                            </span>{ label:
                "Μπράλος", value: "8" },</div>
              <div><span style="white-space:pre-wrap">                            </span>{ label:
                "Παλαιό Φάληρο", value: "13" },</div>
              <div>                { label: "Πειραιάς", value: "1" },</div>
              <div><span style="white-space:pre-wrap">                            </span>{ label:
                "Πεντάλοφος (Κοζάνη)", value: "16" },</div>
              <div><span style="white-space:pre-wrap">                            </span>{ label:
                "Ρέθυμνο", value: "4" },</div>
              <div>                { label: "Στυλίδα", value: "14" },</div>
              <div><span style="white-space:pre-wrap">                            </span>{ label:
                "Σφακτηρία (Μεσσηνία)", value: "15" },</div>
              <div>                { label: "Χανιά", value: "5" }</div>
              <div>             ]</div>
              <div><span style="white-space:pre-wrap">                    </span> }</div>
              <div>        ]</div>
              <div>       </div>
              <div>    });</div>
            </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <div id="gmail-m_6181369111404048651gmail-m_739815537338638089gmail-m_7261362199125718153DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
        <table style="border-top:1px solid rgb(211,212,222)">
          <tbody>
            <tr>
              <td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon" target="_blank"><img alt="" style="width: 46px; height: 29px;" width="46" height="29"></a></td>
              <td style="width:470px;padding-top:12px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free.
                <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link" style="color:rgb(68,83,234)" target="_blank">www.avast.com</a> </td>
            </tr>
          </tbody>
        </table>
      </div>
      <br>
      <fieldset class="gmail-m_6181369111404048651gmail-m_739815537338638089gmail-m_7261362199125718153mimeAttachmentHeader"></fieldset>
      <pre class="gmail-m_6181369111404048651gmail-m_739815537338638089gmail-m_7261362199125718153moz-quote-pre">_______________________________________________
Geomoose-users mailing list
<a class="gmail-m_6181369111404048651gmail-m_739815537338638089gmail-m_7261362199125718153moz-txt-link-abbreviated" href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a>
<a class="gmail-m_6181369111404048651gmail-m_739815537338638089gmail-m_7261362199125718153moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a></pre>
    </blockquote>
  </div>

_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a></blockquote></div>