[postgis-tickets] [PostGIS] #3708: within function gives wrong results

PostGIS trac at osgeo.org
Mon Feb 13 06:47:51 PST 2017


#3708: within function gives wrong results
-------------------------+--------------------------------
  Reporter:  gisdev1982  |      Owner:  pramsey
      Type:  defect      |     Status:  closed
  Priority:  high        |  Milestone:  PostGIS PostgreSQL
 Component:  postgis     |    Version:  1.5.X
Resolution:  wontfix     |   Keywords:
-------------------------+--------------------------------

Comment (by robe):

 More information.  I happen to have a PostGIS 1.5.5 lying around and get
 true on that:


 {{{
 SELECT postgis_full_version();

 POSTGIS="1.5.5" GEOS="3.3.8-CAPI-1.7.8" PROJ="Rel. 4.6.1, 21 August 2008"
 LIBXML="2.7.8"
 }}}


 {{{
 SELECT ST_Within(st_geomfromtext('POLYGON((61 34,66 34,66 31,61 31,61
 34))',101), st_geomfromtext('POLYGON((62 48,83 48,83 29,55 29,55 33,62
 48))',101));

 st_within
 ----------
 t
 }}}


 So seems your problem might be with GEOS. Upgrade your GEOS and see if it
 fixes your issue.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3708#comment:2>
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