Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

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

thx.

share|improve this question
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.