<div dir="ltr"><div>Martin,</div><div><br></div><div><div style="font-size:12.8px">After further investigation of a integration problem with Geoserver WFS using Geotoolkit 4.0.0 WFS module (for OGC Testbed 13), we have determined that there is a bug in the Geotoolkit implementation. </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The following WFS <a href="http://cloudsdi.geo-solutions.it/geoserver/daraa/ows?service=WFS&request=GetCapabilities">http://cloudsdi.geo-solutions.it/geoserver/daraa/ows?service=WFS&request=GetCapabilities </a>publishes the following EPSG code  <span style="color:rgb(26,26,166);font-family:monospace;font-size:13px">urn:ogc:def:crs:EPSG::<wbr>4326. </span>The client is able to access the server and read the information from the feature types and capabilities. However, when it comes to sending a GetFeature request to the server, the CRS is truncated to EPSG:4326. The service does not return any features.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="http://cloudsdi.geo-solutions.it/geoserver/daraa/ows?service=WFS&NAMESPACE=xmlns(daraa=http://daraa.cloudsdi.geo-solutions.it/)&FILTER=" target="_blank">http://cloudsdi.geo-solutions.<wbr>it/geoserver/daraa/ows?<wbr>service=WFS&NAMESPACE=xmlns(<wbr>daraa=http://daraa.cloudsdi.<wbr>geo-solutions.it/)&FILTER=</a><?<wbr>xml version="1.0" encoding="UTF-8" standalone="yes"?><br><ogc:Filter xmlns:ns6="<a href="http://geotoolkit.org/" target="_blank">http://geotoolkit.<wbr>org</a>" xmlns:se="<a href="http://www.opengis.net/se" target="_blank">http://www.opengis.<wbr>net/se</a>" xmlns:ns8="<a href="http://www.opengis.net/gml/3.2" target="_blank">http://www.opengis.<wbr>net/gml/3.2</a>" xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.<wbr>net/gml</a>" xmlns:sld="<a href="http://www.opengis.net/sld" target="_blank">http://www.opengis.<wbr>net/sld</a>" xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.<wbr>net/ogc</a>" xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.<wbr>org/1999/xlink</a>"><br>  <ogc:BBOX><br>    <ogc:PropertyName>the_geom</<wbr>ogc:PropertyName><br>    <gml:Envelope srsName="<b>EPSG:4326</b>"><br>      <gml:lowerCorner>33.<wbr>017708886669986 36.201202221667494</gml:<wbr>lowerCorner><br>      <gml:upperCorner>33.<wbr>20039111333 36.2924977783325</gml:<wbr>upperCorner><br>    </gml:Envelope><br>  </ogc:BBOX><br></ogc:Filter><br>&PROPERTYNAME=the_geom&<wbr>TYPENAME=daraa:daraa_<wbr>worldview_timeseries_index&<wbr>REQUEST=GETFEATURE&VERSION=1.<wbr>1.0&SERVICE=WFS</blockquote></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><b><a href="http://cloudsdi.geo-solutions.it/geoserver/daraa/ows?service=WFS&NAMESPACE=xmlns%28daraa%3Dhttp%3A%2F%2Fdaraa.cloudsdi.geo-solutions.it%2F%29&FILTER=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22%3F%3E%0A%3Cogc%3AFilter+xmlns%3Ans6%3D%22http%3A%2F%2Fgeotoolkit.org%22+xmlns%3Ase%3D%22http%3A%2F%2Fwww.opengis.net%2Fse%22+xmlns%3Ans8%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%2F3.2%22+xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22+xmlns%3Asld%3D%22http%3A%2F%2Fwww.opengis.net%2Fsld%22+xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22+xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A++%3Cogc%3ABBOX%3E%0A++++%3Cogc%3APropertyName%3Ethe_geom%3C%2Fogc%3APropertyName%3E%0A++++%3Cgml%3AEnvelope+srsName%3D%22EPSG%3A4326%22%3E%0A++++++%3Cgml%3AlowerCorner%3E33.017708886669986+36.201202221667494%3C%2Fgml%3AlowerCorner%3E%0A++++++%3Cgml%3AupperCorner%3E33.20039111333+36.2924977783325%3C%2Fgml%3AupperCorner%3E%0A++++%3C%2Fgml%3AEnvelope%3E%0A++%3C%2Fogc%3ABBOX%3E%0A%3C%2Fogc%3AFilter%3E%0A&PROPERTYNAME=the_geom&TYPENAME=daraa%3Adaraa_worldview_timeseries_index&REQUEST=GETFEATURE&VERSION=1.1.0&SERVICE=WFS" target="_blank">http://cloudsdi.geo-solutions.<wbr>it/geoserver/daraa/ows?<wbr>service=WFS&NAMESPACE=xmlns%<wbr>28daraa%3Dhttp%3A%2F%2Fdaraa.<wbr>cloudsdi.geo-solutions.it%2F%<wbr>29&FILTER=%3C%3Fxml+version%<wbr>3D%221.0%22+encoding%3D%22UTF-<wbr>8%22+standalone%3D%22yes%22%<wbr>3F%3E%0A%3Cogc%3AFilter+xmlns%<wbr>3Ans6%3D%22http%3A%2F%<wbr>2Fgeotoolkit.org%22+xmlns%<wbr>3Ase%3D%22http%3A%2F%2Fwww.<wbr>opengis.net%2Fse%22+xmlns%<wbr>3Ans8%3D%22http%3A%2F%2Fwww.<wbr>opengis.net%2Fgml%2F3.2%22+<wbr>xmlns%3Agml%3D%22http%3A%2F%<wbr>2Fwww.opengis.net%2Fgml%22+<wbr>xmlns%3Asld%3D%22http%3A%2F%<wbr>2Fwww.opengis.net%2Fsld%22+<wbr>xmlns%3Aogc%3D%22http%3A%2F%<wbr>2Fwww.opengis.net%2Fogc%22+<wbr>xmlns%3Axlink%3D%22http%3A%2F%<wbr>2Fwww.w3.org%2F1999%2Fxlink%<wbr>22%3E%0A++%3Cogc%3ABBOX%3E%0A+<wbr>+++%3Cogc%3APropertyName%<wbr>3Ethe_geom%3C%2Fogc%<wbr>3APropertyName%3E%0A++++%<wbr>3Cgml%3AEnvelope+srsName%3D%<wbr>22EPSG%3A4326%22%3E%0A++++++%<wbr>3Cgml%3AlowerCorner%3E33.<wbr>017708886669986+36.<wbr>201202221667494%3C%2Fgml%<wbr>3AlowerCorner%3E%0A++++++%<wbr>3Cgml%3AupperCorner%3E33.<wbr>20039111333+36.2924977783325%<wbr>3C%2Fgml%3AupperCorner%3E%0A++<wbr>++%3C%2Fgml%3AEnvelope%3E%0A++<wbr>%3C%2Fogc%3ABBOX%3E%0A%3C%<wbr>2Fogc%3AFilter%3E%0A&<wbr>PROPERTYNAME=the_geom&<wbr>TYPENAME=daraa%3Adaraa_<wbr>worldview_timeseries_index&<wbr>REQUEST=GETFEATURE&VERSION=1.<wbr>1.0&SERVICE=WFS</a></b><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div><br></div><div>I assume that the server does not honor this code because it expects the URN. <b>I am  not sure whether the specification indicates that the previous query is valid or not. If anyone can provide information about this, that would be great.  </b></div><div><br></div><div>The following request is working when I set the EPSG urn published in the capabilities.</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="http://cloudsdi.geo-solutions.it/geoserver/daraa/ows?service=WFS&NAMESPACE=xmlns(daraa=http://daraa.cloudsdi.geo-solutions.it/)&FILTER=" target="_blank">http://cloudsdi.geo-solutions.<wbr>it/geoserver/daraa/ows?<wbr>service=WFS&NAMESPACE=xmlns(<wbr>daraa=http://daraa.cloudsdi.<wbr>geo-solutions.it/)&FILTER=</a><?<wbr>xml version="1.0" encoding="UTF-8" standalone="yes"?><br><ogc:Filter xmlns:ns6="<a href="http://geotoolkit.org/" target="_blank">http://geotoolkit.<wbr>org</a>" xmlns:se="<a href="http://www.opengis.net/se" target="_blank">http://www.opengis.<wbr>net/se</a>" xmlns:ns8="<a href="http://www.opengis.net/gml/3.2" target="_blank">http://www.opengis.<wbr>net/gml/3.2</a>" xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.<wbr>net/gml</a>" xmlns:sld="<a href="http://www.opengis.net/sld" target="_blank">http://www.opengis.<wbr>net/sld</a>" xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.<wbr>net/ogc</a>" xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.<wbr>org/1999/xlink</a>"><br>  <ogc:BBOX><br>    <ogc:PropertyName>the_geom</<wbr>ogc:PropertyName><br>    <gml:Envelope srsName="<b>urn<span style="color:rgb(26,26,166);font-family:monospace;font-size:13px">:</span>ogc:def<span style="color:rgb(26,26,166);font-family:monospace;font-size:13px">:</span>crs:EPSG<span style="color:rgb(26,26,166);font-family:monospace;font-size:13px">:<wbr>:4326</span></b>"><br>      <gml:lowerCorner>33.<wbr>017708886669986 36.201202221667494</gml:<wbr>lowerCorner><br>      <gml:upperCorner>33.<wbr>20039111333 36.2924977783325</gml:<wbr>upperCorner><br>    </gml:Envelope><br>  </ogc:BBOX><br></ogc:Filter><br>&PROPERTYNAME=the_geom&<wbr>TYPENAME=daraa:daraa_<wbr>worldview_timeseries_index&<wbr>REQUEST=GETFEATURE&VERSION=1.<wbr>1.0&SERVICE=WFS</blockquote></div><div><br></div><div><a href="http://cloudsdi.geo-solutions.it/geoserver/daraa/ows?service=WFS&NAMESPACE=xmlns%28daraa%3Dhttp%3A%2F%2Fdaraa.cloudsdi.geo-solutions.it%2F%29&FILTER=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22yes%22%3F%3E%0A%3Cogc%3AFilter%20xmlns%3Ans6%3D%22http%3A%2F%2Fgeotoolkit.org%22%20xmlns%3Ase%3D%22http%3A%2F%2Fwww.opengis.net%2Fse%22%20xmlns%3Ans8%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%2F3.2%22%20xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22%20xmlns%3Asld%3D%22http%3A%2F%2Fwww.opengis.net%2Fsld%22%20xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%3Cogc%3ABBOX%3E%0A%20%20%20%20%3Cogc%3APropertyName%3Ethe_geom%3C%2Fogc%3APropertyName%3E%0A%20%20%20%20%3Cgml%3AEnvelope%20srsName%3D%22urn%3Aogc%3Adef%3Acrs%3AEPSG%3A%3A4326%22%3E%0A%20%20%20%20%20%20%3Cgml%3AlowerCorner%3E33.017708886669986%2036.201202221667494%3C%2Fgml%3AlowerCorner%3E%0A%20%20%20%20%20%20%3Cgml%3AupperCorner%3E33.20039111333%2036.2924977783325%3C%2Fgml%3AupperCorner%3E%0A%20%20%20%20%3C%2Fgml%3AEnvelope%3E%0A%20%20%3C%2Fogc%3ABBOX%3E%0A%3C%2Fogc%3AFilter%3E%0A&PROPERTYNAME=the_geom&TYPENAME=daraa%3Adaraa_worldview_timeseries_index&REQUEST=GETFEATURE&VERSION=1.1.0&SERVICE=WFS" target="_blank">http://cloudsdi.geo-solutions.<wbr>it/geoserver/daraa/ows?<wbr>service=WFS&NAMESPACE=xmlns%<wbr>28daraa%3Dhttp%3A%2F%2Fdaraa.<wbr>cloudsdi.geo-solutions.it%2F%<wbr>29&FILTER=%3C%3Fxml%20version%<wbr>3D%221.0%22%20encoding%3D%<wbr>22UTF-8%22%20standalone%3D%<wbr>22yes%22%3F%3E%0A%3Cogc%<wbr>3AFilter%20xmlns%3Ans6%3D%<wbr>22http%3A%2F%2Fgeotoolkit.org%<wbr>22%20xmlns%3Ase%3D%22http%3A%<wbr>2F%2Fwww.opengis.net%2Fse%22%<wbr>20xmlns%3Ans8%3D%22http%3A%2F%<wbr>2Fwww.opengis.net%2Fgml%2F3.2%<wbr>22%20xmlns%3Agml%3D%22http%3A%<wbr>2F%2Fwww.opengis.net%2Fgml%22%<wbr>20xmlns%3Asld%3D%22http%3A%2F%<wbr>2Fwww.opengis.net%2Fsld%22%<wbr>20xmlns%3Aogc%3D%22http%3A%2F%<wbr>2Fwww.opengis.net%2Fogc%22%<wbr>20xmlns%3Axlink%3D%22http%3A%<wbr>2F%2Fwww.w3.org%2F1999%<wbr>2Fxlink%22%3E%0A%20%20%3Cogc%<wbr>3ABBOX%3E%0A%20%20%20%20%<wbr>3Cogc%3APropertyName%3Ethe_<wbr>geom%3C%2Fogc%3APropertyName%<wbr>3E%0A%20%20%20%20%3Cgml%<wbr>3AEnvelope%20srsName%3D%22urn%<wbr>3Aogc%3Adef%3Acrs%3AEPSG%3A%<wbr>3A4326%22%3E%0A%20%20%20%20%<wbr>20%20%3Cgml%3AlowerCorner%<wbr>3E33.017708886669986%2036.<wbr>201202221667494%3C%2Fgml%<wbr>3AlowerCorner%3E%0A%20%20%20%<wbr>20%20%20%3Cgml%3AupperCorner%<wbr>3E33.20039111333%2036.<wbr>2924977783325%3C%2Fgml%<wbr>3AupperCorner%3E%0A%20%20%20%<wbr>20%3C%2Fgml%3AEnvelope%3E%0A%<wbr>20%20%3C%2Fogc%3ABBOX%3E%0A%<wbr>3C%2Fogc%3AFilter%3E%0A&<wbr>PROPERTYNAME=the_geom&<wbr>TYPENAME=daraa%3Adaraa_<wbr>worldview_timeseries_index&<wbr>REQUEST=GETFEATURE&VERSION=1.<wbr>1.0&SERVICE=WFS</a><br></div><div><br></div><div><br></div><div>The code snippet that breaks is in the WFSFeatureStore.java  (line 138)</div><div><br></div><div><pre style="font-family:"Courier New";font-size:9pt"><span style="color:rgb(128,128,128);font-style:italic">//extract the feature type -----------------------------------------<br></span><font color="#000000">CoordinateReferenceSystem crs;<br>FeatureType sft;<br></font><span style="color:rgb(0,0,128);font-weight:bold">try </span><font color="#000000">{<br>    String defaultCRS = ftt.getDefaultCRS();<br>    </font><span style="color:rgb(0,0,128);font-weight:bold">if</span><font color="#000000">(defaultCRS.contains(</font><span style="color:rgb(0,128,0);font-weight:bold">"EPSG"</span><font color="#000000">)){<br>        </font><span style="color:rgb(0,0,128);font-weight:bold">final int </span><font color="#000000">last = defaultCRS.lastIndexOf(</font><span style="color:rgb(0,128,0);font-weight:bold">':'</span><font color="#000000">);<br>       </font><b style="background-color:rgb(255,255,255)"><font color="#ff0000"> defaultCRS = "EPSG:"+defaultCRS.substring(last+1);</font></b><font color="#000000"><br>    }<br>    crs = CRS.</font><span style="color:rgb(0,0,0);font-style:italic">forCode</span><font color="#000000">(defaultCRS);<br>    </font><span style="color:rgb(0,0,128);font-weight:bold">if </span><font color="#000000">(getLongitudeFirst()) {<br>        crs = AbstractCRS.</font><span style="color:rgb(0,0,0);font-style:italic">castOrCopy</span><font color="#000000">(crs).forConvention(AxesConvention.</font><span style="color:rgb(102,14,122);font-weight:bold;font-style:italic">RIGHT_HANDED</span><font color="#000000">);<br>    }<br>    sft = </font><span style="color:rgb(0,0,0);background-color:rgb(228,228,255)">requestType</span><font color="#000000">(typeName);<br>} </font></pre></div><div><br></div><div>I am not sure how this issue can be fixed. Could you provide quickly a patch to this error (for branch based on 4.0.0) ? </div><div><br></div><div><br></div><div>I appreciate your help. Hope we can successfull integrate after these changes. </div></div></div><div><br></div>Regards<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-family:arial;font-size:small">Stephane Fellah<br></div><div style="font-family:arial;font-size:small">Chief  Knowledge Scientist</div><div style="font-family:arial;font-size:small">Image Matters LLC</div><div style="font-family:arial;font-size:small">Office: +(703) 669 5510</div><div style="font-family:arial;font-size:small">Cell: 703 431 9420</div></div></div></div></div>
</div>