Ticket #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)
