Skip to content

Commit

Permalink
#449 Export .shp and .kml layers (#451)
Browse files Browse the repository at this point in the history
* #449 SHP and KML download, still need shp on layer tool and migrate draw tool changes to opensource

* #449 Export .shp and .kml layers
  • Loading branch information
tariqksoliman authored Nov 9, 2023
1 parent 6a0e3b2 commit 3fba967
Show file tree
Hide file tree
Showing 18 changed files with 683 additions and 17,975 deletions.
205 changes: 197 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"dependencies": {
"@babel/runtime": "^7.23.1",
"@eonasdan/tempus-dominus": "^6.2.6",
"@mapbox/shp-write": "^0.4.3",
"@maphubs/tokml": "^0.6.1",
"@popperjs/core": "^2.11.6",
"@terraformer/wkt": "^2.2.0",
"@turf/turf": "^6.5.0",
Expand Down
12 changes: 12 additions & 0 deletions private/api/proj42wkt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import sys
from osgeo import osr
try:
from urllib.parse import unquote
except ImportError:
from urllib import unquote

srs_def = unquote(sys.argv[1])

proj = osr.SpatialReference()
proj.ImportFromProj4(srs_def)
print(proj.ExportToWkt())
Loading

0 comments on commit 3fba967

Please sign in to comment.