-
Notifications
You must be signed in to change notification settings - Fork 2
/
gdal_profile.html
150 lines (146 loc) · 7.47 KB
/
gdal_profile.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/ol3/3.7.0/ol.css" type="text/css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="assets/css/bootstrap-window.css">
<link href="//fonts.googleapis.com/css?family=Days+One" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="assets/css/style_zoo.css" />
<title>ZOO-Project GDAL profile example</title>
<script data-main="assets/js/profile" src="assets/js/lib/require.js"></script>
</head>
<body>
<div class="container">
<nav class="navbar navbar-fixed-top navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand navbar-shrink" href="./"><img src="//zoo-project.org/img/zoo-sun-logo.png" class="img-responsive sun" style="display: inline;"> ZOO</a>
<span class="pm-demo-title">GDAL <span class="hidden-xs">profile example</span></span>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="navbar-btn">
<a href="#" class="btn btn-default btn-sml"
title="Pan / Select" name="pan"
onclick="deactivateDrawTool();" data-toggle="tooltip"
data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
data-placement="left" ><i class="fa fa-arrows"></i> <span>Pan</span></a>
</li>
<li class="navbar-btn">
<a href="#" class="btn btn-default btn-sml
multi-process process" title="Draw line" name="drawLine" onclick="activateDrawTool();"
data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
><i class="fa fa-pencil"></i> <span>Draw line</span></a>
</li>
<li class="navbar-btn">
<label class="btn btn-default btn-sml multi-process process navbar-default">
<input id="geojson-upload" type="file" accept=".json,.geojson" onchange="processUploadTool(event);" style="display: none;">
<i class="fa fa-file navbar-link"></i> <span class="navbar-link">Upload file</span>
</label>
</li>
<li class="navbar-btn">
<div class="btn btn-default btn-sml multi-process process navbar-default">
<input type="radio" id="service-C" name="service" value="C" class="m-0" checked>
<label class="navbar-link m-0" for="service-c">C</label>
<input type="radio" id="service-node" name="service" value="node" class="m-0">
<label class="navbar-link m-0" for="service-node">Node.js</label>
</div>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle"
data-toggle="dropdown"><i class="fa fa-info-circle"></i> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="./assets/js/profile-app.js"><i class="fa fa-code"></i> view source</a></li>
<li><a href="//zoo-project.org" target="_blank"><i class=" fa icon-pm sml"></i> ZOO-Project</a></li>
<li class="divider"></li>
<li><a href="#" data-toggle="modal" data-target="#myModalCredits"><i class="fa fa-copyright"></i> credits</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
</nav>
<div class="navbar-offset"></div>
<div id="map">
</div>
<div class="col-sm-4 col-md-3 sidebar sidebar-left">
<div class="panel-group sidebar-body" id="accordion-left">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<i class="fa fa-info-circle"></i>
Information
<span class="pull-right slide-submenu">
<i class="fa fa-chevron-left"></i>
</span>
</h4>
</div>
<div id="properties" class="panel-collapse collapse in">
<div class="panel-body">
<p>
This map demonstrates the use of the ZOO-Project <a href="//zoo-project.org/trac/browser/trunk/zoo-project/zoo-services/gdal/profile" >GDAL profile WPS service</a>.
</p>
<p>
Draw a line within the image bounds and double-click to compute the corresponding elevation profile. </p>
<p>
Alternatively, upload a <code>LINESTRING</code> in GeoJSON format. </p>
<p>
<p>You can also select between the C and the Node.js implementation. </p>
<p>
Please see <a href="./assets/js/profile.js" >profile.js</a> and <a href="./assets/js/profile-app.js" >profile-app.js</a> to see how this is done.
</p>
</div>
</div>
</div>
</div>
</div>
<div class="mini-submenu mini-submenu-left pull-left">
<i class="fa fa-list-alt"></i>
</div>
</div>
<div class="modal fade" id="myModalCredits" tabindex="-1" role="dialog" aria-labelledby="myModalCreditsLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Credits</h4>
</div>
<div class="modal-body">
<div class="alert alert-warning">
<p>This is the <a href="//zoo-project.org" target="_blank">ZOO-Project</a> GDAL profile example, powered by <a href="//zoo-project.org" target="_blank">ZOO-Project</a>, <a href="//gdal.org" target="_blank">GDAL</a>, <a href="//mapserver.org" target="_blank">MapServer</a> and <a href="//openlayers.org" target="_blank">OpenLayers</a></p>
</div>
<p><span style="font-size:.85em;color:#CCC">This work was supported by a grant from the European Union's 7th Framework Programme (2007-2013) provided for the project <a href="//publicamundi.eu" target="_blank">PublicaMundi</a> (GA no. 609608).</span></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script type="template/text" id="basic_window_template">
<div id="wprof" class="window" style="min-width:40%;display:block;">
<div class="window-header">
<button type="button" class="close" data-dismiss="window" aria-hidden="true"><i class="fa fa-close"></i></button>
<h4 class="window-title"><i class="fa fa-area-chart"></i></h4>
</div>
<div class="window-body" id="chart_container">
</div>
</div>
</script>
</body>
</html>