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.