[mapserver-users] GetFeatureInfo wrongly return Linestring instead of Multilinestring

Andrea Peri aperi2007 at gmail.com
Wed Aug 24 03:58:06 PDT 2016


Hi,
I have a line dataset and need to have a GetFeatureInfo response in GML.

To force the return of kind MultiLinestring I set in the mapfile the
two parameters:

      "gml_geometries" "GEOMETRY"
      "gml_GEOMETRY_type" "MULTILINESTRING"

But it seem to have no effect.
Infact when try to do a request like this:

http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owsrisorseidriche&version=1.3.0&map_resolution=91&SERVICE=WMS&FORMAT=image%2Fpng&REQUEST=GetFeatureInfo&LAYERS=rt_risorseidriche.ci_superf_fiumicanali_in_zvn.rt&QUERY_LAYERS=rt_risorseidriche.ci_superf_fiumicanali_in_zvn.rt&STYLES=&FEATURE_COUNT=50&HEIGHT=583&WIDTH=1580&SRS=EPSG:3003&VERSION=1.1.1&TRANSPARENT=TRUE&X=921&Y=389&BBOX=1697920.3158407%2C4792974.7259495%2C1753220.4264409%2C4813309.7666195&INFO_FORMAT=text%2Fgml

I have a set of feature where some are MultiLinestring but one is LINESTRING.
Also the xsd has in it defined a geometrytype = LINESTRING instead of
MultiLinestring.

This cause a validation error in client because the XSD say
"linestring", but the gml has multilinestring and linestrings results.

Am I using wrongly the two parameters:

      "gml_geometries" "GEOMETRY"
      "gml_GEOMETRY_type" "MULTILINESTRING"

or is an issue ?

Thx for any info.

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------


More information about the mapserver-users mailing list