Geoserver create SqlView Layer with Geoserver Manager

المشرف العام

Administrator
طاقم الإدارة
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:

geomPoint4326 And the geometry attribute:

geom01truecom.vividsolutions.jts.geom.Point 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?

thx.



أكثر...
 
أعلى