Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am new to GeoServer and wonder how I can create OGC Services via Geoserver automatically. I have to publish my data (Shapefiles) with a Java program as OGC Services. How can I do that?

BTW: I checked out the source code of Geoserver, but I don't know how to package as right jar file to use.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If you by OGC services mean WMS and WFS then you could use GeoServers REST configuration API, which lets you create workspaces, stores, styles, upload shapefiles etc. You can see a list of operations here:

REST Configuration API Reference

GeoServer have examples of how to do this in cURL:

GeoServer cURL REST examples

I don't know much Java, but I am pretty sure you can convert the cURL examples to Java.

Hope this will help you.

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.