[Mapserver-users] potential problem with layer names containing spaces

bartvde at xs4all.nl bartvde at xs4all.nl
Wed Nov 19 09:09:09 PST 2003


Hi list,

I have encountered a potential problem with layer names containing spaces.
This will lead to invalid GML responses when requesting GetFeatureInfo in
the GML format.

What would be a good solution to overcome this?

a. when parsing the mapfile make sure no spaces are contained in layer
names (or is this too rigorous for applications not using GML?)

b. when generating the GML for GetFeatureInfo check the layer names or
check if the generated GML is valid and well-formed? If the GML is not
valid or not well-formed it is better to generate a WMS Exception I guess
than generating invalid GML.

Any thoughts on this?

Best regards,
Bart

excerpt:

<?xml version="1.0" encoding="ISO-8859-1"?>
<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">
	<Groningen kust vlakken 2002_layer>
		<Groningen kust vlakken 2002_feature>
			<AREA>51785.891</AREA>
			<PERIMETER>1290.295</PERIMETER>
			<ZOSTOT>2</ZOSTOT>
			<ZOSNOL>2</ZOSNOL>
			<ZOSMAR>0</ZOSMAR>
etc.




More information about the MapServer-users mailing list