Re: [Gdal-dev] no file

2009-04-12 Thread Frank Warmerdam
mjollnir wrote: I found I cannot use the "virtual file" with ogr, such as read virual GEOJson file from memory buffer. I guess the ogr doesn't support VSI* function,correct me if i'm wrong It depends on the individual driver. Only some OGR and GDAL drivers support virtual files. Apparently t

Re: [Gdal-dev] no file

2009-04-12 Thread mjollnir
I found I cannot use the "virtual file" with ogr, such as read virual GEOJson file from memory buffer. I guess the ogr doesn't support VSI* function,correct me if i'm wrong Ray, You can run the PNG encoder to a memory buffer "virtual file" using the mechanism described at: http://www.gdal.

Re: [Gdal-dev] no file

2009-03-31 Thread Frank Warmerdam
mjollnir wrote: You can run the PNG encoder to a memory buffer "virtual file" using the mechanism described at: http://www.gdal.org/cpl__vsi_8h.html#66e2e6f093fd42f8a941b962d4c8a19e Then you would send the contents of the memory buffer off to the socket. In theory you could also write a s

Re: [Gdal-dev] no file

2009-03-31 Thread mjollnir
You can run the PNG encoder to a memory buffer "virtual file" using the mechanism described at: http://www.gdal.org/cpl__vsi_8h.html#66e2e6f093fd42f8a941b962d4c8a19e Then you would send the contents of the memory buffer off to the socket. In theory you could also write a special file handl

Re: [Gdal-dev] no file

2009-03-31 Thread Frank Warmerdam
mjollnir wrote: hi, i read the image from a JPG file, and translate it to a PNG dataset, now, i want send the PNG image binary data to a socket directly, actually no intermediate PNG file needed. Ray, You can run the PNG encoder to a memory buffer "virtual file" using the mechanism described

[Gdal-dev] no file

2009-03-31 Thread mjollnir
hi, i read the image from a JPG file, and translate it to a PNG dataset, now, i want send the PNG image binary data to a socket directly, actually no intermediate PNG file needed. can i do this? -- View this message in context: http://n2.nabble.com/no-file-tp2563633p2563633.html Sent from