curl --request POST \ --url http://localhost:8080/geoserver/rest/workspaces/tiger/datastores/nyc/featuretypes \ --header 'authorization: Basic YWRtaW46Z2Vvc2VydmVy' \ --header 'content-type: application/xml' \ --data ' pub_roads giant_polygon_2 tiger World rectangle A simple rectangular polygon covering most of the world, it's only used for the purpose of providing a background (WMS bgcolor could be used instead) DS_giant_polygon giant_polygon GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0], UNIT["degree", 0.017453292519943295], AXIS["Longitude", EAST], AXIS["Latitude", NORTH]] EPSG:4326 -180.0 180.0 -90.0 90.0 EPSG:4326 -180.0 180.0 -90.0 90.0 EPSG:4326 FORCE_DECLARED true 10 3600 true false DS_giant_polygon_giant_polygon tiger:nyc 0 0 false false false the_geom 0 1 true com.vividsolutions.jts.geom.MultiPolygon '