[postgis-users] ST_WITHIN not behaving as expected
Larry Morroni
larry at morroni.com
Mon Jun 30 15:26:21 PDT 2014
Found my own issue. The points make an hour glass and not a polygon.
> On Jun 27, 2014, at 11:42 PM, Larry Morroni <larry at morroni.com> wrote:
>
> Hi,
> I am running PostgeSQL 9.3.4 with PostGIS 2.1.2. I am trying to understand why ST_WITHIN is returning false with the following query:
> SELECT ST_WITHIN(
> ST_GeomFromText('POINT (-82.53946 28.00927)',4326),
> ST_GeomFromText('POLYGON ((-90.0922483515624890 26.6419340127470115, -81.5778440546874890 28.7911293883253734, -90.0922483515624890 28.7911293883253734, -81.5778440546874890 26.6419340127470115, -90.0922483515624890 26.6419340127470115))',4326)
> )
>
> If I place these shapes on a map then you can see that the point (blue) is clearly within this polygon bounds (attached). -> http://imagebin.org/314574
> I probably don't understand ST_WITHIN properly. Can someone shed some light for me? What am I doing wrong?
>
> Larry
>
>
>
>
> <Screen Shot 2014-06-27 at 11.19.35 PM.png>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list