4

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:

<geometry><name>geom</name><type>Point</type><srid>4326</srid></geometry>

And the geometry attribute:

<attribute><name>geom</name><minOccurs>0</minOccurs><maxOccurs>1</maxOccurs><nillable>true</nillable><binding>com.vividsolutions.jts.geom.Point</binding></attribute>

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

Is there an api call to refresh the layer fields?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.