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
>

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

Reply via email to