mf-chsdi3 icon indicating copy to clipboard operation
mf-chsdi3 copied to clipboard

Not well-formed GetFeatureInfo response for ch.bafu.typisierung-fliessgewaesser

Open edigonzales opened this issue 3 years ago • 4 comments

<Abfluss_m3/s> is the problem:

https://wms.geo.admin.ch/?service=WMS&version=1.3.0&request=GetFeatureInfo&id=20b02131-394f-4ac0-ad40-f664db4aac3a&layers=ch.bafu.typisierung-fliessgewaesser&query_layers=ch.bafu.typisierung-fliessgewaesser&x=51&y=51&i=51&j=51&height=101&width=101&srs=EPSG:2056&crs=EPSG:2056&bbox=2608375.460546874,1228518.2715332033,2608535.7980468743,1228678.6090332032&info_format=application%2Fvnd.ogc.gml&with_geometry=true&with_maptip=false&feature_count=20&FI_LINE_TOLERANCE=8&FI_POINT_TOLERANCE=16&FI_POLYGON_TOLERANCE=4


<?xml version="1.0" encoding="UTF-8"?>
<msGMLOutput 
	 xmlns:gml="http://www.opengis.net/gml"
	 xmlns:xlink="http://www.w3.org/1999/xlink"
	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<ch.bafu.typisierung-fliessgewaesser_layer>
	<gml:name>Typisierung Fliessgewässer</gml:name>
		<ch.bafu.typisierung-fliessgewaesser_feature>
			<gml:boundedBy>
				<gml:Box srsName="EPSG:2056">
					<gml:coordinates>2608140.500931,1228447.055442 2608612.140102,1228994.552971</gml:coordinates>
				</gml:Box>
			</gml:boundedBy>
			<Gewässernetz-ID>1556251</Gewässernetz-ID>
			<Grosser_Fluss>Aare</Grosser_Fluss>
			<Biogeographische_Region>Mittelland</Biogeographische_Region>
			<Höhe>NA</Höhe>
			<Abfluss>NA</Abfluss>
			<Gefälle>NA</Gefälle>
			<Geologie>NA</Geologie>
			<Merkmalskombination>1</Merkmalskombination>
			<Fliessgewässertyp>1</Fliessgewässertyp>
			<zugewiesen_zu>1</zugewiesen_zu>
			<URL_zu_Typenporträt></URL_zu_Typenporträt>
			<Name_des_Fliessgewässertyps>grosser Fluss</Name_des_Fliessgewässertyps>
			<Länge_des_Abschnittes>808.222343228594</Länge_des_Abschnittes>
			<Abfluss_m3/s>265.9545898</Abfluss_m3/s>
			<Herkunft_der_Abflussdaten>GAB_EZGG_CH</Herkunft_der_Abflussdaten>
			<Qualität_der_Abflussdaten>2</Qualität_der_Abflussdaten>
			<Gefälle_%>0.1</Gefälle_%>
			<Qualität_der_Gefälledaten>2</Qualität_der_Gefälledaten>
			<IBCH-Q-Regime>8</IBCH-Q-Regime>
			<Korrekturwert>0.22</Korrekturwert>
			<Qualität_der_Daten_zum_IBCH-Q-Regime>Quelle:NAWA</Qualität_der_Daten_zum_IBCH-Q-Regime>
		</ch.bafu.typisierung-fliessgewaesser_feature>
	</ch.bafu.typisierung-fliessgewaesser_layer>
</msGMLOutput>

edigonzales avatar Jun 21 '21 11:06 edigonzales

And I think <Gefälle_%> does also not work.

edigonzales avatar Jun 21 '21 11:06 edigonzales

We look into this, internal ticket https://jira.swisstopo.ch/browse/BGDIINF_SB-1868

davidoesch avatar Jun 21 '21 12:06 davidoesch

Die escaping Problematik existiert nur beim Format gml. Beim Format plain/text funktioniert die Ausgabe:

https://wms.geo.admin.ch/?service=WMS&version=1.3.0&request=GetFeatureInfo&id=20b02131-394f-4ac0-ad40-f664db4aac3a&layers=ch.bafu.typisierung-fliessgewaesser&query_layers=ch.bafu.typisierung-fliessgewaesser&x=51&y=51&i=51&j=51&height=101&width=101&srs=EPSG:2056&crs=EPSG:2056&bbox=2608375.460546874,1228518.2715332033,2608535.7980468743,1228678.6090332032&info_format=text/plain&with_geometry=true&with_maptip=false&feature_count=20&FI_LINE_TOLERANCE=8&FI_POINT_TOLERANCE=16&FI_POLYGON_TOLERANCE=4

wir werden analysieren was der Aufwand ist für GML

davidoesch avatar Jul 06 '21 09:07 davidoesch

@edigonzales still the case? if not pls close it

davidoesch avatar Feb 07 '23 09:02 davidoesch