Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
3 years ago
by
Santhanavanich
Browse files
Options
Download
Email Patches
Plain Diff
update
parent
137967f6
Pipeline
#6426
passed with stage
in 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+7
-9
public/index.html
with
7 additions
and
9 deletions
+7
-9
public/index.html
+
7
-
9
View file @
96687f67
...
...
@@ -150,10 +150,8 @@
const
answer
=
document
.
getElementById
(
'
calculated_area
'
);
// $("#")
var
source
=
new
proj4
.
Proj
(
'
EPSG:4326
'
);
//source coordinates will be in Longitude/Latitude
proj4
.
defs
(
"
EPSG:31463
"
,
"
+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:31463
'
);
//source coordinates will be in Longitude/Latitude
proj4
.
defs
(
"
EPSG:25832
"
,
"
+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
"
);
var
dest
=
new
proj4
.
Proj
(
'
EPSG:25832
'
);
//source coordinates will be in Longitude/Latitude
var
p_min
=
new
proj4
.
toPoint
([
tmp_layer
.
_bounds
.
_southWest
.
lng
,
tmp_layer
.
_bounds
.
_southWest
.
lat
...
...
@@ -173,9 +171,9 @@
<br>
BBOX (
31463
):
<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">
<button class="badge bg-secondary" onclick="clickToCopy('
31463
')">click to copy</button>
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="
25832
" size="60">
<button class="badge bg-secondary" onclick="clickToCopy('
25832
')">click to copy</button>
<hr>
...
...
@@ -186,7 +184,7 @@
`
;
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 @@
<br>
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">
<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
)
console
.
log
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets