[postgis-users] Need Help with Transform

R H enoop at hotmail.com
Thu Sep 11 08:41:46 PDT 2008


Thanks for the Help Regina, below are some of the points I attempted.
 
setsrid(MakePoint(834934.2263,26712690.6089, 32107) setsrid(MakePoint(834533.210694,26712881.1962, 32107) setsrid(MakePoint(834224.086891,26712318.3331, 32107) 
Is there a way to check if it is in the range of the projection? 



From: lr at pcorp.usTo: postgis-users at postgis.refractions.netSubject: RE: [postgis-users] Need Help with TransformDate: Fri, 5 Sep 2008 18:19:58 -0400



RH,
 
This kind of thing happens if your input points are not actually in the projection you say they are with setsrid.
 
Give us an example 32107 point you are using.  I suspect it doesn't fall in the range of a valid 32107 point.
 
Hope that helps,
Regina


From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of R HSent: Friday, September 05, 2008 1:13 PMTo: postgis-users at postgis.refractions.netSubject: [postgis-users] Need Help with Transform




Transform is returning to the same value, for different inputs?  Below is what I have done... select AddGeometryColumn('data_stage', 'table', 'geo4269', 4269, 'POINT', 2)select AddGeometryColumn('data_stage', 'table', 'geo32107', 32107, 'POINT', 2) update tableset geo32107= setsrid(MakePoint(x, y), 32107) where .... update table set geo4269 = transfrom(geo32107, 4269)where ....column geo4269 all have the same vaule.  select AsText(geo4269) returns 'POINT(-115.583333333333 90)' for all rows.  And select AsText(geo32107) returns the point as input. Am I using transform wrong?  Or any other problems?  Any help many thanks...   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20080911/23f98a8a/attachment.html>


More information about the postgis-users mailing list