20 Dec 16:10
transform() does not do work for NGO1948 zone III -> WGS84 longlat (epsg:27393->epsg:4326)
From: Havard Tveite <havard.tveite <at> umb.no>
Subject: transform() does not do work for NGO1948 zone III -> WGS84 longlat (epsg:27393->epsg:4326)
Newsgroups: gmane.comp.gis.postgis
Date: 2005-12-20 15:11:52 GMT
Subject: transform() does not do work for NGO1948 zone III -> WGS84 longlat (epsg:27393->epsg:4326)
Newsgroups: gmane.comp.gis.postgis
Date: 2005-12-20 15:11:52 GMT
I have a table with coordinates in NGO1948, Zone 3 (epgs:27393). I would like to do transformations on the fly to WGS84 longlat (epsg:4326). "Reprojection" into WGS84 longlat (epsg:4326) works OK using Mapserver (fetching the data from postgres using the default epsg:27393 and projecting to epsg:4326 in Mapserver). No noticable errors in the output map, so I guess proj.4 is OK. When using transform() in postgis, however, the longitude of origin (+lon_0=-10.72291666666667) seems to be ignored, and there seems to be no datum shift performed (+towgs84=278.3,93,474.5,7.889,0.05,-6.61,6.21). Longitude of origin (+lat_0=58) seems to be used correctly. The following queries "demonstrate" the problem: select AsText(the_geom) from mndplngo; > POINT(2836.394208896 185526.991186176) select AsText(transform(the_geom,4326)) from mndplngo; > POINT(0.0464201635443672 59.6661916850467) (the longitude of origin is 10.72291666666667, so a longitude value of about 10.77 should be expected) select * from geometry_columns; > f_table_catalog | f_table_schema | f_table_name | f_geometry_column | coord_dimension | srid | type > -----------------+----------------+--------------+-------------------+-----------------+-------+------- > | public | mndplngo | the_geom | 2 | 27393 | POINT(Continue reading)
RSS Feed