<div>Hi Everybody</div>  <div> </div>  <div>I am new to Postgress and to the spatial world. I have a series of properties with</div>  <div>their latitude and longitude and I need to be able to search and return the properties 100 meters around a point ( I need to use meters or feets). Below you will find what I am doing:</div>  <div> </div>  <div>Table creation:</div>  <div>===========</div>  <div>create table smarter.vow_properties (property_id serial, address varchar(150), latitude numeric (7,4) , longitude numeric (7,4))</div>  <div> </div>  <div>Addition of geometric column:</div>  <div>=======================<BR>select AddGeometryColumn('smarter','vow_properties','geom',32011,'POINT',2);</div>  <div> </div>  <div>NOTE: I do not really understand the concept of SRID but as per research and advice</div>  <div>from other people in the list I did pick the SRID 32011 becaue I live in NJ and the unit I need is meters. But I will appreciate if somebody
 could double check this or provide me some information about how to determinate the SRID is should use. I will be working with address all around the US but only the US and I need the units to come in meters or feets.</div>  <div> </div>  <div>Insertion of rows:</div>  <div>======================</div>  <div>insert into smarter.vow_properties(address, latitude, longitude) values ('12 LONG BRIDGE DR,MOUNT LAUREL, NJ 08054','39.940252','-074.921916');<BR>insert into smarter.vow_properties(address, latitude, longitude) values ('6 LONG BRIDGE DR, MOUNT LAUREL, NJ 08054','39.939777','-074.922529');<BR>insert into smarter.vow_properties(address, latitude, longitude) values ('12 BARTON WAY, MOUNT LAUREL, NJ 08054','39.940323','-074.920154');<BR></div>  <div>Update of the geometric column</div>  <div>=========================</div>  <div>The following statement does not work, not sure why</div>  <div> </div>  <div>update smarter.vow_properties set geom = makePoint
 (longitude, latitude);<BR></div>  <div>This one doe work and I am using it</div>  <div> </div>  <div>update smarter.vow_properties set geom = GeometryFromText('POINT(' || latitude || ' ' ||longitude || ')', 32011);</div>  <div> </div>  <div>Search</div>  <div>========================</div>  <div> </div>  <div>The search below suppose to retrieve properties 100 meters around the point</div>  <div>logitude = -074.905868 latitude = 39.940252</div>  <div> </div>  <div>select * from smarter.vow_properties where geom && Expand(GeomFromText('POINT(-074.905868 39.940252)',32011),100)<BR>and Distance (GeomFromText('POINT(-074.905868 39.946788 )',32011),geom) < 100;<BR></div>  <div>Assuming that I am working with the right units (if I am not please advice what I need to do but keep in mind I know 0 about spatial) that query should have returned several units however it does not return any. Could somebody give a look and let me know what I am doing
 wrong? Once again please be aware that I have no previous knowledge of spatial, I am actually an Oracle DBA learning Postgress</div>  <div> </div>  <div>I will buy you a beer for you help if you ever come around south jersey :-)</div>  <div> </div>  <div>Rafael Orta<BR></div><BR><BR>***************************************************** <br>Rafael Orta                                  Phone: (609)-330-3193 <br>Sr. Oracle DBA                            Fax: (856)-642-7679 <br>Technical Manager <br>Oraprofessionals                          Email: rorta_us@yahoo.com <br>******************************************************<p>
                <hr size=1>Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com"> Great rates starting at 1¢/min.