Prove di conformità OGC¶
L’Open Geospatial Consortium (OGC) fornisce test che possono essere eseguiti gratuitamente per essere sicuri che un server sia conforme a certe specifiche. Questo capitolo fornisce un breve tutorial per impostare i test WMS su un sistema Ubuntu. Una documentazione dettagliata può essere trovata al Sito Web OGC.
Imposta i test di conformità WMS 1.3 e WMS 1.1.1¶
sudo apt install openjdk-8-jdk maven
cd ~/src
git clone https://github.com/opengeospatial/teamengine.git
cd teamengine
mvn install
mkdir ~/TE_BASE
export TE_BASE=~/TE_BASE
unzip -o ./teamengine-console/target/teamengine-console-4.11-SNAPSHOT-base.zip -d $TE_BASE
mkdir ~/te-install
unzip -o ./teamengine-console/target/teamengine-console-4.11-SNAPSHOT-bin.zip -d ~/te-install
Scarica ed installa il test WMS 1.3.0
cd ~/src
git clone https://github.com/opengeospatial/ets-wms13.git
cd ets-wms13
mvn install
Scarica ed installa il test WMS 1.1.1
cd ~/src
git clone https://github.com/opengeospatial/ets-wms11.git
cd ets-wms11
mvn install
Progetto di test¶
Per i test WMS, i dati possono essere scaricati e caricati in un progetto QGIS:
wget https://cite.opengeospatial.org/teamengine/about/wms/1.3.0/site/data-wms-1.3.0.zip
unzip data-wms-1.3.0.zip
Then create a QGIS project according to the description in https://cite.opengeospatial.org/teamengine/about/wms/1.3.0/site/. To run the tests, we need to provide the GetCapabilities URL of the service later.
Eseguendo il test WMS 1.3.0¶
export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin:$PATH
export TE_BASE=$HOME/TE_BASE
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
cd ~/te-install
./bin/unix/test.sh -source=$HOME/src/ets-wms13/src/main/scripts/ctl/main.xml
Eseguendo il test WMS 1.1.1¶
export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin:$PATH
export TE_BASE=$HOME/TE_BASE
export ETS_SRC=$HOME/ets-resources
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
cd ~/te-install
./bin/unix/test.sh -source=$HOME/src/ets-wms11/src/main/scripts/ctl/wms.xml