[postgis-users] Transformation between SWEREF99 TM (3006) and WGS 84 (4326)
Hugo Wetterberg
hugo.wetterberg at goodold.se
Tue May 8 05:46:27 PDT 2007
Hi All,
I'm trying to transform 2D points from SWEREF99 TM (3006) to the
coordinate system used by Google Maps, WGS 84 (4326), the results so
far are completely off.
I have one test-case for an address in Lund, Sweden that has the
coordinates [13.083259,55.669587] (long,lat) according to google maps:
http://maps.google.com/maps?f=q&hl=sv&q=Ringv%C3%A4gen,+Lund,+Sk%C3%
A5ne+L%C3%A4n,
+Sverige&sll=55.697992,13.181652&sspn=0.016301,0.039911&ie=UTF8&z=15&iwl
oc=addr&om=1
Those coordinates are probably not spot on, but it gives me an idéa
of what to expect.
The data that I get from Lantmäteriet, the swedish organization for
cadastral services, gives the SWEREF99 coordinates [6179129,1345843]
(lat/X,long/Y) which I try to transform like this:
SELECT AsText(transform(GeomFromText('POINT(6179129 1345843)',3006),
4326))
This results in the coordinates "POINT(60.8759971959914
8.54384645182583)" (Hemsedal in norway BTW) when I expected something
more along the lines of "POINT(55.669587 13.083259)"
Any ideas? All help is appreciated!
Kind regards
Hugo Wetterberg
More information about the postgis-users
mailing list