0

How can I get list of items from WMS or WFS services? I want to fill dropdown list, so I do not need geometries. I need only JSON list of items.

3
  • 1
    Do you mean something like this http://demo.geo-solutions.it/geoserver/ows?service=wfs&version=2.0.0&request=GetFeature&typenames=topp:states&properyname=STATE_NAME? Save the response on disk and open with text editor, it is not a program. There is some issue with the MIME type.
    – user30184
    Oct 21, 2021 at 18:06
  • getting via ajax request
    – barteloma
    Oct 22, 2021 at 19:56
  • @user30184 - this was the solution for me thanks!, heads up there's a type, it should be propertyname
    – ioseph
    Feb 28 at 6:29

1 Answer 1

1

A GetCapabilities request to the relevant service will return an XML document containing details of all the layers/feature types.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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