Open jmacura opened 1 year ago
@jmacura Thanks for reporting. Could you please add also sample input file (GeoJSON or SHP)?
Provided the problematic layer is this one: https://hub4everybody.com/micka/record/basic/m-967bcafb-d0e0-4f91-9c28-f984cba7fde8 , I guess the original source was this GeoJSON: all-pois-italy.zip
Also, I can now confirm that even WFS GetFeature request contains the invalid XML tags.
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 https://github.com/hslayers/hslayers-ng/issues/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).