Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the geoserver api to find information about layers that are available. I am using:


to get a dynamic list of all layers. If I then select a layer with:


I get information about the layer.

How can I determine the layers respective workspace?

share|improve this question
localhost/geoserver/rest/workspaces – iant Jul 17 '13 at 14:57

From the layer, follow the link to the associated feature type


then to the data store for that feature type


and then from there there's a link to the workspace


You could also look at the path to the feature type which will include the workspace, although that's not quite as "correct" a method, it does save you from having to load all those extra resources.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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