[postgis-users] Correct use of ST_Transform
Simon Greener
simon at spatialdbadvisor.com
Tue May 5 00:06:13 PDT 2009
Ben,
> So the query that I have constructed would be the way to transform records
> from one coord system to another?
It should do if the data going in has the right SRID.
Best to test it with something like this to make sure it is OK before continuing.
select st_srid(a.geom) as original_srid, ST_Srid(st_transform(a.geom, 4283)) as transform_srid, ST_AsText(ST_Transform(a.geom,4283)) as tgeom
from (select ST_GeomFromText('LINESTRING(606388.046000039 5335648.05400051,606468.307000043 5335634.86000051)',28355) as geom) as a;
28355;4283;"LINESTRING(148.287098370457 -42.1240578238575,148.288071549293 -42.1241657301262)"
Simon
--
SpatialDB Advice and Design, Solutions Architecture and Programming,
Oracle Database 10g Administrator Certified Associate; Oracle Database 10g SQL Certified Professional
Oracle Spatial, SQL Server, PostGIS, MySQL, ArcSDE, Manifold GIS, FME, Radius Topology and Studio Specialist.
39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia.
Website: www.spatialdbadvisor.com
Email: simon at spatialdbadvisor.com
Voice: +61 362 396397
Mobile: +61 418 396391
Skype: sggreener
Longitude: 147.20515 (147° 12' 18" E)
Latitude: -43.01530 (43° 00' 55" S)
NAC:W80CK 7SWP3
More information about the postgis-users
mailing list