forked from albhasan/georef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeoref.html
241 lines (227 loc) · 10.7 KB
/
georef.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!DOCTYPE html>
<!--
Copyright © 2000 Alber Sanchez <albhasan@gmail.com>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the COPYING file for more details.
-->
<html lang="en">
<head>
<meta charset="utf-8" />
<title>GeoRef</title>
<!--*********************************
Leaflet stuff
*********************************-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="./js/Leaflet/dist/leaflet.js"></script>
<link rel="stylesheet" href="./js/Leaflet/dist/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="./js/Leaflet/dist/leaflet.ie.css" /><![endif]-->
<link rel="stylesheet" href="./js/Leaflet.draw/dist/leaflet.draw.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="./js/Leaflet.draw/dist/leaflet.draw.ie.css" /><![endif]-->
<script src="./js/Leaflet.draw/src/Leaflet.draw.js"></script>
<script src="./js/Leaflet.draw/src/edit/handler/Edit.Poly.js"></script>
<script src="./js/Leaflet.draw/src/edit/handler/Edit.SimpleShape.js"></script>
<script src="./js/Leaflet.draw/src/edit/handler/Edit.Circle.js"></script>
<script src="./js/Leaflet.draw/src/edit/handler/Edit.Rectangle.js"></script>
<script src="./js/Leaflet.draw/src/draw/handler/Draw.Feature.js"></script>
<script src="./js/Leaflet.draw/src/draw/handler/Draw.Polyline.js"></script>
<script src="./js/Leaflet.draw/src/draw/handler/Draw.Polygon.js"></script>
<script src="./js/Leaflet.draw/src/draw/handler/Draw.SimpleShape.js"></script>
<script src="./js/Leaflet.draw/src/draw/handler/Draw.Rectangle.js"></script>
<script src="./js/Leaflet.draw/src/draw/handler/Draw.Circle.js"></script>
<script src="./js/Leaflet.draw/src/draw/handler/Draw.Marker.js"></script>
<script src="./js/Leaflet.draw/src/ext/LatLngUtil.js"></script>
<script src="./js/Leaflet.draw/src/ext/LineUtil.Intersect.js"></script>
<script src="./js/Leaflet.draw/src/ext/Polygon.Intersect.js"></script>
<script src="./js/Leaflet.draw/src/ext/Polyline.Intersect.js"></script>
<script src="./js/Leaflet.draw/src/Control.Draw.js"></script>
<script src="./js/Leaflet.draw/src/Tooltip.js"></script>
<script src="./js/Leaflet.draw/src/Toolbar.js"></script>
<script src="./js/Leaflet.draw/src/draw/DrawToolbar.js"></script>
<script src="./js/Leaflet.draw/src/edit/EditToolbar.js"></script>
<script src="./js/Leaflet.draw/src/edit/handler/EditToolbar.Edit.js"></script>
<script src="./js/Leaflet.draw/src/edit/handler/EditToolbar.Delete.js"></script>
<!--*********************************
JQuery stuff
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.1.1.min.js"></script>
*********************************-->
<script src="./js/jquery-1.9.1.min.js"></script>
<script src="./js/jquery-ui-1.10.2/ui/minified/jquery-ui.min.js"></script><!--<script src="./js/jquery-ui-1.10.2/ui/jquery-ui.js"></script>-->
<link rel="stylesheet" type="text/css" href="./js/jquery-ui-1.10.2/themes/base/jquery-ui.css" />
<!--
*********************************
Datatables stuff
*********************************
-->
<style type="text/css">
@import "./js/DataTables-1.9.4/media/css/demo_page.css";
@import "./js/DataTables-1.9.4/media/css/demo_table.css";
</style>
<script class="jsbin" src="./js/DataTables-1.9.4/media/js/jquery-dataTables.min.js"></script><!--<script class="jsbin" src="./js/DataTables-1.9.4/media/js/jquery-dataTables.js"></script>-->
<!--
*********************************
Sylvester (matrix operations)
*********************************
-->
<script src="./js/sylvester/lib/sylvester.js"></script>
<!--
*********************************
GeoReferencer stuff
*********************************
-->
<script src="./js/georef/ControlPointManager.js"></script>
<script src="./js/georef/MarkerManager.js"></script>
<script src="./js/georef/ImageModel.js"></script>
<script src="./js/georef/ScaledImage.js"></script>
<script src="./js/georef/Util.js"></script>
<script src="./js/georef/Coords.js"></script>
<script src="./js/georef/Gui.js"></script>
<script src="./js/georef/SimilarityTransformation.js"></script>
<script src="./js/georef/AffineTransformation.js"></script>
<script src="./js/georef/Constants.js"></script>
<script src="./js/georef/SparqlQuery.js"></script>
<link rel="stylesheet" type="text/css" href="css/georef.css" />
</head>
<body>
<div id="container">
<div id="top">
<div id="top-left" ><img src="http://www.uni-muenster.de/imperia/md/images/allgemein/farbunabhaengig/wwu_logo.gif" alt="WWU"></div>
<div id="top-center"><p id="pTitle">Historic Map Georeferencer</p></div>
<div id="top-right" ><img src="http://www.uni-muenster.de/imperia/md/images/ulb/_v/logo.gif" alt="ULB"></div>
</div>
<div id="middle">
<div id="middle-left">
<div id="accordion">
<h3>1 - Image</h3>
<div>
<div id="imageForm">
Image url:
<input id="imgMapInput" type="text">
<button id="btLoadImage">Load image</button>
<br/>
i.e <a href="http://www.ulb.uni-muenster.de/test/HT017212150.jpg" target="_blank">Map from ULB</a>
</div>
</div>
<h3>2 - Control Points</h3>
<div>
<div>
<button type="button" id="btSuggestPois">Suggest POIs</button>
<div id="suggestedControlPointsTableDiv"></div>
</div>
<div id="controlPointsTableDiv"></div>
</div>
<h3>3 - Map area</h3>
<div>
<div id="mapAreaDetails">
Please use the "<i>Draw a Map Area on Image</i>" tool to draw a polygon on the map image.
</div>
<div id="mapAreaVertexTableDiv"></div>
</div>
<h3>4 - Ruler</h3>
<div>
<div id="rulerDetails">
Please use the "<i>Draw an 1cm line</i>" tool to draw a line on the map image. Use the ruler scanned along the map (if any).
</div>
</div>
<h3>5 - Results</h3>
<div>
You can view the map on its approximated location on Google Earth by pressing this button:<bt>
<button id="btGenerateKml">Get KML</button>
<br>
<br>
You can get the RDF representing the map's metadata by pressing this button:<bt>
<button id="btGenerateRdf">Get RDF</button>
<br>
<br>
You can store you work by pressing this button. The map geometric properties along with its metadata (from the "<i>Map metadata</i>" tab) will be stored. The map image is not copied but "<b>linked</b>".<br>
<button id="btStoreTriples">Store map data as LOD</button>
</div>
</div>
</div>
<div id="middle-center">
<div id="mapImage"></div>
</div>
<div id="middle-right">
<div id="tabs" class="tabs-bottom" >
<ul>
<li><a href="#tabs-1">Map</a></li>
<li><a href="#tabs-2">Metadata</a></li>
<li><a href="#tabs-3">Places</a></li>
<li><a href="#tabs-4">Links</a></li>
<li><a href="#tabs-5">Description</a></li>
</ul>
<div class="tabs-spacer"></div>
<div id="tabs-1">
<div id="middle-center-tabone-center">
<div id="map"></div>
</div>
</div>
<div id="tabs-2">
<form id="frMetadata" autocomplete="off">
<fieldset>
<legend>Metadata</legend>
<p>Please fill in the blanks with the pertinent information.</p>
Map (URI): <input type="text" id="paperMapUri" title="Paper map unique identifier. Please use a URI." /><br>
Map title: <input type="text" id="paperMapTitle" title="Map title." /><br>
Map creator: <input type="text" id="paperMapCreator" title="The creator (author or cartographer) of a map."/><br>
Map size: <input type="text" id="paperMapSize" title="e g. 74 * 95 cm" /><br>
Map time: <input type="text" id="paperMapTime" title="The publication year." /><br>
Map scale: <input type="text" id="paperMapScale" title="The scale of the paper map." /><br>
Map area : <textarea id="mapAreawkt" title="The area in a spatial coordinate system which corresponds to the map window of the map" ></textarea><br>
</fieldset>
</form>
</div>
<div id="tabs-3">
<form id="frMapPlaces" autocomplete="off">
<fieldset id="fsPlaceTags">
<legend>Map places</legend>
<p>Please type a comma separated list of places.</p>
<input type="text" id="paperMapPlaces" title="Places (administrative or other) and geographic features represented in a map." />
<button type="button" id="btFindPlaceMatches">Find matches</button><br>
<div id="placeTags">
</div>
</fieldset>
</form>
</div>
<div id="tabs-4">
<form id="frTags">
<fieldset id="fsTags">
<legend>Suggested tags</legend>
<button type="button" id="btUpdateMapLinks">Suggest tags</button> <br>
<p>Please select the tags relevant to the map.</p>
<div id="stSuggestions">
</div>
</fieldset>
</form>
</div>
<div id="tabs-5">
<form id="frDescription">
<fieldset id="fsDescriptionTags">
<legend>Map description</legend>
<p>Please type a description for the map.</p>
<textarea id="taMapDescription" title="Type a description of the map." rows="6" cols="50" ></textarea><br>
<button type="button" id="btFindDescriptionMatches">Find matches</button><br>
<div id="descriptionTags">
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
<div id="bottom">
<div id="bottom-left" >
<a href="http://lodum.de/" target="_blank"><img src="http://lodum.de/wp-content/themes/LODUM-WordPress-Theme-0.5/bootstrap/img/lodum-logo-s.png" width="147" height="40"/></a>
<a href="http://lodum.de/life/" target="_blank"><img src="http://lodum.de/wp-content/uploads/sites/2/2013/02/life-300x194.png" width="20%" height="20%"/></a>
<a href="http://www.wtfpl.net/" target="_blank"><img src="http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-4.png" width="80" height="15" alt="WTFPL" /></a>
Project in <a href="http://github.com/albhasan/georef" target="_blank"><img src="https://raw.github.com/github/media/master/logos/github_logo_social_coding_outlined.png" width="60" height="26"/></a>
</div>
<div id="bottom-center">
</div>
<div id="bottom-right" >
</div>
</div>
</div>
</body>
</html>