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 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

share|improve this question
    
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
add comment

1 Answer

up vote 3 down vote accepted

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

share|improve this answer
    
Thanks Andrea. That's exactly what I am looking for. –  freddell Jul 6 '12 at 21:06
add comment

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.