[Gdal-dev] no file

mjollnir mjollnir.ray at gmail.com
Sun Apr 12 11:45:48 EDT 2009


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.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 handler allowing you to
stream it directly to the socket without an intermediate memory buffer but
that would be very involved.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev



-- 
View this message in context: http://n2.nabble.com/no-file-tp2563633p2624447.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.



More information about the gdal-dev mailing list