Skip to content

Instantly share code, notes, and snippets.

@JakobMiksch
Created November 7, 2023 11:11
Show Gist options
  • Select an option

  • Save JakobMiksch/c4b654d934492a5622e6f041456ed07c to your computer and use it in GitHub Desktop.

Select an option

Save JakobMiksch/c4b654d934492a5622e6f041456ed07c to your computer and use it in GitHub Desktop.
WFS Filter Points by Polygon

WFS Filter

Request:

http://localhost:9000?service=WFS&version=1.1.0&request=GetFeature&TypeName=places&outputformat=geojson&filter=<Filter xmlns="http://www.opengis.net/ogc">
    <Intersects>
        <PropertyName>geometry</PropertyName>
        <Polygon xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
            <exterior>
                <LinearRing>
                    <posList>
                        -0.6389 42.5922
                        10.2683 51.9106
                        14.5196 41.0320
                        -0.6389 42.5922
                    </posList>
                </LinearRing>
            </exterior>
        </Polygon>
    </Intersects>
</Filter>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment