[Geoserver-devel] [jira] (GEOS-5357) No nativeCRS when creating a feature type with the REST API

Per Lewau created BugGEOS-5357
No nativeCRS when creating a feature type with the REST API

Issue Type:

BugBug

Affects Versions:

2.2

Assignee:

Andrea Aime

Components:

REST

Created:

18/Oct/12 6:53 AM

Description:

When you create a featuretype from a shapefile datastore using the REST API it doesn’t get a nativeCRS. Creating the same featuretype using the web gui results in a featuretype that has a native CRS.

To reproduce:

curl -X POST -d ‘<featureType><name>states2</name><nativeName>states</nativeName></featureType>’ -H ‘Content-Type: text/xml’ ‘http://localhost:8080/geoserver/rest/workspaces/topp/datastores/states_shapefile/featuretypes

Environment:

Windows + tomcat 7.0.32

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Per Lewau

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)