Hi John,
This is a cool idea, and I think quite useful. I could see this perhaps being rolled into the regular datastore once its working. However I suspect it will require some major changes as the current datastore makes a lot of assumptions about the shapefile actually being on disk. I could be wrong though... i am not all that familiar with the Shapefile datastore.
An easier route might be a sort of "wrapper" datastore which unzipped the zip file to some temp directory or and delegated to the regular datastore. However this might not fit your original use case.
Regardless, if you do experiment we would be very interested in hearing about your findings.
As for programatically adding files to GeoServer this is not really supported. However people have gotten it to work by manually writing all the necessary xml files to the data directory and then restarting Geoserver via this method:
http://geoserver.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog
Not nice... but people have gotten it to work.
-Justin
John Preston wrote:
I have some shape files that I want to use in geoserver (read only), but they are stored within zip files, and I don't want to have to unzip them to other directories. I was thinking of writing my own datastore based on the existing one for shape files, and just changing the I/O methods to access the files where ever they actually were. Does anyone have a comment on my choice of method.
On another matter, where can I find the documentation of programtically adding data files to a geoserver instance.
John
!DSPAM:4007,48626b5c155621431913854!
------------------------------------------------------------------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
!DSPAM:4007,48626b5c155621431913854!
------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
!DSPAM:4007,48626b5c155621431913854!
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com