I'm still trying to get even the simplest of queries to work.

Looking here, it appears that if I want to do a DWithin, I need to include a
<PropertyName>, a GML Geometry, and a <Distance>.

So I'm trying this:

<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature
        service="WFS"
        version="2.0.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:mynamespace="mynamespace"
        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="mynamespace:myfeaturetype">
                <fes:Filter>
                        <fes:DWithin>
                                
<fes:PropertyName>mynamespace:the_geom</fes:PropertyName>
                                <fes:Point><coordinates>33.0 
-97.1</coordinates></fes:Point>
                                <fes:Distance uom="meters">1000</fes:Distance>
                        </fes:DWithin>
                </fes:Filter>
        </wfs:Query>
</wfs:GetFeature>

And I'm getting an error:

Invalid content was found starting with element 'fes:PropertyName'. One of
'{"http://www.opengis.net/fes/2.0":expression,
WC[##other:"http://www.opengis.net/fes/2.0"]}' is expected.

This looks like the XML parser is complaining about <DWithin> not being
supposed to contain a <PropertyName>, but that's exactly what the GeoServer
documentation says it's supposed to contain.

Is the GeoServer documentation wrong?

How am I supposed to build a feature query?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to