3

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!

asked Feb 14, 2013 at 19:39

1 Answer 1

3

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

answered Feb 15, 2013 at 15:21

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.