0

using Web Feature service and I'm wondering is there a way using get requests to pull multiple features. For example, this WFS http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0 contains 2 layers/features:

Cities

Continents

Could anyone point me in the right direction for this?

4
  • You have posted this to Meta GIS SE so I am migrating it to the Main GIS SE.
    – PolyGeo
    May 20 '15 at 9:05
  • I would start by reading the WFS standards which are available from opengeospatial.org/standards/wfs. Several TypeNames can be used in GetFeature but I am not sure when it is useful.
    – user30184
    May 20 '15 at 13:55
  • Currently writing a program, I just wanted to see if i could do it, and if my program was smart enough to work out its two different layers and represent them differently .
    – Jake Wade
    May 20 '15 at 14:15
  • Did you look at the MapServer help pages for example mapserver.org/ogc/wfs_server.html, which shows a query for the same test service that returns multiple features. Not sure though if this is what you are asking, or if you want something more complex?
    – nmtoken
    Jun 12 '15 at 21:48
1

Separate multiple layers in your request with a comma:

http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=continents,cities&MAXFEATURES=500

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.