Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
ae1e68cc
Commit
ae1e68cc
authored
Oct 07, 2022
by
Eric Duminil
Browse files
Some more logic
parent
dd1aeb90
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/eu/simstadt/regionchooser/RegionChooserCommandLineInterface.java
View file @
ae1e68cc
package
eu.simstadt.regionchooser
;
import
java.io.BufferedWriter
;
import
java.nio.file.Files
;
import
java.nio.file.Path
;
import
java.util.List
;
import
java.util.Scanner
;
...
...
@@ -29,17 +31,23 @@ class RegionChooserCommandLineInterface implements Callable<Integer>
@Override
public
Integer
call
()
throws
Exception
{
// your business logic goes here...
System
.
out
.
println
(
"WKT from : "
);
System
.
out
.
println
(
wktFile
);
System
.
out
.
println
(
"Should extract from :"
);
for
(
Path
input_citygml
:
citygmls
)
{
System
.
out
.
println
(
" "
+
input_citygml
);
}
System
.
out
.
print
(
"And write to : "
);
System
.
out
.
println
(
outputCityGML
);
System
.
out
.
print
(
"in "
);
try
(
BufferedWriter
bf
=
Files
.
newBufferedWriter
(
outputCityGML
))
{
bf
.
write
(
"HELLO THERE!"
);
}
if
(
espgId
==
null
)
{
System
.
out
.
println
(
"coordinates from "
+
citygmls
.
get
(
0
));
}
else
{
System
.
out
.
print
(
"in EPSG:"
);
System
.
out
.
println
(
espgId
+
" coordinates."
);
}
if
(
wktFile
.
equals
(
"-"
))
{
if
(
System
.
in
.
available
()
==
0
)
{
System
.
out
.
println
(
"OH NOEs, NO INPUT!"
);
}
else
{
...
...
@@ -47,6 +55,10 @@ public Integer call() throws Exception { // your business logic goes here...
System
.
out
.
println
(
getInput
());
System
.
out
.
println
(
"Done"
);
}
}
else
{
System
.
out
.
println
(
"Try to read from "
+
wktFile
);
}
return
0
;
}
...
...
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