[postgis-tickets] [PostGIS] #3708: within function gives wrong results
PostGIS
trac at osgeo.org
Mon Feb 13 00:53:08 PST 2017
#3708: within function gives wrong results
------------------------+--------------------------------
Reporter: gisdev1982 | Owner: pramsey
Type: defect | Status: new
Priority: high | Milestone: PostGIS PostgreSQL
Component: postgis | Version: 1.5.X
Keywords: |
------------------------+--------------------------------
Hi Team,
While executing the following query it gives wrong results. This was
tested in postgis version from 1.2.1 to 1.5.5. In all the versions it
gives wrong results.
**Query is:**
SELECT within(geomfromtext('POLYGON((61 34,66 34,66 31,61 31,61
34))',101), geomfromtext('POLYGON((62 48,83 48,83 29,55 29,55 33,62
48))',101))
It gives me 'f' as result where as it should be 't'
If I execute the same query by adding some precision as shown below it
gives me correct result.
SELECT within(geomfromtext('POLYGON((61 34,66.0000001 34,66 31,61 31,61
34))',101), geomfromtext('POLYGON((62 48,83 48,83 29,55 29,55 33,62
48))',101))
kindly help me how I can get the correct result without adding the
precision.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3708>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list