I need to programmatically know the geometry type (lines, polygons or points) of a layer in GeoServer. I'm trying to do this using the REST API but can't seem to find a way.

Any clues?


The rest api is for administrative tasks and so is not what you want. You can use a WFS describeFeature request to get the schema of a layer.

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.