[postgis-users] Still some erros with "point within polygon"

Arnaud Lesauvage thewild at freesurf.fr
Fri Feb 16 07:15:39 PST 2007


Hi list,

I think there is still problem with the point-in-polygon shortcut in 1.2.1 :


"Within" returns false :

SELECT Within(GeomFromText('POINT(521513.234052322 5377804.31771521)', 32631),
	GeomFromText('POLYGON((521526.068010349 5377783.15606723,521481.300734632 5377811.73166884,521494.808521566 5377832.89331682,521539.575797282 5377804.31771521,521526.068010349 5377783.15606723))', 32631));


But "Relate" correctly returns true :

SELECT Relate(GeomFromText('POINT(521513.234052322 5377804.31771521)', 32631)
	,GeomFromText('POLYGON((521526.068010349 5377783.15606723,521481.300734632 5377811.73166884,521494.808521566 5377832.89331682,521539.575797282 5377804.31771521,521526.068010349 5377783.15606723))', 32631)
	,'T*F**F***');


Postgis_Full_Version() is :
"POSTGIS="1.2.1" GEOS="2.2.3-CAPI-1.1.1" PROJ="Rel. 4.5.0, 22 Oct 2006" USE_STATS (procs 1.1.0 upgrade)"


Regards,
--
Arnaud




More information about the postgis-users mailing list