You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a layer which is being published contains attributes formed as URLs (which is common in the RDF world), the published layer may produce an invalid XML response.
e.g. for this GetFeatureInfo request on WMS layer: https://hub4everybody.com/geoserver/franta_wms/ows?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=spoi_italy&LAYERS=spoi_italy&INFO_FORMAT=application/vnd.ogc.gml&feature_count=1&I=6&J=144&WIDTH=256&HEIGHT=256&CRS=EPSG:3857&STYLES=&BBOX=1023950.4309082218,5695017.229415342,1024103.3049647921,5695170.103471912
where <franta_wms:http://www.w3.org/1999/02/22_rdf_syntax_ns_type>...</franta_wms:http://www.w3.org/1999/02/22_rdf_syntax_ns_type> is not a valid XML node name.
A correct response shall actually include <rdf:type>http://gis.zcu.cz/SPOI/Ontology#restaurant</rdf:type> instead of <franta_wms:http://www.w3.org/1999/02/22_rdf_syntax_ns_type>http://gis.zcu.cz/SPOI/Ontology#restaurant</franta_wms:http://www.w3.org/1999/02/22_rdf_syntax_ns_type>. With xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" in the XML header (or in the wfs:FeatureCollection node).
The text was updated successfully, but these errors were encountered:
When a layer which is being published contains attributes formed as URLs (which is common in the RDF world), the published layer may produce an invalid XML response.
e.g. for this GetFeatureInfo request on WMS layer:
https://hub4everybody.com/geoserver/franta_wms/ows?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=spoi_italy&LAYERS=spoi_italy&INFO_FORMAT=application/vnd.ogc.gml&feature_count=1&I=6&J=144&WIDTH=256&HEIGHT=256&CRS=EPSG:3857&STYLES=&BBOX=1023950.4309082218,5695017.229415342,1024103.3049647921,5695170.103471912
the returned FeatureCollection is
where
<franta_wms:http://www.w3.org/1999/02/22_rdf_syntax_ns_type>...</franta_wms:http://www.w3.org/1999/02/22_rdf_syntax_ns_type>
is not a valid XML node name.see hslayers/hslayers-ng#4036
A correct response shall actually include
<rdf:type>http://gis.zcu.cz/SPOI/Ontology#restaurant</rdf:type>
instead of<franta_wms:http://www.w3.org/1999/02/22_rdf_syntax_ns_type>http://gis.zcu.cz/SPOI/Ontology#restaurant</franta_wms:http://www.w3.org/1999/02/22_rdf_syntax_ns_type>
. Withxmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
in the XML header (or in thewfs:FeatureCollection
node).The text was updated successfully, but these errors were encountered: