<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Hi Ravi,<br><br>Sounds like you are dealing with point features, with a single coordinate pair. So if that is case this should help.<br><br>If you know the coordinate system they are in, you can tell Postgis to use that & transform the points to a lat/long geometry, as below. Posdtgis cannot detect a coordinate system, it generally needs to be told what the coordinate system is, unless the values are already geometries with a defined SRID. In which case you cal either <br>\d <table> & note the the value set for the ST_srid() constraint, or you can try:<br>select ST_srid(geom) from table limit 1;<br><br>Given a table called tab with columns E & N, in a projection with SRID of 1234 (for example)<br><br>To create the geometry column:<br>select ST_AddGeometryColumn('','tab','geom',4326,'POINT',2);<br><br>To populate it:<br>update tab set<br>
 geom=ST_Transform(ST_Setsrid(ST_Makepoint(E, N), 1234), 4326);<br><br>What this does is: make a point geometry from your E/N values, set this to the appropriate projection, convert the coordinates to lat/lon/WGS84 (SRID=4326) and set the geom value for each record to the result.<br><br>To find the SRID for your E/N coordinate system your E/N values are in, I suggest you visit:<br>http://www.spatialreference.org/ <br><br>to find the EPSG code, which is generally the SRID used by Postgis to identify a projection.<br><br>HTH,<br><br>  Brent Wood<br><br><br><br>--- On Sat, 2/12/11, Ravi <ravivundavalli@yahoo.com> wrote:<br><br>From: Ravi <ravivundavalli@yahoo.com><br>Subject: [postgis-users] E-N to Long Lat<br>To: "postgis" <postgis-users@postgis.refractions.net><br>Date: Saturday, February 12, 2011, 7:35 PM<br><br>Got a data base of Eastings and Northings<br>which is the simplest way to<br>     1. Detect the
 projection, as I know where they belong<br>     2. Turn the table (in PostGIS) to Long Lat <br>Ravi<br><br><br>-----Inline Attachment Follows-----<br><br>_______________________________________________<br>postgis-users mailing list<br>postgis-users@postgis.refractions.net<br>http://postgis.refractions.net/mailman/listinfo/postgis-users<br></td></tr></table>