[postgis-devel] [PostGIS] #211: Inverse transformation borks when fed +nadgrids=@null
PostGIS
trac at osgeo.org
Thu Jun 25 14:06:31 PDT 2009
#211: Inverse transformation borks when fed +nadgrids=@null
----------------------+-----------------------------------------------------
Reporter: pramsey | Owner: mcayland
Type: defect | Status: new
Priority: medium | Milestone: postgis 1.3.7
Component: postgis | Version: 1.3.X
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by mcayland):
Works for me (correcting the small typo in your spatial_ref_sys proj4text
above):
pg83 at zeno:~/src/postgis-svn/1.3$ psql -d postgis13
Welcome to psql 8.3.5, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
postgis13=# insert into spatial_ref_sys (srid, proj4text) values (900913,
'+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0
+units=m +k=1.0 +nadgrids=@null +no_defs');
INSERT 0 1
postgis13=# select
st_astext(st_transform(st_transform('SRID=4326;POINT(-71.057810000000003
42.358919999999998)',900913),4326));
st_astext
---------------------------
POINT(-71.05781 42.35892)
(1 row)
postgis13=# select postgis_full_version();
postgis_full_version
----------------------------------------------------------------------------------------
POSTGIS="1.3.7SVN" GEOS="3.1.0-CAPI-1.5.0" PROJ="Rel. 4.6.1, 21 August
2008" USE_STATS
(1 row)
postgis13=#
ATB,
Mark.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/211#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
More information about the postgis-devel
mailing list