-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
59 lines (55 loc) · 3.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Transform XY to LatLng">
<meta name="keywords" content="Map,Geography,Geospatial,Projection">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta http-equiv="Content-Language" content="en" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#ffffff" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
<title>[X,Y] to [Lng,Lat] Convertor</title>
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<h3>🔢 Specify Input/Output <abbr title='Coordinate Reference System'>CRS</abbr></h3>
<dl>
<dt>
<h4><p>Select Input <abbr title='Coordinate Reference System'>CRS</abbr> <span style='font-family:cambria'>🌐ᵉᵖˢᵍ </span><select id='xyProj4List0' class='minimal'></select></p></h4>
<h4><p>Select Output <abbr title='Coordinate Reference System'>CRS</abbr> <span style='font-family:cambria'>🌐ᵉᵖˢᵍ </span><select id='xyProj4List1' class='minimal'></select></p></h4>
</dt>
</dl>
<hr>
<h3>🔢 Custom Inputs</h3>
<dl>
<dt>
<p><strong style='font-family:Segoe UI Symbol;border-radius:2px;padding:2px 4px;border:1px solid #000'>⌱</strong> <strong>X:</strong> <input id='xVal' type='number' value='38221.856115700' /> <strong>Y:</strong> <input id='yVal' type='number' value='33025.293366093' /> <button id='transformProj' class='btn btn-outline-dark'>Convert to <strong>∢</strong> Lng/Lat»</button></p>
</dt>
<dd>
<div id='output'>⋯</div>
</dd>
</dl>
<hr>
<h3>📤 Upload CSV File</h3>
<dl>
<dt>
<p><strong>Step 1) </strong>Specify fieldnames for <strong>X:</strong> <input id='xFieldName' type='text' value='X_ADDR' /> <strong>Y:</strong> <input id='yFieldName' type='text' value='Y_ADDR' /></p>
<p><strong>Step 2) </strong> <button id='uploadCSVFileBtn' class='btn btn-outline-dark'>📂 Select File...<input id='uploadCSVFile' type='file' /></button></p>
<button id='saveTransformedProj' class='btn btn-outline-dark' disabled>💾 Save Output</button>
<div id='outputPreviewTable' class="table-responsive"></div>
</dt>
</dl>
<script src='js/proj4.js'></script>
<script src='js/proj4_list.js'></script>
<script src='js/json2csv.js'></script>
<script src='js/main.js'></script>
</body>
</html>