Unfortunately there is no temp space on GAE. It seems to be possible to use GaeVFS (Virtual File System) - an Apache Commons VFS plug-in. But I am not sure about reliability and limitations. I will look on NIO API it seems to be more elegant solution.
> It looks like you can create a zip file using a series of byte arrays > but I don't think the Shapefile datastore is going to be able to write > out to a bytearray. > > Does the AppEngine not provide a temp space you could write to? > otherwise I think you'll need to extend ShapefileDatastore to handle > this case. Am 30.09.2010 17:06, schrieb Larry Reeder: > Oleg, > > This is a fair amount of work, but you may be able to subclass a > version of java.nio.channels.FileChannel to read/write only to > memory, and then use the lower-level GeoTools ShapefileWriter and > DbaseFileWriter classes to write to your memory-based FileChannel. > This would get you an in-memory representation of the shp, shx, and > dbf files. > > -Larry > > 2010/9/30 Oleg Evdakov<[email protected]>: >> Am 30.09.2010 16:09, schrieb Ian Turton: >>> 2010/9/30 Oleg Evdakov<[email protected]>: >>>> Dear All, >>>> Is it possible to create shapefiles (*.shp and other related files) in >>>> OutputStream without writing them to filesystem? >>> You'd need some way to tell the receiving program how to find the >>> split between the 4 or 5 files that make up a Shapefile so I don't >>> think it is going to be possible. >>> >>> Ian >> I am trying to place a Servlet that creates shapefiles on Google App >> Engine. The problem that the filesystem there is read only. There are >> some treaks to write to it but it also has limitations. On my server it >> creates shapefiles on file system, writes them to ZipStream and makes >> available for download: http://hboard.iwk.uni-karlsruhe.de:8080/WebGisTools/ >> I gues it is also possible to create a zip from stream. The only problem >> how to create shapes to stream and define splits between separate files. >> >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Geotools-gt2-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> -- Dipl.-Ing. Oleg Evdakov, M.Sc. University of Karlsruhe (KIT) Institute for Water and River Basin Management (Institut für Wasser und Gewässerentwicklung - IWG) Department of Hydrology 76128 Karlsruhe Germany phone: +49(0)721-608-3165 alternate e-mail: [email protected] internet: http://www.evdakov.com ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
