Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="parse.js"></script>
</head>
<body>
</body>
</html>
+196
View File
@@ -0,0 +1,196 @@
class Polygon {
constructor() {
this.vertex = [];
}
addVertext(vertex) {
this.vertex.push(vertex);
}
closeRing() {
this.vertex.push(this.vertex[0]);
}
}
var parser, xmlDoc, PolyArray;
var PolygonObj = [];
var text = `<Group>
<Name>FOOTPRINT</Name>
<BBox_Min Z="2.850" Y="2.181" X="3.896" />
<BBox_Max Z="2.851" Y="6.766" X="6.175" />
<Polygon>
<Name>p6739</Name>
<Vertex>
<Name>p6739/V1</Name>
<Coord X="4.166" Y="6.766" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V2</Name>
<Coord X="4.151" Y="6.692" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V3</Name>
<Coord X="3.914" Y="6.694" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V4</Name>
<Coord X="3.896" Y="5.925" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V5</Name>
<Coord X="4.158" Y="5.923" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V6</Name>
<Coord X="4.089" Y="2.181" Z="2.851" />
</Vertex>
<Vertex>
<Name>p6739/V7</Name>
<Coord X="5.178" Y="2.203" Z="2.851" />
</Vertex>
<Vertex>
<Name>p6739/V8</Name>
<Coord X="5.178" Y="2.253" Z="2.851" />
</Vertex>
<Vertex>
<Name>p6739/V9</Name>
<Coord X="5.863" Y="2.253" Z="2.851" />
</Vertex>
<Vertex>
<Name>p6739/V10</Name>
<Coord X="5.879" Y="3.634" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V11</Name>
<Coord X="6.024" Y="3.632" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V12</Name>
<Coord X="6.028" Y="4.383" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V13</Name>
<Coord X="5.888" Y="4.385" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V14</Name>
<Coord X="5.898" Y="5.830" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V15</Name>
<Coord X="6.171" Y="5.829" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V16</Name>
<Coord X="6.175" Y="6.554" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V17</Name>
<Coord X="5.902" Y="6.555" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V18</Name>
<Coord X="5.903" Y="6.760" Z="2.850" />
</Vertex>
</Polygon>
<Polygon>
<Name>p6739</Name>
<Vertex>
<Name>p6739/V1</Name>
<Coord X="4.166" Y="6.766" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V2</Name>
<Coord X="4.151" Y="6.692" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V3</Name>
<Coord X="3.914" Y="6.694" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V4</Name>
<Coord X="3.896" Y="5.925" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V5</Name>
<Coord X="4.158" Y="5.923" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V6</Name>
<Coord X="4.089" Y="2.181" Z="2.851" />
</Vertex>
<Vertex>
<Name>p6739/V7</Name>
<Coord X="5.178" Y="2.203" Z="2.851" />
</Vertex>
<Vertex>
<Name>p6739/V8</Name>
<Coord X="5.178" Y="2.253" Z="2.851" />
</Vertex>
<Vertex>
<Name>p6739/V9</Name>
<Coord X="5.863" Y="2.253" Z="2.851" />
</Vertex>
<Vertex>
<Name>p6739/V10</Name>
<Coord X="5.879" Y="3.634" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V11</Name>
<Coord X="6.024" Y="3.632" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V12</Name>
<Coord X="6.028" Y="4.383" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V13</Name>
<Coord X="5.888" Y="4.385" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V14</Name>
<Coord X="5.898" Y="5.830" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V15</Name>
<Coord X="6.171" Y="5.829" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V16</Name>
<Coord X="6.175" Y="6.554" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V17</Name>
<Coord X="5.902" Y="6.555" Z="2.850" />
</Vertex>
<Vertex>
<Name>p6739/V18</Name>
<Coord X="5.903" Y="6.760" Z="2.850" />
</Vertex>
</Polygon>
</Group>`
parser = new DOMParser();
xmlDoc = parser.parseFromString(text, "text/xml");
PolyArray = Array.from(xmlDoc.getElementsByTagName("Polygon"));
PolyArray.forEach(polygon => {
polyObj = new P1();
var vertexes = Array.from(polygon.children);
for (var x = 1; x < vertexes.length; x++) {
var vertextChildren = vertexes[x].children[1].attributes;
var vertex = {};
for (var y = 0; y < 3; y++) {
switch (y) {
case 1:
vertex.x = parseFloat(vertextChildren[y].nodeValue);
break;
case 2:
vertex.y = parseFloat(vertextChildren[y].nodeValue);
case 3:
vertex.z = parseFloat(vertextChildren[y].nodeValue);
}
}
polyObj.addVertext(vertex);
}
P1.push(polyObj);
});
P1.forEach(polygon => {
polygon.closeRing();
});
+54
View File
@@ -0,0 +1,54 @@
<!DOCTYPE HTML>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<html>
<head>
<title>MapView</title>
<style>
table {
border-collapse: separate;
}
th,
td {
text-align: left;
padding: 8px;
}
.headcol {
position: absolute;
left: 0;
}
#mapDiv {
height: 760px;
width: 700px;
}
#infoDiv {
position: absolute;
top: 12%;
left: 60%;
}
#infoDiv input {
border: none;
box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 2px;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.7/esri/css/main.css">
<script src="https://js.arcgis.com/4.7/"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="websocketTest.js"></script>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> -->
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
+19
View File
@@ -0,0 +1,19 @@
require([
"esri/Map",
"esri/views/SceneView",
"esri/layers/FeatureLayer",
"dojo/domReady!"
], function (Map, SceneView, FeatureLayer) {
var featureLayer = new FeatureLayer({
url: "http://excgeo21.sl.defence-elec.de/arcgis/rest/services/Hosted/BT56_rev576/SceneServer"
});
var map = new Map({
});
var view = new SceneView({
container: "viewDiv",
map: map
});
map.layers.add(featureLayer);
});