That sounds like an axis order issue. Ian
On Tue, 5 May 2020 at 05:45, Travis Brundage <[email protected]> wrote: > Greetings, > > I have a layer setup in GeoServer (version 2.15.1), from a PostGIS > datastore, with a MultiPolygon geom feature. I've set its projection to > EPSG:4326 and it has "SRS handling = force declared". > > When I make a WFS GetFeature request and use a BBOX CQL filter, I > originally was getting wrong results. The filter would return no data when > I was certain the polygon was within the bbox I gave the filter, and would > return polygons elsewhere that they definitely should not be. This was > resolved when I explicitly passed it the CRS code in the BBOX filter. > > Why is my BBOX filter giving wrong results if I don't explicitly pass it > the CRS parameter? > > The reference documentation > <https://docs.geoserver.org/stable/en/user/filter/ecql_reference.html#spatial-predicate> > says that it will default to the layer's defined CRS, though my guess is > the WFS request is defaulting to the underlying geom's native CRS in > PostGIS (which is different). I thought "SRS handling = Force declared" in > the layer would override this, is that incorrect? Would a different setting > accomplish this, or will it always be the case that the CRS code needs > explicitly passed if there's a different CRS in the underlying datastore? > > Cheers, > Travis > _______________________________________________ > 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 > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Ian Turton
_______________________________________________ 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 If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
