6

I am tasked with adding one feature to an existing app. It was built with OpenLayers and GeoServer. The task is to import a shapefile on-the-fly and have GeoServer render it instantly. However, I can't find any doc or tutorial.

Since a user can import any shapefile, the geometry type or the data structure can't be determined ahead of time.

Thanks, Fred

  • You might take a look at the Open Source OpenGeo Suite, or the GeoExplorer as a part of the suite, respectively. They are supposed to support instant shape file upload using GeoServer’s REST API. (Although it doesn’t work for me… I always get the message that my upload is “incomplete”.) – hfs Oct 12 '12 at 12:02
3

There is nothing already done, but using REST config you can do the upload, it should auto-configure itself (watch out for missing or invalid .prj files though) and then you can use it like a normal WMS layer, previewing it where you prefer.

http://docs.geoserver.org/latest/en/user/restconfig/rest-config-api.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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