[Qgis-developer] Aliases of features attributes in Mapserver's WMS GetProjectSettings and GetFeatureInfo

Marcel Dancak dancakm at gmail.com
Mon Apr 7 23:05:01 PDT 2014


Hi, I found some issues in Mapserver when using aliases for features
attributes.

GetProjectSetting response has features attributes of vector layer in this
form

<Attribute typeName="INTEGER" precision="0" length="0" editType="LineEdit"
type="qlonglong" comment="" name="PK_UID"/>

where "name" property contains either attribute's alias (if defined) or its
name. So you are loosing attribute's name when using aliases, and that make
it impossible to perform searching by this attribute with GetFeatureInfo
request (with FILTER parameter). Separate "alias" property would be much
better.

Another question is, what should be used as attribute name in
GetFeatureInfo response, alias or name? Current mapserver returns prefer
aliases (if defined) in plain XML format, but in GML format it always
returns names. In my opinion, names should be used in both formats and
aliases could be passed as additional info (if particular format allows
that), or not used at all in GetFeatureInfo cause clients would be able to
perform mapping from names to aliases by info from GetProjectSettings.

And the last issue is that mapserver always returns all features attributes
in GetFeatureInfo response is GML format, even if they are marked to be
excluded in WMS server.


I have all these issues fixed and I can create a pull requests, but first I
want to discuss about it and maybe another solutions will came out.


Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140408/291758c0/attachment.html>


More information about the Qgis-developer mailing list