forked from OSGeo/PROJ
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add +proj=mod_krovak projection method for Modified Krovak that appli…
…es to S-JTSK/05 in the Czech Republic Validated with the test point given in EPSG Guidance Note 7-2 Also validated with CUZK online calculator at https://geoportal.cuzk.cz/(S(g4ipaut0ckzb5lellu153lvf))/Default.aspx?head_tab=sekce-01-gp&mode=TextMeta&text=wcts&menu=19 Unfortunately this calculator does not offer 'elementary' transformations, and cannot just validate Modified Krovak alone. The best we can do is to use ETRS89 <--> S-JTSK/05 / Krovak modified, which involves a Helmert transformation as well for the datum transformation. * Validation of reverse modified Krovak: Online calculator: - Souřadnice/input: -5568990.91 -6050538.71 100 - Source CRS: S-JTSK/05 + Bpv (-Y-XH /east-north) - Destination CRS: ETRS89 (BLh / DEG) - Výsledek/result: 50.208297081 16.848326835 143.762 With PROJ: echo -5568990.91 -6050538.71 100 | bin/cs2cs -d 9 EPSG:5516 EPSG:4937 --3d 50.208297081 16.848326833 143.143233569 Note the different on longitude is totally neglectable: 0.1 mm, as computed by: $ echo 50.208297081 16.848326835 50.208297081 16.848326833 | bin/geod -F "%.4f" -I +ellps=GRS80 -90d 90d 0.0001 and that when outputing Krovak modified, the online calculator displays Y/X with a precision of 1 cm. The difference on Z is significant, but can be explained from the fact that the online calculator using Baltic Height for S-JTSK/05 and thus apply a Baltic Height<-->ETRS89 geoid that we don't apply here. * Validation of forward Krovak using same point: Online calculator: - Souřadnice/input: 50.208297081 16.848326835 143.762 - Source: ETRS89 (BLh / DEG) - Destination: S-JTSK/05 + Bpv (-Y-XH /east-north) - Výsledek/result: -5568990.91 -6050538.71 100 With PROJ: $ echo 50.208297081 16.848326835 143.762 | bin/cs2cs -d 2 EPSG:4937 EPSG:5516 --3d -5568990.91 -6050538.71 100.62
- Loading branch information
Showing
11 changed files
with
566 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
.. _mod_krovak: | ||
|
||
******************************************************************************** | ||
Modified Krovak | ||
******************************************************************************** | ||
|
||
.. versionadded:: 9.4.0 | ||
|
||
+---------------------+----------------------------------------------------------+ | ||
| **Classification** | Conical | | ||
+---------------------+----------------------------------------------------------+ | ||
| **Available forms** | Forward and inverse, spherical and ellipsoidal | | ||
+---------------------+----------------------------------------------------------+ | ||
| **Defined area** | Czech Republic | | ||
+---------------------+----------------------------------------------------------+ | ||
| **Alias** | mod_krovak | | ||
+---------------------+----------------------------------------------------------+ | ||
| **Domain** | 2D | | ||
+---------------------+----------------------------------------------------------+ | ||
| **Input type** | Geodetic coordinates | | ||
+---------------------+----------------------------------------------------------+ | ||
| **Output type** | Projected coordinates | | ||
+---------------------+----------------------------------------------------------+ | ||
|
||
|
||
.. figure:: ./images/krovak.png | ||
:width: 500 px | ||
:align: center | ||
:alt: Modified Krovak | ||
|
||
proj-string: ``+proj=mod_krovak`` | ||
|
||
Modified Krovak builts upon traditional :ref:`krovak`, with corrective terms that | ||
are better suited when using it with the S-JTSK/05 datum. This method is specific | ||
to the Czech Republic. Due to the corrective terms, this projection method is | ||
no longer strictly conformal. | ||
|
||
By default, coordinates in the forward direction are output in easting, northing, | ||
and negative in the Czech Republic, with absolute value of easting/westing | ||
being smaller than absolute value of northing/southing. | ||
To distinguish it from regular Krovak, the usual value for ``+x_0`` and ``+y_0`` | ||
in Modified Krovak is typically 5,000,000. | ||
|
||
Parameters | ||
################################################################################ | ||
|
||
.. note:: All parameters are optional for the Modified Krovak projection. | ||
|
||
The latitude of pseudo standard parallel is hardcoded to 78.5° and | ||
the ellipsoid to Bessel. | ||
|
||
.. option:: +czech | ||
|
||
Reverse the sign of the output coordinates, as is tradition in the | ||
Czech Republic, to be westing, southing (positive values in Czech Republic) | ||
|
||
.. option:: +lon_0=<value> | ||
|
||
Longitude of projection center. | ||
|
||
*Defaults to 24°50' (24.8333333333333)* | ||
|
||
.. option:: +lat_0=<value> | ||
|
||
Latitude of projection center. | ||
|
||
*Defaults to 49.5* | ||
|
||
.. option:: +k_0=<value> | ||
|
||
Scale factor. Determines scale factor used in the projection. | ||
|
||
*Defaults to 0.9999* | ||
|
||
.. include:: ../options/x_0.rst | ||
|
||
.. include:: ../options/y_0.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.