Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm attemping to load a layer into Geoserver from a PostGIS database using cURL. It works, but I also need to set the bounding box to -180,-90,180,90. Does anyone know how to add the bounding box to the below command?

curl -v -u xxx:xxx -X POST -H "Content-type: text/xml" -d "<featureType><name>Airports</name></featureType>" http://xxx.xx.com:8080/geoserver/rest/workspaces/PostGIS/datastores/PostGIS/featuretypes

Thanks for your help!

share|improve this question

Ended up solving the problem like this...

curl -v -u xx:xx -X POST -H "Content-type: text/xml" -d "<featureType><name>Airports</name><latLonBoundingBox><minx>-180</minx><maxx>180</maxx><miny>-90</miny><maxy>90</maxy><crs>EPSG:4326</crs></latLonBoundingBox></featureType>" http://xx.xxx.com:8080/geoserver/rest/workspaces/PostGIS/datastores/PostGIS/featuretypes

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.