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?