1

Is there a way to get the names of all the feature types on a WFS server, other than just calling GetCapabilities? On the server I'm interested in (GeoServer, supports WFS 1.1.0), that's a 50MB XML file.

2 Answers 2

2

I don't suppose it's your server, hey?

Removing the unnecessary CRSs from GeoServer can make the XML significantly smaller...

The only way I know of to get less info is to limit it to a single workspace, so something like geoserver/workspacename/ows?service=WFS&request=GetCapabilities. Can you share the URL for the service?

As mentioned by @gis-haderslev, you can also make a DescribeFeatureType request, without specifying the typename and you will get all the feature types of the service

geoserver/workspacename/ows?service=WFS&request=DescribeFeatureType&version=1.1.0&

But this is meant to give more detail than the GetCapabilities response and typically asking for all the feature types this way is going to be more verbose.

-1

geoserver/workspacename/ows?service=WFS&request=DescribeFeatureType

4
  • 1
    request requires a version parameter to be valid
    – nmtoken
    Commented Jan 16, 2020 at 11:04
  • 1
    This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review Commented Jan 16, 2020 at 13:03
  • @J.Monticolo strictly it does attempt to provide an answer to Is there a way to get the names of all the feature types on a WFS server, other than just calling GetCapabilities? you can do it with a DescribeFeatureType. As a one line answer though it's a bit lacking in detail, and the syntax is wrong but...
    – nmtoken
    Commented Jan 16, 2020 at 20:05
  • But a single ligne of code, non formated post without a minimum of context, explanation and link to a documentation, etc. It's for me for a first answer a lazy answer. I provide more contextual answer as comments ... Commented Jan 16, 2020 at 20:54

Your Answer

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

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