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 have a piece of software that I use to dynamically send rest calls to GeoServer to create/update feature types. These feature types link to a SQL Database table.

When I initially create a feature type (with a REST "POST" command) I set the SRS and call a recalculate on the bounding box to ensure the Native Bounds properties are set at GeoServer. Typically now when I create a map with OpenLayers and add this layer to the map any features created are saved correctly with the SRS I set previously for the feature type.

However, I sometimes wish to define a layer with additional attributes. So I create a featuretype with SRS, say 29903, using a POST command. Then I add my new attributes and call a "PUT" command to update geoserver. This all seems to work. When I do this for a layer with no data in it, then begin creating features, they always save down to the database as projection 900913 (which also happens to be the same projection as my base layer) and not the 29903 projection which I originally set my layer to be.

Does anyone have any idea as to what might be the problem? Any help would be very much apprcieated.

share|improve this question
    
I logged an issue with GeoServer and it seems this behaviour is known about and that there is no way to rectify it. I have asked GeoServer if they can report to the user when this issue arises. jira.codehaus.org/browse/GEOS-5876 –  SeanC Jul 4 '13 at 7:56
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.