Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1940 closed defect (fixed)

epsg:2065 projection is incorrect

Reported by: fordfrog Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.2
Component: postgis Version: 2.0.x
Keywords: Cc:

Description

proj4text is not correct for this projection in spatial_ref_sys.

here is what is returned with the installed projection:

test=# select st_astext(st_transform(st_setsrid(st_geomfromtext('point(718346.93 992772.22)'), 2065), 4326));

st_astext


POINT(40.7273344172108 68.120719621313)

(1 row)

here is the update to the projection that fixes proj projection:

test=# update spatial_ref_sys set proj4text = '+proj=krovak +lat_0=49.5 +lon_0=42.5 +alpha=30.28813972222222 +k=0.9999 +x_0=-0 +y_0=-0 +ellps=bessel +towgs84=570.8,85.7,462.8,4.998,1.587,5.261,3.56 +pm=ferro +to_meter=-1 +no_defs' where srid = 2065; UPDATE 1

and here is the correct result:

test=# select st_astext(st_transform(st_setsrid(st_geomfromtext('point(718346.93 992772.22)'), 2065), 4326));

st_astext


POINT(14.6666442538853 50.5646644202525)

(1 row)

Change History (2)

comment:1 by pramsey, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in 2.0 at r10602 and in trunk at r10601

comment:2 by rouault, 12 years ago

Paul, how do you track local changes in spatial_ref_sys with respect to the update process described in http://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff/csv/README ? There's a risk it get lost at the next update.

Ok, for the sake of completness, this issue is also reported as http://trac.osgeo.org/proj/ticket/185 and http://trac.osgeo.org/gdal/ticket/4762

Note: See TracTickets for help on using tickets.