Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
c1c38a9b
Commit
c1c38a9b
authored
Oct 06, 2022
by
Eric Duminil
Browse files
No refresh, it might look too weird.
parent
5c6ace0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/eu/simstadt/regionchooser/RegionChooserBrowser.java
View file @
c1c38a9b
...
@@ -95,8 +95,6 @@ public void downloadRegionFromCityGMLs(String wktPolygon, String project, String
...
@@ -95,8 +95,6 @@ public void downloadRegionFromCityGMLs(String wktPolygon, String project, String
}
}
}
}
}
}
refreshHulls
();
}
}
public
void
selectRepository
()
{
public
void
selectRepository
()
{
...
...
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
View file @
c1c38a9b
...
@@ -226,12 +226,12 @@ var regionChooser = (function(){
...
@@ -226,12 +226,12 @@ var regionChooser = (function(){
var
srsName
=
features
[
0
].
get
(
"
srsName
"
);
var
srsName
=
features
[
0
].
get
(
"
srsName
"
);
if
(
!
features
.
every
(
f
=>
f
.
get
(
"
project
"
)
===
project
)){
if
(
!
features
.
every
(
f
=>
f
.
get
(
"
project
"
)
===
project
)){
dataPanel
.
a
ppend
(
"
<h2 class='error'>Sorry, the CityGML files should all belong to the same project.</h2><br/>
\n
"
);
dataPanel
.
p
re
pend
(
"
<h2 class='error'>Sorry, the CityGML files should all belong to the same project.</h2><br/>
\n
"
);
return
;
return
;
}
}
if
(
!
features
.
every
(
f
=>
f
.
get
(
"
srsName
"
)
===
srsName
)){
if
(
!
features
.
every
(
f
=>
f
.
get
(
"
srsName
"
)
===
srsName
)){
dataPanel
.
a
ppend
(
"
<h2 class='error'>Sorry, the CityGML files should all be written with the same coordinate system.</h2><br/>
\n
"
);
dataPanel
.
p
re
pend
(
"
<h2 class='error'>Sorry, the CityGML files should all be written with the same coordinate system.</h2><br/>
\n
"
);
}
}
var
citygmlNames
=
features
.
map
(
f
=>
f
.
get
(
"
name
"
));
var
citygmlNames
=
features
.
map
(
f
=>
f
.
get
(
"
name
"
));
...
@@ -243,16 +243,15 @@ var regionChooser = (function(){
...
@@ -243,16 +243,15 @@ var regionChooser = (function(){
console
.
log
(
"
Selected region is written in
"
+
srsName
+
"
coordinate system.
"
);
console
.
log
(
"
Selected region is written in
"
+
srsName
+
"
coordinate system.
"
);
try
{
try
{
fxapp
.
downloadRegionFromCityGMLs
(
sketchAsWKT
(
srsName
),
project
,
citygmlNames
.
join
(
"
;
"
),
srsName
);
fxapp
.
downloadRegionFromCityGMLs
(
sketchAsWKT
(
srsName
),
project
,
citygmlNames
.
join
(
"
;
"
),
srsName
);
dataPanel
.
a
ppend
(
"
<h2 class='ok'>Done!</h2><br/>
\n
"
);
dataPanel
.
p
re
pend
(
"
<h2 class='ok'>Done!</h2><br/>
\n
"
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
warning
(
"
ERROR :
"
+
e
);
console
.
warning
(
"
ERROR :
"
+
e
);
dataPanel
.
a
ppend
(
"
<h2 class='error'>Some problem occured!</h2><br/>
\n
"
);
dataPanel
.
p
re
pend
(
"
<h2 class='error'>Some problem occured!</h2><br/>
\n
"
);
}
}
var
end
=
new
Date
().
getTime
();
var
end
=
new
Date
().
getTime
();
var
time
=
end
-
start
;
var
time
=
end
-
start
;
console
.
log
(
'
Download Execution time:
'
+
(
time
/
1000
).
toFixed
(
3
)
+
'
s
'
);
console
.
log
(
'
Download Execution time:
'
+
(
time
/
1000
).
toFixed
(
3
)
+
'
s
'
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
resetDrawing
();
document
.
getElementById
(
"
download_region_button
"
).
disabled
=
false
;
document
.
getElementById
(
"
download_region_button
"
).
disabled
=
false
;
document
.
documentElement
.
className
=
''
;
// Stop waiting
document
.
documentElement
.
className
=
''
;
// Stop waiting
},
100
);
},
100
);
...
...
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