<div dir="ltr"><div>Yes,<br><br></div>I don't know if adding <br><br><pre>PROCESSING 'NATIVE_FILTER=id'</pre>is useful but for the validation, something like:<br><div><div><div><pre><span class="">VALIDATION</span>
<span class=""># %id% must be numeric and between 1 and 8 characters</span>
<span class="">'id'</span> <span class="">'^[0-9]{1,8)$'</span>
<span class=""></span>
<span class="">END</span></pre>might improve the situation?<br><br></div><div>Also ensure that you are passing a valid id number - '1' was just a guess...<br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 7, 2016 at 1:46 PM, aperi2007 <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Perhaps the mapserver need a validation block in mapserver to
check the ID value from parameter ?</p><span class="HOEnZb"><font color="#888888">
A.
</font></span><div><div class="h5"><p><br>
</p>
<br>
<div>Il 07/05/2016 21:39, TC Haddad ha
scritto:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
Well it looks like your map file settings are fine, and a
correctly formatted URL would be:<br>
<br>
<a href="http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1" target="_blank">http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&ID=DATA_TEST.1</a><br>
<br>
</div>
However the resulting error message indicates that something may
else may be amiss:<br>
<br>
msQueryByFilter(): Search returned no results. No matching
record(s) found.<br>
LayerDefaultTranslateFilter(): General error message. This data
driver does not implement filter translation support<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, May 7, 2016 at 12:29 PM, Ian
Walberg <span dir="ltr"><<a href="mailto:ian.walberg@airborne.aero" target="_blank">ian.walberg@airborne.aero</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">And
also in the WEB section</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
METADATA</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_title" "WFS Test"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_onlineresource" "<a href="http://127.0.0.1/cgi-bin/mapserv" target="_blank"></a><a href="http://127.0.0.1/cgi-bin/mapserv" target="_blank">http://127.0.0.1/cgi-bin/mapserv</a>?"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_srs" "EPSG:4326"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_abstract" "WFS Test"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_enable_request" "*"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_getfeature_formatlist" "geojson"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Ian</span></p>
<p class="MsoNormal"><a name="m_-8258424639664176288_m_-284735010065437892__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></a></p>
<span></span>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
mapserver-users [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank"></a><a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Ian Walberg<br>
<b>Sent:</b> Saturday, May 7, 2016 12:27 PM<br>
<b>To:</b> TC Haddad <<a href="mailto:tchaddad@gmail.com" target="_blank"></a><a href="mailto:tchaddad@gmail.com" target="_blank">tchaddad@gmail.com</a>><br>
<b>Cc:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a></span></p>
<div>
<div><br>
<b>Subject:</b> Re: [mapserver-users] WFS -
featureid/resourceid</div>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Here
is what we have in the map file layer, what have
we missed?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">METADATA</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_srs" "EPSG:4326"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_title" "DATA_POI"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"gml_featureid" "id"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"gml_include_items" "all"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_enable_request" "*"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_encoding" "UTF-8"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_abstract" "Points"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
"wfs_getfeature_formatlist" "geojson"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
END</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Ian</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> TC
Haddad [<a href="mailto:tchaddad@gmail.com" target="_blank">mailto:tchaddad@gmail.com</a>]
<br>
<b>Sent:</b> Saturday, May 7, 2016 12:12 PM<br>
<b>To:</b> Ian Walberg <<a href="mailto:ian.walberg@airborne.aero" target="_blank"></a><a href="mailto:ian.walberg@airborne.aero" target="_blank">ian.walberg@airborne.aero</a>><br>
<b>Cc:</b> Rahkonen Jukka (MML) <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank"></a><a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>>;
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [mapserver-users] WFS -
featureid/resourceid</span></p>
<p class="MsoNormal"> </p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Ian <br>
<br>
you may have to enable the GetFeatureById
option in your mapfile as at the moment it
looks like you have it turned off.
</p>
</div>
<div>
<p class="MsoNormal">Put something like this
in the LAYER block to enable all WFS
requests:</p>
<pre>"wfs_enable_request" "*"</pre>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">From there you
can begin to test with:<br>
<br>
<a href="http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById" target="_blank">http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeatureById</a></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">And
the server will tell you what other parameters
you need to add to the URL in order to
successfully return a record.</p>
</div>
<div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">On Sat, May 7, 2016 at
11:44 AM, Ian Walberg <<a href="mailto:ian.walberg@airborne.aero" target="_blank"></a><a href="mailto:ian.walberg@airborne.aero" target="_blank">ian.walberg@airborne.aero</a>>
wrote:</p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Jukka,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">We
could not get that to work, what is
the syntax for our setup?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Ian</span></p>
<p class="MsoNormal"><a name="m_-8258424639664176288_m_-284735010065437892_m_8310492908958490374__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></a></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
Rahkonen Jukka (MML) [mailto:<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank"></a><a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>]
<br>
<b>Sent:</b> Saturday, May 7, 2016
10:54 AM<br>
<b>To:</b> Ian Walberg <<a href="mailto:ian.walberg@airborne.aero" target="_blank"></a><a href="mailto:ian.walberg@airborne.aero" target="_blank">ian.walberg@airborne.aero</a>>;
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> VS:
[mapserver-users] WFS -
featureid/resourceid</span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> </p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I
would try the GetFeatureById
stored query
<a href="http://mapserver.org/ogc/wfs_server.html" target="_blank">http://mapserver.org/ogc/wfs_server.html</a><br>
<br>
Jukka Rahkonen</span></p>
</div>
</div>
<div>
<div class="MsoNormal" style="text-align:center" align="center">
<hr align="center" size="3" width="100%">
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Lähettäjä:
</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a href="mailto:ian.walberg@airborne.aero" target="_blank">Ian Walberg</a></span><br>
<b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Lähetetty:
</span>
</b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">7.5.2016
20:47</span><br>
<b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Vastaanottaja:
</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank"></a><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a></span><br>
<b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Aihe:
</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">[mapserver-users]
WFS - featureid/resourceid</span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Folks,<br>
<br>
How do we select just a single
feature using FEATUREID or
RESOUCEID.<br>
<br>
<a href="http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST" target="_blank">http://wfs-dev.airborne.aero/cgi-bin/mapserv?map=/data/wfs/WFS_TEST.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=DATA_TEST</a><br>
<br>
Thanks<br>
<br>
Ian<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></span></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></p>
</blockquote>
</div>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
mapserver-users mailing list
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote></div><br></div>