You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that lat_0, lon_0 and k have wrong values, the correct ones being +lat_0=49.5 +lon_0=24.833333333333333333 +k=0.9999. The correct values are also the defaults in the src/projections/krovak.cpp.
This is the reason for wrong transformation results mentioned in #2087 (comment).
Expected Output
Either omit +lat_0=0 +lon_0=0 +k=1 or provide the correct values.
Interestingly, when you add parameter +czech, these parameters are not supplied and the transformation works correctly (also see #2087 (comment)):
WKTs generated by projinfo contain wrong parameter values as well.
Possibly other issue
WKT generated by projinfo from those two definitions (with and without the +czech parameter) is identical, although +czech is meant for using the traditional axes orientation (west / south) with positive coordinates. If +czech is not used, negative coordinates and GIS axes order (east / north) is expected.
For the reference values of the parameters, see e.g. the page 14 of the technical report published by the Slovak Geodetical and Cartographical Authority (unfortunately in Slovak, but it's easy to find the constants):
The value of λ_KP (42d30') is traditionally measured from Ferro meridian, which is assumed to be exactly 17d40' west from Greenwich in Krovak's projection, thus giving 24.8333333333 east from Greenwich.
Activity
kbevers commentedon Apr 27, 2020
This indeed looks like a bug. I don't have a fix but I see that the docs doesn't mention the actual default values of
+lon_0,+lat_0and+k_0.rouault commentedon Apr 27, 2020
I'm looking at that
createFromProjString(): handle default parameters of '+krovak +type=c…
mbudaj commentedon Apr 28, 2020
For the reference values of the parameters, see e.g. the page 14 of the technical report published by the Slovak Geodetical and Cartographical Authority (unfortunately in Slovak, but it's easy to find the constants):
https://www.geoportal.sk/files/gz/etrs89_s-jtsk_tech_sprava_2014_ver3_0.pdf
φ_0=49d30',λ_KP=42d30'andk'=0.9999The value of λ_KP (42d30') is traditionally measured from Ferro meridian, which is assumed to be exactly 17d40' west from Greenwich in Krovak's projection, thus giving 24.8333333333 east from Greenwich.
createFromProjString(): handle default parameters of '+krovak +type=c…
Merge pull request #2201 from PROJ-BOT/backport-2200-to-7.0