[geotk] CRS issue with WFS module

Stephane Fellah stephanef at imagemattersllc.com
Fri Oct 27 13:23:42 PDT 2017


Victory !!! I got it working. TIE has been established with Geosolutions
WFS.

Here a rendering of the following request
<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%22urn%3Aogc%3Adef%3Acrs%3AEPSG%3A8.9%3A4326%22%3E%0A++++++%3Cgml%3AlowerCorner%3E32.60332015732547+36.08140948869223%3C%2Fgml%3AlowerCorner%3E%0A++++++%3Cgml%3AupperCorner%3E32.64407984267453+36.12149051130776%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%3AStructureSrf&REQUEST=GETFEATURE&VERSION=1.1.0&SERVICE=WFS>
:


http://cloudsdi.geo-solutions.it/geoserver/daraa/ows?service=WFS&NAMESPACE=xmlns(daraa=http://daraa.cloudsdi.geo-solutions.it/)&FILTER=<?xml
version="1.0" encoding="UTF-8" standalone="yes"?>
<ogc:Filter xmlns:ns6="http://geotoolkit.org" xmlns:se="
http://www.opengis.net/se" xmlns:ns8="http://www.opengis.net/gml/3.2"
xmlns:gml="http://www.opengis.net/gml" xmlns:sld="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="
http://www.w3.org/1999/xlink">
  <ogc:BBOX>
    <ogc:PropertyName>the_geom</ogc:PropertyName>
    <gml:Envelope srsName="urn:ogc:def:crs:EPSG:8.9:4326">
      <gml:lowerCorner>32.60332015732547 36.08140948869223</gml:lowerCorner>
      <gml:upperCorner>32.64407984267453 36.12149051130776</gml:upperCorner>
    </gml:Envelope>
  </ogc:BBOX>
</ogc:Filter>
&PROPERTYNAME=the_geom&TYPENAME=daraa:StructureSrf&REQUEST=GETFEATURE&VERSION=1.1.0&SERVICE=WFS

Notice it works even if the WFS uses the short version in its capabilities.


[image: Inline image 1]


Simone, please confirm that the features are displayed correctly.
Martin, please deploy the jar files into your maven repository.

Thank you sooo much Simone, Andrea and Martin !

Regards

Stephane



On Fri, Oct 27, 2017 at 3:43 PM, Stephane Fellah <
stephanef at imagemattersllc.com> wrote:

> Simone,
>
> Would you mind to put back the CRS in urn form like before to test the
> update. Thanks
>
> Stephane
>
> On Fri, Oct 27, 2017 at 3:32 PM, Stephane Fellah <
> stephanef at imagemattersllc.com> wrote:
>
>> Martin,
>>
>> Let me check it out. I will test it and let you know if it works or not.
>>
>> Stephane
>>
>> On Fri, Oct 27, 2017 at 3:01 PM, Martin Desruisseaux <
>> martin.desruisseaux at geomatys.com> wrote:
>>
>>> Hello Stephane
>>>
>>> I created a 4.0.4 branch on https://github.com/Geomatys/geotoolkit/.
>>> Can you clone it, build with Maven and test?
>>>
>>>
>>> Le 27/10/2017 à 18:09, Stephane Fellah a écrit :
>>>
>>> The code snippet that breaks is in the WFSFeatureStore.java  (line 138)
>>>
>>> Actually that snippet was for code parsing instead than code formatting.
>>> I'm not sure why it shorten URNs before to pass them to the
>>> CRS.forCode(String) static method since the later already understand
>>> URNs. In doubt, I left it unchanged.
>>>
>>>     Martin
>>>
>>>
>>>
>>
>>
>> --
>> Stephane Fellah
>> Chief  Knowledge Scientist
>> Image Matters LLC
>> Office: +(703) 669 5510 <(703)%20669-5510>
>> Cell: 703 431 9420 <(703)%20431-9420>
>>
>
>
>
> --
> Stephane Fellah
> Chief  Knowledge Scientist
> Image Matters LLC
> Office: +(703) 669 5510 <(703)%20669-5510>
> Cell: 703 431 9420 <(703)%20431-9420>
>



-- 
Stephane Fellah
Chief  Knowledge Scientist
Image Matters LLC
Office: +(703) 669 5510
Cell: 703 431 9420
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20171027/80559751/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 50278 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20171027/80559751/attachment-0001.png>


More information about the Geotoolkit mailing list