<br clear="all">Hi All, i'm a newbie with postgis and probably this is an easy question.<br><br>As I know "&&" operator which is used for checking 1 geometry is overlap on another or not.<br>Could I check 1 point is overlap on 1 polygon by the query bellow ?<br>
<pre style="color: rgb(51, 0, 153);"><font size="4"><code>SELECT  f.point_id, s.zip_id<br>FROM  points f, zips s <br>WHERE ST_SetSRID(ST_MakePoint(f.longitude, f.latitude),4326) && s.zip_polygon;<br></code></font><br>
<font style="color: rgb(0, 153, 0);" size="4">Does anything wrong here? Or could you give me other ways to check 1 point is within in 1 polygon or not?</font><br></pre>Cheers.<br>-- <br>Liem Nguyen<br>Developer<br>Axon Active Corp.<br>
----------------------------------------------------------------------------<br>Direct Line      : +84 38 948 4645<br>Fax                  : +84 38 811 3489<br>Mobile Phone  : +84 168 994 8897<br>Skype ID         : liemnguyendl2204<br>
Email               : <a href="mailto:liem.nguyen@axonactive.net">liem.nguyen@axonactive.net</a> / <a href="mailto:liemnguyendl@gmail.com">liemnguyendl@gmail.com</a><br>Web Site          : <a href="http://axonactive.vn">http://axonactive.vn</a><br>
Address           : 87 Thang Long Street,Gate 2 Ward 4,<br>                          Tan Binh District, HCM city, Vietnam.<br><br>