Geo-GDAL
view release on metacpan or search on metacpan
gdalconst_wrap.c
gdal_wrap.cpp
ogr_wrap.cpp
osr_wrap.cpp
cr.dox
cv.dox
index.dox
pdl.dox
rr.dox
rv.dox
streaming.dox
transform.dox
check_dox.pl
parse-for-doxygen.pl
Changes-in-the-API-in-2.0
MYMETA.yml
MYMETA.json
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
\section index_stdout_redirection Redirecting stdout to a writer object
The Perl bindings takes advantage of the virtual file system of GDAL
and offers a way to redirect the output from a format driver to a Perl
object. The object needs to implement \c write and \c close
methods. \c write is called for each output from the driver with the
output byte string as an argument. \c close is called when the dataset
being used in the creation is destroyed. Note that the destruction of
the dataset may depend on destruction of all objects that depend on
it. For a simple example see page \ref streaming.
Due to the limitation of the redirection mechanism only one redirection
may be active at any time.
Note that the return value of the \c write method does not have any
effect. Internally the return value is set to the length of the byte
string.
\section index_refcount Reference counting
streaming.dox view on Meta::CPAN
/*! \page streaming Streaming a dataset
The code here does not have any warranty. It is recommended that
before using any of this code, you look into it and try to understand
what it does, what input it needs, etc. Do not blindly execute
anything!
This example will stream a vector dataset as GML through an object,
which implements <a
href="http://search.cpan.org/~miyagawa/PSGI-1.102/PSGI.pod#Delayed_Response_and_Streaming_Body">write
and close methods</a>.
( run in 0.335 second using v1.01-cache-2.11-cpan-4d50c553e7e )