Skip to content

Instantly share code, notes, and snippets.

View muratthekus's full-sized avatar
🐈
Vega

Murat Kuş muratthekus

🐈
Vega
View GitHub Profile
@muratthekus
muratthekus / transformations.js
Created April 16, 2025 07:18
ITRF96 <-> ED50 <-> WG84 Coordinate Transformations
// Core coordinate transformation for GeoJSON features
function transformGeoJson(geoJson) {
// EPSG definitions for Turkey
const epsgDefinitions = {
// ITRF96 / Turkey zones (TM)
7931: "+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +datum=ITRF96 +units=m +no_defs +type=crs",
7932: "+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +datum=ITRF96 +units=m +no_defs +type=crs",
7933: "+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +datum=ITRF96 +units=m +no_defs +type=crs",
7934: "+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +datum=ITRF96 +units=m +no_defs +type=crs",
7935: "+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +datum=ITRF96 +units=m +no_defs +type=crs",
100% — FF
95% — F2
90% — E6
85% — D9
80% — CC
75% — BF
70% — B3
65% — A6
60% — 99
55% — 8C
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">true</item>
<item name="android:windowFullscreen">true</item>
</style>