wfs GetFeature returns not current features based on bounding box

Description

When my layer include big curved object like long-way road, river or lake, it is often returned even if its geometry do not cross bounding box area.
I tried to trace postgres query and saw that query returned objects that its bounding box crosses with requesting bounding box.

I think that more correctly use PostGis function ST_Intersects()

When I use ms sql spatial, it call Filter() function, that do not returned big curved objects
SELECT top 1000000 "id","geometry" as "geometry" FROM "dbo"."spatial" WHERE "geometry".Filter(geometry::STGeomFromText('POLYGON ((30.31 59.93, 30.31 59.93, 30.31 59.93, 30.31 59.93, 30.31 59.93))', 4326) ) = 1

Environment

postgresql 9.4
postgis 2.1.7
windows 8

Status

Assignee

Unassigned

Reporter

Alexandr Bobrov

Triage

None

Fix versions

None

Affects versions

Components

Priority

Medium
Configure