For Advanced Users: Testing Of Large Files - opengeospatial/cite GitHub Wiki
In some cases it might be necessary to run the All In One (aio) jar file in order to test large files for compliance to OGC Standards.
Navigate to the folder that has the large file that you would like to test.
First we want to create a docker container that has the required version of java.
On Linux run:
docker run -p 8081:8080 -v "${PWD}":/data ogccite/ets-citygml30-part2:latest
On Windows run:
docker run -p 8081:8080 -v %cd%:/data ogccite/ets-citygml30-part2:latest
On Powershell run:
docker run -p 8081:8080 -v %cd%:/data ogccite/ets-citygml30-part2:latest
Now check Docker Desktop and copy the identifier of the container.
Next log into the container.
docker exec -it <container identifier> sh
Next navigate to the /data
folder.
cd /data
Download the All In One (AIO) jar file from Maven Central.
wget https://repo1.maven.org/maven2/org/opengis/cite/ets-citygml30-part2/0.1/ets-citygml30-part2-0.1-aio.jar
Download a file to test and place it in the /data folder.
wget https://raw.githubusercontent.com/opengeospatial/CityGML3.0-GML-Encoding/refs/heads/main/resources/examples/Building/Building_CityGML3.0_LOD2_with_several_attributes.gml
Create a file named test-run-props.xml
and place it in the /data
folder.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties version="1.0">
<comment>Sample test run arguments (ets-citygml30-part2)</comment>
<entry key="iut">file:///data/Building_CityGML3.0_LOD2_with_several_attributes.gml</entry>
<entry key="ics">class-A,class-B</entry>
</properties>
Now run the following command.
java -jar ets-citygml30-part2-0.1-aio.jar /data/test-run-props.xml
If the test run is successfully completed, the results will be written to:
Test results: file:/root/testng/SOME_UUID/testng-results.xml
Where SOME_UUID
is a Universal Unique Identifier(UUID).
Now copy the results from the testng folder to the working folder.
cp /root/testng/SOME_UUID/testng-results.xml /data/testng-results.xml