diff --git a/README.md b/README.md index 07063ac6ed4715dabddb3e790f00c7a9ba89a4cb..5af10f49409433a6bde1c30c6be6d56cf32ab9b0 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ It uses: -* [Java 8](https://simstadt.hft-stuttgart.de/getting-started/install-software/#java-8) +* [Java 8 or newer](https://simstadt.hft-stuttgart.de/getting-started/install-software/#java-17) * JavaFX * [Openlayers](https://openlayers.org/) @@ -57,10 +57,11 @@ With this feature, it should be easy to share geometry between users. RegionChooser can also be called from the command-line: ```bash -Launching RegionChooser CLI --help -Usage: region_chooser [-hlV] [-e=31467] -o=output.gml -w=polygon.wkt -i=input. - gml[,input.gml...] [-i=input.gml[,input.gml...]]... -Extracts a region from one or more citygmls. +Launching RegionChooserCLI --help +Usage: region_chooser [-hlV] [--get-hull] [-e=31467] [-o=output.gml] + [-w=polygon.wkt] -i=input.gml[,input.gml...] [-i=input.gml + [,input.gml...]]... +Extracts a region from one or more citygmls, or calculates the convex hull. -i, --input=input.gml[,input.gml...] Citygml files to extract from -o, --output=output.gml Output file @@ -69,6 +70,7 @@ Extracts a region from one or more citygmls. -l, --local Are WKT coordinates in local CRS? Coordinates are in WGS84 if unspecified. -w, --wkt=polygon.wkt File containing WKT polygon, or - for stdin + --get-hull Calculate the convex hull of the input CityGML files -h, --help Show this help message and exit. -V, --version Print version information and exit. ``` @@ -76,12 +78,15 @@ Extracts a region from one or more citygmls. As an example: ```bash -java -classpath "Desktop\SimStadt_0.10.0-SNAPSHOT_master_20221019_7d2546f\lib\*" - eu.simstadt.regionchooser.RegionChooserCLI +SimStadt.bat --input Grombühl.proj\LoD2_32_566_5516_2_BY.gml,Grombühl.proj\LoD2_32_568_5516_2_BY.gml,Grombühl.proj\LoD2_32_570_5516_2_BY.gml --output Grombühl.proj\Grombühl.gml --wkt "POLYGON((9.920858224863567 49.807325539080495, 9.918540796274696 49.79447295986074, 9.992612680429975 49.79358644932381, 9.991926034922162 49.807325539080495, 9.920858224863567 49.807325539080495))" ``` +```bash +./SimStadt.sh --get-hull --input example.gml +``` + ## Development In order to compile, test and install RegionChooser into your local Maven repository: