Hallo,
I tryed to parse the XML from WMS GetCapabilities with python (DOM). The
target was to make output of r.in.wms -l (list layers) more readable,
then it was, when just coreutils (grep, sed) were used.
From the script:
if [ "$( which python )" != "" ]; then
echo "Note: Using Python"
# BEGIN Python
python << EOF
import ...
...
EOF
# END Python
else:
echo "Note: Python NOT avaliable"
sed|sed|sed|sed
fi
What do you thing? Does this version produce better output, then the
first version?
Jachym
--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG-Fingerprint: 0C6D 0EAE 76BD 506C F299 ED8A C8AB 74B8 08D4 E08F
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507
,===, ++===, ++=====
// \\ || \\ ||
|| || || ++===
|| === || || ||
\\ || || // ||
``====´´ ++===´´ ++
(attachments)
r.in.wms.tgz (4.17 KB)