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 would like to register a new sql view layer to geoserver through the rest api. I am using geoserver-manager.

The registration is ok, the layer is working fine, except wms getFeatureInfo, which returns: "Operation on mixed SRID geometries".

If i manually set the sql view's geometry column's srid in the geoserver administration page, it works fine.

But i cannot find any way to set it in the xml request. I'm sending the geometry info:


And the geometry attribute:


But i cannot set the attributes srid and the geometry info is not enough. The geometry attribute will be registered as srid -1.

Any thoughts i can overcome this? Is there an api call to refresh the layer fields?


share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.