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.
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. Ian -- Ian Turton ------------------------------------------------------------------------------ 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
