Hi,
Please make a query that is using either some of the demo layers which are installed with Geoserver or some open Geoserver WFS server like https://demo.geo-solutions.it/geoserver/wfs?service=wfs&version=2.0.0&request=getfeature&typenames=topp:states&count=5
-Jukka Rahkonen-
Lähettäjä: Diego Sanmartino [mailto:diego.sanmartino@…84…]
Lähetetty: 23. lokakuuta 2018 15:40
Vastaanottaja: Geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] gml wfs getfeature with specified epsg
···
I Have a problem with this wfs query:
<wfs:GetFeature startIndex=“0” count=“20” service=“WFS” version=“2.0”
xmlns:wfs=“http://www.opengis.net/wfs/2.0” xmlns:fes=“http://www.opengis.net/fes/2.0”
xmlns:gml=“http://www.opengis.net/gml/3.2” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=“http://www.opengis.net/wfs/2.0
http://schemas.opengis.net/wfs/2.0/wfs.xsd
http://www.opengis.net/gml/3.2
http://schemas.opengis.net/gml/3.2.1/gml.xsd”>
<wfs:Query typeNames=“” srsName=“EPSG:31469”>
fes:Filterfes:Intersectsfes:ValueReferencegeometria</fes:ValueReference>
<gml:Polygon srsName=“EPSG:3857”>gml:exteriorgml:LinearRinggml:posList
1433958.4075616072 5765887.920716482
1433958.4075616072 5482153.671721908
1788626.218804825 5482153.671721908
1788626.218804825 5765887.920716482
1433958.4075616072 5765887.920716482
</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon>
</fes:Intersects></fes:Filter></wfs:Query></wfs:GetFeature>
The query finds no results.
But this similar query finds the reluts (correctly):
http://myhost/geoserver/ows?service=WFS&version=2.0.0&request=GetFeature&
typeName=&srsName=EPSG:31469&
bbox=1433958.4075616072,5482153.920716482,1788626.218804825,5765887.920716482,EPSG:3857&
maxFeatures=2
In both queries I have to specify the srs of bbox or polygon.
Can someone help me?
Thank in advance