<font face="courier new,courier,arial,helvetica,sans-serif">Many thanks it works like a charm. <br><br>Only the name of the function is ST_Intersects. It took some time to find out why it is giving an error. I found the SRID using "SELECT Find_SRID('public', 'YKN', 'POLY');" query.<br><br>Thanks again.<br>telmessos<br><br><br>Date: Tue, 17 Jan 2012 21:46:46 +0100<br>From: Sandro Santilli <<a  href="#" target='_blank'>strk@keybit.net</a>><br>Subject: Re: [postgis-users] All object between the coordinates<br>To: PostGIS Users Discussion <<a  href="#" target='_blank'>postgis-users@postgis.refractions.net</a>><br>Message-ID: <20120117204646.GD14929@gnash><br>Content-Type: text/plain; charset=us-ascii<br><br>On Tue, Jan 17, 2012 at 06:48:50PM +0200, <a  href="#" target='_blank'>ceyhun@likya.net</a> wrote:<br><br>>    I am a newbie on PostGIS. I have a database converted from Netcad Spatial<br>>    Data to PostGIS. My maps seems to work fine but I don't know how to query<br>>    all objects between the following coordinates:<br>> <br>>    26.3456 - 27.21546 Eastern Meridians<br>>    36.1254 - 42.87875 Northern Parallels<br><br>SELECT the_geom FROM the_table WHERE<br> ST_Intersect(<br>   the_geom,<br>   ST_MakeEnvelope(26.3456, 36.1254, 27.21546, 42.87875)<br> );<br><br>Add a SRID parameter to ST_MakeEnvelope to match the SRID<br>of your column.<br><br>Read more in the PostGIS manual.<br><br>--strk; <br><br>  ()   Free GIS & Flash consultant/developer<br>  /\   <a  href="http://strk.keybit.net/services.html" target='_blank'>http://strk.keybit.net/services.html</a><br><br><br>------------------------------<br><br><br></font>