[mapserver-users] Postgres call 2 GetCapabilities attribute listing.

Jeff McKenna jmckenna at gatewaygeomatics.com
Tue Jan 10 09:41:53 PST 2017


On 2017-01-10 1:29 PM, Rahkonen Jukka (MML) wrote:
> I would activate WFS and send DescribeFeatureType for reading the
> schema. No need to support other WFS request. All you need is less than
> ten new metadata lines in your mapfile and you can make Mapserver to
> publish both the column names and their data types.
>

Good point Yukka.  Then use JavaScript or whatever your lang preference 
is) to parse those WFS results and populate your form.  This is similar 
to the WMS/GetFeatureInfo way.

Example WFS request: 
http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&Typename=cities

-jeff




-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/






More information about the mapserver-users mailing list