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
Eric Duminil
RegionChooser
Commits
ae1e68cc
Commit
ae1e68cc
authored
2 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Some more logic
parent
dd1aeb90
master
develop
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/eu/simstadt/regionchooser/RegionChooserCommandLineInterface.java
+21
-9
...tadt/regionchooser/RegionChooserCommandLineInterface.java
with
21 additions
and
9 deletions
+21
-9
src/main/java/eu/simstadt/regionchooser/RegionChooserCommandLineInterface.java
+
21
-
9
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,24 +31,34 @@ 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 "
);
System
.
out
.
println
(
espgId
+
" coordinates."
);
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
(
System
.
in
.
available
()
==
0
)
{
System
.
out
.
println
(
"OH NOEs, NO INPUT!"
);
if
(
wktFile
.
equals
(
"-"
))
{
if
(
System
.
in
.
available
()
==
0
)
{
System
.
out
.
println
(
"OH NOEs, NO INPUT!"
);
}
else
{
System
.
out
.
println
(
"Here's standard input:"
);
System
.
out
.
println
(
getInput
());
System
.
out
.
println
(
"Done"
);
}
}
else
{
System
.
out
.
println
(
"Here's standard input:"
);
System
.
out
.
println
(
getInput
());
System
.
out
.
println
(
"Done"
);
System
.
out
.
println
(
"Try to read from "
+
wktFile
);
}
return
0
;
}
...
...
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