[mapserver-users] Order of attributes returned from WFS GetFeature

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Dec 27 13:13:00 PST 2011


Hi,

The WFS standard defines that attributes are included in a XML sequence. Therefore the returned attributes must be in the same order than in the schema of your feature type.

I would suggest also having a try with editing the SQL in the DATA line and selecting attributes as you like but check first if it has an effect on the schema returned by DescribeFeatureType.

-Jukka Rahkonen-
________________________________________
 Lime, Steve D (DNR) wrote:

> I don't believe you can control this on the MapServer side. Why not just set the column order
> explicitly in the SQL statement?

> Steve

> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Dejan Gambin
> Sent: Thursday, December 22, 2011 7:40 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Order of attributes returned from WFS GetFeature

> Hi,

> I am using GetFeature request to get the attributes from my PostGIS data. I define attributes with "gml_include_items". The order of attributes is however related to postgis column order, not to the order in gml_include_items.

Is it somehow possible to change the order, withoout need to modify column order in PostGIS/PostgreSQL?

regards, dejan_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list