Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
iCityDigitalTwinFramework
WebRegionChooser
Commits
96687f67
Commit
96687f67
authored
May 04, 2022
by
JOE XMG
Browse files
update
parent
137967f6
Pipeline
#6426
passed with stage
in 6 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
public/index.html
View file @
96687f67
...
@@ -150,10 +150,8 @@
...
@@ -150,10 +150,8 @@
const
answer
=
document
.
getElementById
(
'
calculated_area
'
);
const
answer
=
document
.
getElementById
(
'
calculated_area
'
);
// $("#")
// $("#")
var
source
=
new
proj4
.
Proj
(
'
EPSG:4326
'
);
//source coordinates will be in Longitude/Latitude
var
source
=
new
proj4
.
Proj
(
'
EPSG:4326
'
);
//source coordinates will be in Longitude/Latitude
proj4
.
defs
(
"
EPSG:31463
"
,
proj4
.
defs
(
"
EPSG:25832
"
,
"
+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
"
);
"
+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel +towgs84=598.1,73.7,418.2,0.202,0.045,-2.455,6.7 +units=m +no_defs
"
var
dest
=
new
proj4
.
Proj
(
'
EPSG:25832
'
);
//source coordinates will be in Longitude/Latitude
);
var
dest
=
new
proj4
.
Proj
(
'
EPSG:31463
'
);
//source coordinates will be in Longitude/Latitude
var
p_min
=
new
proj4
.
toPoint
([
tmp_layer
.
_bounds
.
_southWest
.
lng
,
tmp_layer
.
_bounds
.
_southWest
var
p_min
=
new
proj4
.
toPoint
([
tmp_layer
.
_bounds
.
_southWest
.
lng
,
tmp_layer
.
_bounds
.
_southWest
.
lat
.
lat
...
@@ -173,9 +171,9 @@
...
@@ -173,9 +171,9 @@
<br>
<br>
BBOX (
31463
):
BBOX (
25832
):
<input type="text" value="
${
p_dest_min
.
x
.
toFixed
(
4
)}
,
${
p_dest_min
.
y
.
toFixed
(
4
)}
,
${
p_dest_max
.
x
.
toFixed
(
4
)}
,
${
p_dest_max
.
y
.
toFixed
(
4
)}
" id="
31463
" size="60">
<input type="text" value="
${
p_dest_min
.
x
.
toFixed
(
4
)}
,
${
p_dest_min
.
y
.
toFixed
(
4
)}
,
${
p_dest_max
.
x
.
toFixed
(
4
)}
,
${
p_dest_max
.
y
.
toFixed
(
4
)}
" id="
25832
" size="60">
<button class="badge bg-secondary" onclick="clickToCopy('
31463
')">click to copy</button>
<button class="badge bg-secondary" onclick="clickToCopy('
25832
')">click to copy</button>
<hr>
<hr>
...
@@ -186,7 +184,7 @@
...
@@ -186,7 +184,7 @@
`
;
`
;
console
.
log
(
console
.
log
(
`WFS Request (
31463
): http://193.196.137.147:8080/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&typeNames=bldg:Building&bbox=
${
p_dest_min
.
x
.
toFixed
(
4
)}
,
${
p_dest_min
.
y
.
toFixed
(
4
)}
,
${
p_dest_max
.
x
.
toFixed
(
4
)}
,
${
p_dest_max
.
y
.
toFixed
(
4
)}
&srsName=EPSG:
31463
`
`WFS Request (
25832
): http://193.196.137.147:8080/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&typeNames=bldg:Building&bbox=
${
p_dest_min
.
x
.
toFixed
(
4
)}
,
${
p_dest_min
.
y
.
toFixed
(
4
)}
,
${
p_dest_max
.
x
.
toFixed
(
4
)}
,
${
p_dest_max
.
y
.
toFixed
(
4
)}
&srsName=EPSG:
25832
`
)
)
});
});
...
@@ -229,7 +227,7 @@
...
@@ -229,7 +227,7 @@
<br>
<br>
BBOX (
${
input_epsg
}
):
BBOX (
${
input_epsg
}
):
<input type="text" value="
${
parseFloat
(
data
[
0
][
"
x
"
]).
toFixed
(
4
)}
,
${
parseFloat
(
data
[
0
][
"
y
"
]).
toFixed
(
4
)}
,
${
parseFloat
(
data
[
1
][
"
x
"
]).
toFixed
(
4
)}
,
${
parseFloat
(
data
[
1
][
"
y
"
]).
toFixed
(
4
)}
" id="
${
input_epsg
}
" size="60">
<input type="text" value="
${
parseFloat
(
data
[
0
][
"
x
"
]).
toFixed
(
4
)}
,
${
parseFloat
(
data
[
0
][
"
y
"
]).
toFixed
(
4
)}
,
${
parseFloat
(
data
[
1
][
"
x
"
]).
toFixed
(
4
)}
,
${
parseFloat
(
data
[
1
][
"
y
"
]).
toFixed
(
4
)}
" id="
${
input_epsg
}
" size="60">
<button class="badge bg-secondary" onclick="clickToCopy('
31463
')">click to copy</button>
<button class="badge bg-secondary" onclick="clickToCopy('
${
input_epsg
}
')">click to copy</button>
`
`
$
(
"
#conversion_result
"
).
html
(
result
)
$
(
"
#conversion_result
"
).
html
(
result
)
console
.
log
(
console
.
log
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment