~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to doc/gdal_tutorial.dox

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: gdal_tutorial.dox 16692 2009-03-30 17:58:12Z rouault $ */
 
1
/* $Id: gdal_tutorial.dox 20418 2010-08-23 19:01:36Z rouault $ */
2
2
 
3
3
/*!
4
4
\page gdal_tutorial GDAL API Tutorial
12
12
using GDALDriverManager::AutoLoadDrivers().  If for some applications it
13
13
is necessary to limit the set of drivers it may be helpful to review
14
14
the code from <a href="gdalallregister.cpp.html">gdalallregister.cpp</a>.
 
15
Python automatically calls GDALAllRegister() when the gdal module is 
 
16
imported.
15
17
 
16
18
Once the drivers are registered, the application should call the free
17
19
standing GDALOpen() function to open a dataset, passing the name of the
20
22
In C++:
21
23
\code
22
24
#include "gdal_priv.h"
 
25
#include "cpl_conv.h" // for CPLMalloc()
23
26
 
24
27
int main()
25
28
{
37
40
In C:
38
41
\code
39
42
#include "gdal.h"
 
43
#include "cpl_conv.h" /* for CPLMalloc() */
40
44
 
41
45
int main()
42
46
{
266
270
                          0, 0 );
267
271
\endcode
268
272
 
 
273
The pafScanline buffer should be freed with CPLFree() when it is no longer used.
 
274
 
269
275
In C:
270
276
\code
271
277
        float *pafScanline;
277
283
                      0, 0 );
278
284
\endcode
279
285
 
 
286
The pafScanline buffer should be freed with CPLFree() when it is no longer used.
 
287
 
280
288
In Python:
281
289
 
282
290
\code
638
646
 
639
647
\htmlonly
640
648
<p>
641
 
$Id: gdal_tutorial.dox 16692 2009-03-30 17:58:12Z rouault $
 
649
$Id: gdal_tutorial.dox 20418 2010-08-23 19:01:36Z rouault $
642
650
</p>
643
651
\endhtmlonly
644
652