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
7dcfb348
Commit
7dcfb348
authored
Oct 11, 2022
by
Eric Duminil
Browse files
Removed unused.
parent
0711c3e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/eu/simstadt/regionchooser/RegionChooserUtils.java
View file @
7dcfb348
package
eu.simstadt.regionchooser
;
import
java.io.BufferedWriter
;
import
java.io.IOException
;
import
java.nio.file.Files
;
import
java.nio.file.Path
;
...
...
@@ -162,20 +161,6 @@ public static Stream<Path> everyCityGML(Path repository) throws IOException {
p
.
toString
().
toLowerCase
().
endsWith
(
".gml"
));
}
public
static
void
writeStringBuilderToFile
(
StringBuilder
sb
,
Path
outputFile
)
throws
IOException
{
if
(
outputFile
!=
null
)
{
try
(
BufferedWriter
writer
=
Files
.
newBufferedWriter
(
outputFile
))
{
char
[]
chars
=
new
char
[
BUFFER
];
for
(
int
aPosStart
=
0
;
aPosStart
<
sb
.
length
();
aPosStart
+=
BUFFER
)
{
int
chunk
=
Math
.
min
(
BUFFER
,
sb
.
length
()
-
aPosStart
);
sb
.
getChars
(
aPosStart
,
aPosStart
+
chunk
,
chars
,
0
);
writer
.
write
(
chars
,
0
,
chunk
);
}
}
}
}
/**
* Returns application version, if it has been written in the JAR file during deployment.
*
...
...
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
View file @
7dcfb348
...
...
@@ -244,7 +244,6 @@ var regionChooser = (function(){
console
.
log
(
"
Selected region is written in
"
+
srsName
+
"
coordinate system.
"
);
try
{
var
count
=
fxapp
.
downloadRegionFromCityGMLs
(
sketchAsWKT
(
srsName
),
project
,
citygmlNames
.
join
(
"
;
"
),
srsName
);
//FIXME: count looks wrong. too high.
dataPanel
.
prepend
(
"
<h2 class='ok'>Done! (
"
+
count
+
"
buildings found) </h2><br/>
\n
"
);
}
catch
(
e
)
{
console
.
warn
(
"
ERROR :
"
+
e
);
...
...
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