Skip to content

Instantly share code, notes, and snippets.

@BjoernSchilberg
Last active September 7, 2018 11:18
Show Gist options
  • Select an option

  • Save BjoernSchilberg/4728d6fa2b1402bcaebe794b555a0ee9 to your computer and use it in GitHub Desktop.

Select an option

Save BjoernSchilberg/4728d6fa2b1402bcaebe794b555a0ee9 to your computer and use it in GitHub Desktop.
proj4

proj4 Snippets

cs2cs -f "%.6f" +proj=latlong +datum=WGS84 << EOF
52d16'4"N 8d2'35"E
EOF
52.267778	8.043056 0.000000
$ cs2cs +init=epsg:4326 +to +init=epsg:31467 << EOF
8.043056 52.267778
EOF               
3434744.94	5793130.31 -43.81
cs2cs +init=epsg:4326 +to +init=epsg:31467 << EOF
8d2'35"E 52d16'4"N
> EOF
3434744.91	5793130.28 -43.81

Mnemonic

Gemäß WGS 84 können zum Beispiel die Koordinaten im Format "Latitude/Longitude" für die Stadt Oestrich-Winkel in Grad mit 50° 0′ 30.75″ N / 8° 1′ 11.5″ E oder dezimal 50.008542° / 8.019861° angegeben werden. Die Dezimalwerte für Punkte südlich des Äquators bzw. westlich des Nullmeridians sind dann negativ und lauten etwa für Sydney -33.85° / 151.2°. Quelle: https://de.wikipedia.org/wiki/World_Geodetic_System_1984#Gebrauch_des_Systems

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment