FFI.pm

filter: Statementstmt 5.8% 82 / 1413 Branchbran 2.3% 2 / 84 Conditioncond 2.6% 1 / 38 MC/DCmcdc 0.0% 0 / 21 Subroutinesub 39.7% 27 / 68 Podpod n/a totaltotal 6.9% 112 / 1624 CC 67 SCAR 32.1
CC
67
Cov
6%
Open
110.0
new
90.0
IdentifyDriver
56.0
CRAP 24.7
« FFI/FieldDefn.pm ↑ Summary FFI/Object.pm »
1 package Geo::GDAL::FFI;
2
3 13 ▶use v5.10;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 13 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 13 ▶use PDL::Types ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 13 ▶use Config (); # needed to silence some FFI::Platypus warnings
Subroutine BEGIN: called CC=1 SCAR=0.0
9 13 ▶use FFI::Platypus;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 13 ▶use FFI::Platypus::Buffer;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 require Exporter;
12 require B;
13 13 ▶use Sort::Versions;
Subroutine BEGIN: called CC=1 SCAR=0.0
14
15 13 ▶use Geo::GDAL::FFI::VSI;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 13 ▶use Geo::GDAL::FFI::VSI::File;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 13 ▶use Geo::GDAL::FFI::SpatialReference;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 13 ▶use Geo::GDAL::FFI::Object;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 13 ▶use Geo::GDAL::FFI::Driver;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 13 ▶use Geo::GDAL::FFI::Dataset;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 13 ▶use Geo::GDAL::FFI::Band;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 13 ▶use Geo::GDAL::FFI::Layer;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 13 ▶use Geo::GDAL::FFI::FeatureDefn;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 13 ▶use Geo::GDAL::FFI::FieldDefn;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 13 ▶use Geo::GDAL::FFI::GeomFieldDefn;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 13 ▶use Geo::GDAL::FFI::Feature;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 13 ▶use Geo::GDAL::FFI::Geometry;
Subroutine BEGIN: called CC=1 SCAR=0.0
28
29 our $VERSION = '0.15';
30 our $DEBUG = 0;
31
32 our @ISA = qw(Exporter);
33 our @EXPORT_OK = qw(@errors GetVersionInfo SetErrorHandling UnsetErrorHandling
34 Capabilities OpenFlags DataTypes ResamplingMethods
35 FieldTypes FieldSubtypes Justifications ColorInterpretations
36 GeometryTypes GeometryFormats GridAlgorithms
37 GetDriver GetDrivers IdentifyDriver Open
38 HaveGEOS SetConfigOption GetConfigOption
39 FindFile PushFinderLocation PopFinderLocation FinderClean);
40 our %EXPORT_TAGS = (all => \@EXPORT_OK);
41
42 our $None = 0;
43 our $Debug = 1;
44 our $Warning = 2;
45 our $Failure = 3;
46 our $Fatal = 4;
47
48 our %ogr_errors = (
49 1 => 'NOT_ENOUGH_DATA',
50 2 => 'NOT_ENOUGH_MEMORY',
51 3 => 'UNSUPPORTED_GEOMETRY_TYPE',
52 4 => 'UNSUPPORTED_OPERATION',
53 5 => 'CORRUPT_DATA',
54 6 => 'FAILURE',
55 7 => 'UNSUPPORTED_SRS',
56 8 => 'INVALID_HANDLE',
57 9 => 'NON_EXISTING_FEATURE',
58 );
59
60 our $Read = 0;
61 our $Write = 1;
62
63 our @errors;
64 our %immutable;
65 my %parent_ref_hash;
66
67 #say STDERR "XXX " . $ENV{LD_LIBRARY_PATH};
68 #my $instance = __PACKAGE__->new;
69 my $instance;
70
71 sub SetErrorHandling {
72 0 ▶ return unless $instance;
Subroutine SetErrorHandling: not called CC=3 SCAR=24.8
Branch: 1 branch
BranchTrueFalseTotal
unless $instance 0 0 0
73 0 ▶ return if exists $instance->{CPLErrorHandler};
Branch: 1 branch
BranchTrueFalseTotal
if exists $instance->{"CPLErrorHandler"} 0 0 0
74 $instance->{CPLErrorHandler} = $instance->{ffi}->closure(
75 sub {
76 0 ▶ my ($err_cat, $err_num, $msg) = @_;
Subroutine __ANON__: not called CC=5 SCAR=34.0
77 0 ▶ if ($err_cat == $None) {
Branch: 3 branches
BranchTrueFalseTotal
if ($err_cat == $Geo::GDAL::FFI::None) { } 0 0 0
elsif ($err_cat == $Geo::GDAL::FFI::Debug) { } 0 0 0
elsif ($err_cat == $Geo::GDAL::FFI::Warning) { } 0 0 0
78 } elsif ($err_cat == $Debug) {
79 0 ▶ if ($DEBUG) {
Branch: 1 branch
BranchTrueFalseTotal
if ($Geo::GDAL::FFI::DEBUG) 0 0 0
80 0 print STDERR $msg;
81 }
82 } elsif ($err_cat == $Warning) {
83 0 warn $msg;
84 } else {
85 0 push @errors, $msg;
86 }
87 0 });
88 0 $instance->{CPLErrorHandler}->sticky;
89 0 CPLPushErrorHandler($instance->{CPLErrorHandler});
90 }
91
92 sub UnsetErrorHandling {
93 0 ▶ return unless $instance;
Subroutine UnsetErrorHandling: not called CC=3 SCAR=24.8
Branch: 1 branch
BranchTrueFalseTotal
unless $instance 0 0 0
94 0 ▶ return unless exists $instance->{CPLErrorHandler};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $instance->{"CPLErrorHandler"} 0 0 0
95 0 $instance->{CPLErrorHandler}->unstick;
96 0 CPLPopErrorHandler($instance->{CPLErrorHandler});
97 0 delete $instance->{CPLErrorHandler};
98 }
99
100 sub error_msg {
101 0 ▶ my $args = shift;
Subroutine error_msg: not called CC=5 SCAR=34.0
102 0 ▶ return unless @errors || $args;
Branch: 1 branch
BranchTrueFalseTotal
unless @Geo::GDAL::FFI::errors or $args 0 0 0
Condition0%0/3
@Geo::GDAL::FFI::errors or $args
l!l&&r!l&&!r
000
MC/DC0%0/2
@Geo::GDAL::FFI::errors or $args
@Geo::GDAL::FFI::errors $args
Truth table0%0/3
A or B
A= @Geo::GDAL::FFI::errorsB= $args
ABresult
1X1
011
000
103 0 ▶ unless (@errors) {
Branch: 1 branch
BranchTrueFalseTotal
unless (@Geo::GDAL::FFI::errors) 0 0 0
104 0 ▶ return $ogr_errors{$args->{OGRError}} if $args->{OGRError};
Branch: 1 branch
BranchTrueFalseTotal
if $args->{"OGRError"} 0 0 0
105 0 return "Unknown error.";
106 }
107 0 my $msg = join("\n", @errors);
108 0 @errors = ();
109 0 return $msg;
110 }
111
112 # internal methods
113 sub _register_parent_ref {
114 0 ▶ my ($gdal_handle, $parent) = @_;
Subroutine _register_parent_ref: not called CC=3 SCAR=24.8
115 # ensure $gdal_handle is not blessed?
116 0 ▶ confess "gdal handle is undefined"
Branch: 1 branch
BranchTrueFalseTotal
unless defined $gdal_handle 0 0 0
117 if !defined $gdal_handle;
118 0 ▶ confess "Parent ref is undefined"
Branch: 1 branch
BranchTrueFalseTotal
unless $parent 0 0 0
119 if !$parent;
120 0 $parent_ref_hash{$gdal_handle} = $parent;
121 }
122
123 sub _deregister_parent_ref {
124 0 ▶ my ($gdal_handle) = @_;
Subroutine _deregister_parent_ref: not called CC=2 SCAR=17.9
125 # we get undef vals in global cleanup
126 0 ▶ return if !$gdal_handle;
Branch: 1 branch
BranchTrueFalseTotal
unless $gdal_handle 0 0 0
127 0 delete $parent_ref_hash{$gdal_handle};
128 }
129
130 sub _get_parent_ref {
131 0 ▶ my ($gdal_handle) = @_;
Subroutine _get_parent_ref: not called CC=2 SCAR=17.9
132 warn "Attempting to access non-existent parent"
133 0 ▶ if !$parent_ref_hash{$gdal_handle};
Branch: 1 branch
BranchTrueFalseTotal
unless $parent_ref_hash{$gdal_handle} 0 0 0
134 0 return $parent_ref_hash{$gdal_handle}
135 }
136
137
138 our %capabilities = (
139 OPEN => 1,
140 CREATE => 2,
141 CREATECOPY => 3,
142 VIRTUALIO => 4,
143 RASTER => 5,
144 VECTOR => 6,
145 GNM => 7,
146 NOTNULL_FIELDS => 8,
147 DEFAULT_FIELDS => 9,
148 NOTNULL_GEOMFIELDS => 10,
149 NONSPATIAL => 11,
150 FEATURE_STYLES => 12,
151 );
152
153 sub Capabilities {
154 0 ▶ return sort {$capabilities{$a} <=> $capabilities{$b}} keys %capabilities;
Subroutine Capabilities: not called CC=1 SCAR=6.9
155 }
156
157 our %open_flags = (
158 READONLY => 0x00,
159 UPDATE => 0x01,
160 ALL => 0x00,
161 RASTER => 0x02,
162 VECTOR => 0x04,
163 GNM => 0x08,
164 SHARED => 0x20,
165 VERBOSE_ERROR => 0x40,
166 INTERNAL => 0x80,
167 ARRAY_BLOCK_ACCESS => 0x100,
168 HASHSET_BLOCK_ACCESS => 0x200,
169 );
170
171 sub OpenFlags {
172 0 ▶ return sort {$open_flags{$a} <=> $open_flags{$b}} keys %open_flags;
Subroutine OpenFlags: not called CC=1 SCAR=6.9
173 }
174
175 our %data_types = (
176 Unknown => 0,
177 Byte => 1,
178 UInt16 => 2,
179 Int16 => 3,
180 UInt32 => 4,
181 Int32 => 5,
182 Float32 => 6,
183 Float64 => 7,
184 CInt16 => 8,
185 CInt32 => 9,
186 CFloat32 => 10,
187 CFloat64 => 11
188 );
189 our %data_types_reverse = reverse %data_types;
190
191 sub DataTypes {
192 0 ▶ return sort {$data_types{$a} <=> $data_types{$b}} keys %data_types;
Subroutine DataTypes: not called CC=1 SCAR=6.9
193 }
194
195 our %rat_field_type = (
196 Integer => 0,
197 Real => 1,
198 String => 2
199 );
200
201 our %rat_field_usage = (
202 Generic => 0,
203 PixelCount => 1,
204 Name => 2,
205 Min => 3,
206 Max => 4,
207 MinMax => 5,
208 Red => 6,
209 Green => 7,
210 Blue => 8,
211 Alpha => 9,
212 RedMin => 10,
213 GreenMin => 11,
214 BlueMin => 12,
215 AlphaMin => 13,
216 RedMax => 14,
217 GreenMax => 15,
218 BlueMax => 16,
219 AlphaMax => 17,
220 );
221
222 our %rat_table_type = (
223 THEMATIC => 0,
224 ATHEMATIC => 1
225 );
226
227 our %resampling = (
228 NearestNeighbour => 0,
229 Bilinear => 1,
230 Cubic => 2,
231 CubicSpline => 3,
232 ORA_Lanczos => 4,
233 Average => 5,
234 Mode => 6,
235 Gauss => 7
236 );
237
238 sub ResamplingMethods {
239 0 ▶ return sort {$resampling{$a} <=> $resampling{$b}} keys %resampling;
Subroutine ResamplingMethods: not called CC=1 SCAR=6.9
240 }
241
242 our %data_type2pdl_data_type = (
243 Byte => $PDL::Types::PDL_B,
244 Int16 => $PDL::Types::PDL_S,
245 UInt16 => $PDL::Types::PDL_US,
246 Int32 => $PDL::Types::PDL_L,
247 Float32 => $PDL::Types::PDL_F,
248 Float64 => $PDL::Types::PDL_D,
249 );
250 our %pdl_data_type2data_type = reverse %data_type2pdl_data_type;
251
252 our %field_types = (
253 Integer => 0,
254 IntegerList => 1,
255 Real => 2,
256 RealList => 3,
257 String => 4,
258 StringList => 5,
259 #WideString => 6, # do not use
260 #WideStringList => 7, # do not use
261 Binary => 8,
262 Date => 9,
263 Time => 10,
264 DateTime => 11,
265 Integer64 => 12,
266 Integer64List => 13,
267 );
268 our %field_types_reverse = reverse %field_types;
269
270 sub FieldTypes {
271 0 ▶ return sort {$field_types{$a} <=> $field_types{$b}} keys %field_types;
Subroutine FieldTypes: not called CC=1 SCAR=6.9
272 }
273
274 our %field_subtypes = (
275 None => 0,
276 Boolean => 1,
277 Int16 => 2,
278 Float32 => 3
279 );
280 our %field_subtypes_reverse = reverse %field_subtypes;
281
282 sub FieldSubtypes {
283 0 ▶ return sort {$field_subtypes{$a} <=> $field_subtypes{$b}} keys %field_subtypes;
Subroutine FieldSubtypes: not called CC=1 SCAR=6.9
284 }
285
286 our %justification = (
287 Undefined => 0,
288 Left => 1,
289 Right => 2
290 );
291 our %justification_reverse = reverse %justification;
292
293 sub Justifications {
294 0 ▶ return sort {$justification{$a} <=> $justification{$b}} keys %justification;
Subroutine Justifications: not called CC=1 SCAR=6.9
295 }
296
297 our %color_interpretations = (
298 Undefined => 0,
299 GrayIndex => 1,
300 PaletteIndex => 2,
301 RedBand => 3,
302 GreenBand => 4,
303 BlueBand => 5,
304 AlphaBand => 6,
305 HueBand => 7,
306 SaturationBand => 8,
307 LightnessBand => 9,
308 CyanBand => 10,
309 MagentaBand => 11,
310 YellowBand => 12,
311 BlackBand => 13,
312 YCbCr_YBand => 14,
313 YCbCr_CbBand => 15,
314 YCbCr_CrBand => 16,
315 );
316 our %color_interpretations_reverse = reverse %color_interpretations;
317
318 sub ColorInterpretations {
319 0 ▶ return sort {$color_interpretations{$a} <=> $color_interpretations{$b}} keys %color_interpretations;
Subroutine ColorInterpretations: not called CC=1 SCAR=6.9
320 }
321
322 our %geometry_types = (
323 Unknown => 0,
324 Point => 1,
325 LineString => 2,
326 Polygon => 3,
327 MultiPoint => 4,
328 MultiLineString => 5,
329 MultiPolygon => 6,
330 GeometryCollection => 7,
331 CircularString => 8,
332 CompoundCurve => 9,
333 CurvePolygon => 10,
334 MultiCurve => 11,
335 MultiSurface => 12,
336 Curve => 13,
337 Surface => 14,
338 PolyhedralSurface => 15,
339 TIN => 16,
340 Triangle => 17,
341 None => 100,
342 LinearRing => 101,
343 CircularStringZ => 1008,
344 CompoundCurveZ => 1009,
345 CurvePolygonZ => 1010,
346 MultiCurveZ => 1011,
347 MultiSurfaceZ => 1012,
348 CurveZ => 1013,
349 SurfaceZ => 1014,
350 PolyhedralSurfaceZ => 1015,
351 TINZ => 1016,
352 TriangleZ => 1017,
353 PointM => 2001,
354 LineStringM => 2002,
355 PolygonM => 2003,
356 MultiPointM => 2004,
357 MultiLineStringM => 2005,
358 MultiPolygonM => 2006,
359 GeometryCollectionM => 2007,
360 CircularStringM => 2008,
361 CompoundCurveM => 2009,
362 CurvePolygonM => 2010,
363 MultiCurveM => 2011,
364 MultiSurfaceM => 2012,
365 CurveM => 2013,
366 SurfaceM => 2014,
367 PolyhedralSurfaceM => 2015,
368 TINM => 2016,
369 TriangleM => 2017,
370 PointZM => 3001,
371 LineStringZM => 3002,
372 PolygonZM => 3003,
373 MultiPointZM => 3004,
374 MultiLineStringZM => 3005,
375 MultiPolygonZM => 3006,
376 GeometryCollectionZM => 3007,
377 CircularStringZM => 3008,
378 CompoundCurveZM => 3009,
379 CurvePolygonZM => 3010,
380 MultiCurveZM => 3011,
381 MultiSurfaceZM => 3012,
382 CurveZM => 3013,
383 SurfaceZM => 3014,
384 PolyhedralSurfaceZM => 3015,
385 TINZM => 3016,
386 TriangleZM => 3017,
387 Point25D => 0x80000001,
388 LineString25D => 0x80000002,
389 Polygon25D => 0x80000003,
390 MultiPoint25D => 0x80000004,
391 MultiLineString25D => 0x80000005,
392 MultiPolygon25D => 0x80000006,
393 GeometryCollection25D => 0x80000007
394 );
395 our %geometry_types_reverse = reverse %geometry_types;
396
397 sub GeometryTypes {
398 0 ▶ return sort {$geometry_types{$a} <=> $geometry_types{$b}} keys %geometry_types;
Subroutine GeometryTypes: not called CC=1 SCAR=6.9
399 }
400
401 our %geometry_formats = (
402 WKT => 1,
403 );
404
405 sub GeometryFormats {
406 0 ▶ return sort {$geometry_formats{$a} <=> $geometry_formats{$b}} keys %geometry_formats;
Subroutine GeometryFormats: not called CC=1 SCAR=6.9
407 }
408
409 our %grid_algorithms = (
410 InverseDistanceToAPower => 1,
411 MovingAverage => 2,
412 NearestNeighbor => 3,
413 MetricMinimum => 4,
414 MetricMaximum => 5,
415 MetricRange => 6,
416 MetricCount => 7,
417 MetricAverageDistance => 8,
418 MetricAverageDistancePts => 9,
419 Linear => 10,
420 InverseDistanceToAPowerNearestNeighbor => 11
421 );
422
423 sub GridAlgorithms {
424 0 ▶ return sort {$grid_algorithms{$a} <=> $grid_algorithms{$b}} keys %grid_algorithms;
Subroutine GridAlgorithms: not called CC=1 SCAR=6.9
425 }
426
427 sub isint {
428 0 ▶ my $value = shift;
Subroutine isint: not called CC=4 SCAR=30.0
429 0 my $b_obj = B::svref_2object(\$value);
430 0 my $flags = $b_obj->FLAGS;
431 0 ▶ return 1 if $flags & B::SVp_IOK() && !($flags & B::SVp_NOK()) && !($flags & B::SVp_POK());
Branch: 1 branch
BranchTrueFalseTotal
if $flags & 4096 and not $flags & 8192 and not $flags & 16384 0 0 0
Condition0%0/6
$flags & 4096 and not $flags & 8192 and not $flags & 16384
!ll&&!rl&&r
000
$flags & 4096 and not $flags & 8192
!ll&&!rl&&r
000
MC/DC0%0/3
$flags & 4096 and not $flags & 8192 and not $flags & 16384
$flags & 4096 not $flags & 8192 not $flags & 16384
Truth table0%0/4
A and not(B) and not(C)
A= $flags & 4096B= not $flags & 8192C= not $flags & 16384
ABCresult
0XX0
10X0
1100
1111
432 }
433
434 sub new {
435 0 ▶ my $class = shift;
Subroutine new: not called CC=9 SCAR=45.0
436 0 my $gdal = shift;
437
438 0 ▶ return $instance if $instance;
Branch: 1 branch
BranchTrueFalseTotal
if $instance 0 0 0
439
440 0 my $ffi = FFI::Platypus->new;
441 0 my @libs = $gdal->dynamic_libs;
442 0 $ffi->lib(@libs);
443
444 0 $ffi->type('(pointer,size_t,size_t,opaque)->size_t' => 'VSIWriteFunction');
445 0 $ffi->type('(int,int,string)->void' => 'CPLErrorHandler');
446 0 $ffi->type('(double,string,pointer)->int' => 'GDALProgressFunc');
447 0 $ffi->type('(pointer,int, pointer,int,int,unsigned int,unsigned int,int,int)->int' => 'GDALDerivedPixelFunc');
448 0 $ffi->type('(pointer,int,int,pointer,pointer,pointer,pointer)->int' => 'GDALTransformerFunc');
449 0 $ffi->type('(double,int,pointer,pointer,pointer)->int' => 'GDALContourWriter');
450 0 $ffi->type('(string,string,sint64,sint64,pointer)->void' => 'GDALQueryLoggerFunc');
451 0 $ffi->type('(string,pointer,pointer,int,int,pointer,pointer,pointer,pointer,pointer,pointer)->int' => 'GDALVRTProcessedDatasetFuncInit');
452 0 $ffi->type('(string,pointer,pointer)->void' => 'GDALVRTProcessedDatasetFuncFree');
453 0 $ffi->type('(string,pointer,pointer,int,int,int,pointer,size_t,int,int,pointer,pointer,size_t,int,int,pointer,double,double,double,double,pointer,string,int)->int' => 'GDALVRTProcessedDatasetFuncProcess');
454
455 0 $ffi->ignore_not_found(1);
456
457 # from port/*.h
458 0 $ffi->attach(VSIMalloc => [qw/uint/] => 'opaque');
459 0 ▶ croak "Can't attach to GDAL methods. Problem with GDAL dynamic libs: '@libs'?" unless $class->can('VSIMalloc');
Branch: 1 branch
BranchTrueFalseTotal
unless $class->can("VSIMalloc") 0 0 0
460 0 $ffi->attach(VSIFree => ['opaque'] => 'void');
461 0 $ffi->attach(CPLError => [qw/int int string/] => 'void');
462 0 $ffi->attach(VSIFOpenL => [qw/string string/] => 'opaque');
463 0 $ffi->attach(VSIFOpenExL => [qw/string string int/] => 'opaque');
464 0 $ffi->attach(VSIFCloseL => ['opaque'] => 'int');
465 0 $ffi->attach(VSIFWriteL => [qw/opaque uint uint opaque/] => 'uint');
466 0 $ffi->attach(VSIFReadL => [qw/opaque uint uint opaque/] => 'uint');
467 0 $ffi->attach(VSIIngestFile => [qw/opaque string string* uint64* sint64/] => 'int');
468 0 $ffi->attach(VSIMkdir => [qw/string sint64/] => 'int');
469 0 $ffi->attach(VSIRmdir => [qw/string/] => 'int');
470 0 $ffi->attach(VSIReadDirEx => [qw/string int/] => 'opaque');
471 0 $ffi->attach(VSIUnlink => [qw/string/] => 'int');
472 0 $ffi->attach(VSIRename => [qw/string string/] => 'int');
473 0 $ffi->attach(VSIStdoutSetRedirection => ['VSIWriteFunction', 'opaque'] => 'void');
474 0 $ffi->attach(CPLSetErrorHandler => ['CPLErrorHandler'] => 'opaque');
475 0 $ffi->attach(CPLPushErrorHandler => ['CPLErrorHandler'] => 'void');
476 0 $ffi->attach(CPLPopErrorHandler => ['CPLErrorHandler'] => 'void');
477 0 $ffi->attach(CSLDestroy => ['opaque'] => 'void');
478 0 $ffi->attach(CSLAddString => ['opaque', 'string'] => 'opaque');
479 0 $ffi->attach(CSLCount => ['opaque'] => 'int');
480 0 $ffi->attach(CSLGetField => ['opaque', 'int'] => 'string');
481 0 $ffi->attach(CPLGetConfigOption => ['string', 'string'] => 'string');
482 0 $ffi->attach(CPLSetConfigOption => ['string', 'string'] => 'void');
483 0 $ffi->attach(CPLFindFile => ['string', 'string'] => 'string');
484 0 $ffi->attach(CPLPushFinderLocation => ['string'] => 'void');
485 0 $ffi->attach(CPLPopFinderLocation => [] => 'void');
486 0 $ffi->attach(CPLFinderClean => [] => 'void');
487
488 # from ogr_core.h
489 0 $ffi->attach( 'OGR_GT_Flatten' => ['unsigned int'] => 'unsigned int');
490
491 # generated with parse_h.pl
492 # from gcore/gdal.h
493 0 $ffi->attach('GDALGetDataTypeSize' => ['unsigned int'] => 'int');
494 0 $ffi->attach('GDALGetDataTypeSizeBits' => ['unsigned int'] => 'int');
495 0 $ffi->attach('GDALGetDataTypeSizeBytes' => ['unsigned int'] => 'int');
496 0 $ffi->attach('GDALDataTypeIsComplex' => ['unsigned int'] => 'int');
497 0 $ffi->attach('GDALDataTypeIsInteger' => ['unsigned int'] => 'int');
498 0 $ffi->attach('GDALDataTypeIsFloating' => ['unsigned int'] => 'int');
499 0 $ffi->attach('GDALDataTypeIsSigned' => ['unsigned int'] => 'int');
500 0 $ffi->attach('GDALGetDataTypeName' => ['unsigned int'] => 'string');
501 0 $ffi->attach('GDALGetDataTypeByName' => [qw/string/] => 'unsigned int');
502 0 $ffi->attach('GDALDataTypeUnion' => ['unsigned int','unsigned int'] => 'unsigned int');
503 0 $ffi->attach('GDALDataTypeUnionWithValue' => ['unsigned int','double','int'] => 'unsigned int');
504 0 $ffi->attach('GDALFindDataType' => [qw/int int int int/] => 'unsigned int');
505 0 $ffi->attach('GDALFindDataTypeForValue' => [qw/double int/] => 'unsigned int');
506 0 $ffi->attach('GDALAdjustValueToDataType' => ['unsigned int','double','int*','int*'] => 'double');
507 0 $ffi->attach('GDALGetNonComplexDataType' => ['unsigned int'] => 'unsigned int');
508 0 $ffi->attach('GDALDataTypeIsConversionLossy' => ['unsigned int','unsigned int'] => 'int');
509 0 $ffi->attach('GDALGetAsyncStatusTypeName' => ['unsigned int'] => 'string');
510 0 $ffi->attach('GDALGetAsyncStatusTypeByName' => [qw/string/] => 'unsigned int');
511 0 $ffi->attach('GDALGetColorInterpretationName' => ['unsigned int'] => 'string');
512 0 $ffi->attach('GDALGetColorInterpretationByName' => [qw/string/] => 'unsigned int');
513 0 $ffi->attach('GDALGetPaletteInterpretationName' => ['unsigned int'] => 'string');
514 0 $ffi->attach('GDALAllRegister' => [] => 'void');
515 0 $ffi->attach('GDALCreate' => ['opaque','string','int','int','int','unsigned int','opaque'] => 'opaque');
516 0 $ffi->attach('GDALCreateCopy' => [qw/opaque string opaque int opaque GDALProgressFunc opaque/] => 'opaque');
517 0 $ffi->attach('GDALIdentifyDriver' => [qw/string opaque/] => 'opaque');
518 0 $ffi->attach('GDALIdentifyDriverEx' => ['string','unsigned int','opaque','opaque'] => 'opaque');
519 0 $ffi->attach('GDALOpen' => ['string','unsigned int'] => 'opaque');
520 0 $ffi->attach('GDALOpenShared' => ['string','unsigned int'] => 'opaque');
521 0 $ffi->attach('GDALOpenEx' => ['string','unsigned int','opaque','opaque','opaque'] => 'opaque');
522 0 $ffi->attach('GDALDumpOpenDatasets' => [qw/opaque/] => 'int');
523 0 $ffi->attach('GDALGetDriverByName' => [qw/string/] => 'opaque');
524 0 $ffi->attach('GDALGetDriverCount' => [] => 'int');
525 0 $ffi->attach('GDALGetDriver' => [qw/int/] => 'opaque');
526 0 $ffi->attach('GDALCreateDriver' => [] => 'opaque');
527 0 $ffi->attach('GDALDestroyDriver' => [qw/opaque/] => 'void');
528 0 $ffi->attach('GDALRegisterDriver' => [qw/opaque/] => 'int');
529 0 $ffi->attach('GDALDeregisterDriver' => [qw/opaque/] => 'void');
530 0 $ffi->attach('GDALDestroyDriverManager' => [] => 'void');
531 0 $ffi->attach('GDALDestroy' => [] => 'void');
532 0 $ffi->attach('GDALDeleteDataset' => [qw/opaque string/] => 'int');
533 0 $ffi->attach('GDALRenameDataset' => [qw/opaque string string/] => 'int');
534 0 $ffi->attach('GDALCopyDatasetFiles' => [qw/opaque string string/] => 'int');
535 0 $ffi->attach('GDALValidateCreationOptions' => [qw/opaque opaque/] => 'int');
536 0 $ffi->attach('GDALGetDriverShortName' => [qw/opaque/] => 'string');
537 0 $ffi->attach('GDALGetDriverLongName' => [qw/opaque/] => 'string');
538 0 $ffi->attach('GDALGetDriverHelpTopic' => [qw/opaque/] => 'string');
539 0 $ffi->attach('GDALGetDriverCreationOptionList' => [qw/opaque/] => 'string');
540 0 $ffi->attach('GDALInitGCPs' => [qw/int opaque/] => 'void');
541 0 $ffi->attach('GDALDeinitGCPs' => [qw/int opaque/] => 'void');
542 0 $ffi->attach('GDALDuplicateGCPs' => [qw/int opaque/] => 'opaque');
543 0 $ffi->attach('GDALGCPsToGeoTransform' => [qw/int opaque double* int/] => 'int');
544 0 $ffi->attach('GDALInvGeoTransform' => [qw/double[] double[]/] => 'int');
545 0 $ffi->attach('GDALApplyGeoTransform' => [qw/double[6] double double double* double*/] => 'void');
546 0 $ffi->attach('GDALComposeGeoTransforms' => [qw/double[6] double[6] double[6]/] => 'void');
547 0 $ffi->attach('GDALGetMetadataDomainList' => [qw/opaque/] => 'opaque');
548 0 $ffi->attach('GDALGetMetadata' => [qw/opaque string/] => 'opaque');
549 0 $ffi->attach('GDALSetMetadata' => [qw/opaque opaque string/] => 'int');
550 0 $ffi->attach('GDALGetMetadataItem' => [qw/opaque string string/] => 'string');
551 0 $ffi->attach('GDALSetMetadataItem' => [qw/opaque string string string/] => 'int');
552 0 $ffi->attach('GDALGetDescription' => [qw/opaque/] => 'string');
553 0 $ffi->attach('GDALSetDescription' => [qw/opaque string/] => 'void');
554 0 $ffi->attach('GDALGetDatasetDriver' => [qw/opaque/] => 'opaque');
555 0 $ffi->attach('GDALGetFileList' => [qw/opaque/] => 'opaque');
556 0 $ffi->attach('GDALClose' => [qw/opaque/] => 'int');
557 0 $ffi->attach('GDALGetRasterXSize' => [qw/opaque/] => 'int');
558 0 $ffi->attach('GDALGetRasterYSize' => [qw/opaque/] => 'int');
559 0 $ffi->attach('GDALGetRasterCount' => [qw/opaque/] => 'int');
560 0 $ffi->attach('GDALGetRasterBand' => [qw/opaque int/] => 'opaque');
561 0 $ffi->attach('GDALAddBand' => ['opaque','unsigned int','opaque'] => 'int');
562 0 $ffi->attach('GDALBeginAsyncReader' => ['opaque','int','int','int','int','opaque','int','int','unsigned int','int','int*','int','int','int','opaque'] => 'opaque');
563 0 $ffi->attach('GDALEndAsyncReader' => [qw/opaque opaque/] => 'void');
564 0 $ffi->attach('GDALDatasetRasterIO' => ['opaque','unsigned int','int','int','int','int','opaque','int','int','unsigned int','int','int*','int','int','int'] => 'int');
565 0 $ffi->attach('GDALDatasetRasterIOEx' => ['opaque','unsigned int','int','int','int','int','opaque','int','int','unsigned int','int','int*','sint64','sint64','sint64','opaque'] => 'int');
566 0 $ffi->attach('GDALDatasetAdviseRead' => ['opaque','int','int','int','int','int','int','unsigned int','int','int*','opaque'] => 'int');
567 0 $ffi->attach('GDALDatasetGetCompressionFormats' => [qw/opaque int int int int int int*/] => 'opaque');
568 0 $ffi->attach('GDALDatasetReadCompressedData' => [qw/opaque string int int int int int int* opaque size_t string*/] => 'int');
569 0 $ffi->attach('GDALGetProjectionRef' => [qw/opaque/] => 'string');
570 0 $ffi->attach('GDALGetSpatialRef' => [qw/opaque/] => 'opaque');
571 0 $ffi->attach('GDALSetProjection' => [qw/opaque string/] => 'int');
572 0 $ffi->attach('GDALSetSpatialRef' => [qw/opaque opaque/] => 'int');
573 0 $ffi->attach('GDALGetGeoTransform' => [qw/opaque double[6]/] => 'int');
574 0 $ffi->attach('GDALSetGeoTransform' => [qw/opaque double[6]/] => 'int');
575 0 $ffi->attach('GDALGetGCPCount' => [qw/opaque/] => 'int');
576 0 $ffi->attach('GDALGetGCPProjection' => [qw/opaque/] => 'string');
577 0 $ffi->attach('GDALGetGCPSpatialRef' => [qw/opaque/] => 'opaque');
578 0 $ffi->attach('GDALGetGCPs' => [qw/opaque/] => 'opaque');
579 0 $ffi->attach('GDALSetGCPs' => [qw/opaque int opaque string/] => 'int');
580 0 $ffi->attach('GDALSetGCPs2' => [qw/opaque int opaque opaque/] => 'int');
581 0 $ffi->attach('GDALGetInternalHandle' => [qw/opaque string/] => 'opaque');
582 0 $ffi->attach('GDALReferenceDataset' => [qw/opaque/] => 'int');
583 0 $ffi->attach('GDALDereferenceDataset' => [qw/opaque/] => 'int');
584 0 $ffi->attach('GDALReleaseDataset' => [qw/opaque/] => 'int');
585 0 $ffi->attach('GDALBuildOverviews' => [qw/opaque string int int* int int* GDALProgressFunc opaque/] => 'int');
586 0 $ffi->attach('GDALBuildOverviewsEx' => [qw/opaque string int int* int int* GDALProgressFunc opaque opaque/] => 'int');
587 0 $ffi->attach('GDALGetOpenDatasets' => [qw/uint64* int*/] => 'void');
588 0 $ffi->attach('GDALGetAccess' => [qw/opaque/] => 'int');
589 0 $ffi->attach('GDALFlushCache' => [qw/opaque/] => 'int');
590 0 $ffi->attach('GDALCreateDatasetMaskBand' => [qw/opaque int/] => 'int');
591 0 $ffi->attach('GDALDatasetCopyWholeRaster' => [qw/opaque opaque opaque GDALProgressFunc opaque/] => 'int');
592 0 $ffi->attach('GDALRasterBandCopyWholeRaster' => [qw/opaque opaque opaque GDALProgressFunc opaque/] => 'int');
593 0 $ffi->attach('GDALRegenerateOverviews' => [qw/opaque int uint64* string GDALProgressFunc opaque/] => 'int');
594 0 $ffi->attach('GDALRegenerateOverviewsEx' => [qw/opaque int uint64* string GDALProgressFunc opaque opaque/] => 'int');
595 0 $ffi->attach('GDALDatasetGetLayerCount' => [qw/opaque/] => 'int');
596 0 $ffi->attach('GDALDatasetGetLayer' => [qw/opaque int/] => 'opaque');
597 0 $ffi->attach('GDALDatasetGetLayerByName' => [qw/opaque string/] => 'opaque');
598 0 $ffi->attach('GDALDatasetIsLayerPrivate' => [qw/opaque int/] => 'int');
599 0 $ffi->attach('GDALDatasetDeleteLayer' => [qw/opaque int/] => 'int');
600 0 $ffi->attach('GDALDatasetCreateLayer' => ['opaque','string','opaque','unsigned int','opaque'] => 'opaque');
601 0 $ffi->attach('GDALDatasetCopyLayer' => [qw/opaque opaque string opaque/] => 'opaque');
602 0 $ffi->attach('GDALDatasetResetReading' => [qw/opaque/] => 'void');
603 0 $ffi->attach('GDALDatasetGetNextFeature' => [qw/opaque uint64* double* GDALProgressFunc opaque/] => 'opaque');
604 0 $ffi->attach('GDALDatasetTestCapability' => [qw/opaque string/] => 'int');
605 0 $ffi->attach('GDALDatasetExecuteSQL' => [qw/opaque string opaque string/] => 'opaque');
606 0 $ffi->attach('GDALDatasetAbortSQL' => [qw/opaque/] => 'int');
607 0 $ffi->attach('GDALDatasetReleaseResultSet' => [qw/opaque opaque/] => 'void');
608 0 $ffi->attach('GDALDatasetGetStyleTable' => [qw/opaque/] => 'opaque');
609 0 $ffi->attach('GDALDatasetSetStyleTableDirectly' => [qw/opaque opaque/] => 'void');
610 0 $ffi->attach('GDALDatasetSetStyleTable' => [qw/opaque opaque/] => 'void');
611 0 $ffi->attach('GDALDatasetStartTransaction' => [qw/opaque int/] => 'int');
612 0 $ffi->attach('GDALDatasetCommitTransaction' => [qw/opaque/] => 'int');
613 0 $ffi->attach('GDALDatasetRollbackTransaction' => [qw/opaque/] => 'int');
614 0 $ffi->attach('GDALDatasetClearStatistics' => [qw/opaque/] => 'void');
615 0 $ffi->attach('GDALDatasetGetFieldDomainNames' => [qw/opaque opaque/] => 'opaque');
616 0 $ffi->attach('GDALDatasetGetFieldDomain' => [qw/opaque string/] => 'opaque');
617 0 $ffi->attach('GDALDatasetAddFieldDomain' => [qw/opaque opaque string*/] => 'bool');
618 0 $ffi->attach('GDALDatasetDeleteFieldDomain' => [qw/opaque string string*/] => 'bool');
619 0 $ffi->attach('GDALDatasetUpdateFieldDomain' => [qw/opaque opaque string*/] => 'bool');
620 0 $ffi->attach('GDALDatasetGetRelationshipNames' => [qw/opaque opaque/] => 'opaque');
621 0 $ffi->attach('GDALDatasetGetRelationship' => [qw/opaque string/] => 'opaque');
622 0 $ffi->attach('GDALDatasetAddRelationship' => [qw/opaque opaque string*/] => 'bool');
623 0 $ffi->attach('GDALDatasetDeleteRelationship' => [qw/opaque string string*/] => 'bool');
624 0 $ffi->attach('GDALDatasetUpdateRelationship' => [qw/opaque opaque string*/] => 'bool');
625 0 $ffi->attach('GDALDatasetSetQueryLoggerFunc' => [qw/opaque GDALQueryLoggerFunc opaque/] => 'bool');
626 0 $ffi->attach('GDALGetRasterDataType' => [qw/opaque/] => 'unsigned int');
627 0 $ffi->attach('GDALGetBlockSize' => [qw/opaque int* int*/] => 'void');
628 0 $ffi->attach('GDALGetActualBlockSize' => [qw/opaque int int int* int*/] => 'int');
629 0 $ffi->attach('GDALRasterAdviseRead' => ['opaque','int','int','int','int','int','int','unsigned int','opaque'] => 'int');
630 0 $ffi->attach('GDALRasterIO' => ['opaque','unsigned int','int','int','int','int','opaque','int','int','unsigned int','int','int'] => 'int');
631 0 $ffi->attach('GDALRasterIOEx' => ['opaque','unsigned int','int','int','int','int','opaque','int','int','unsigned int','sint64','sint64','opaque'] => 'int');
632 0 $ffi->attach('GDALReadBlock' => [qw/opaque int int opaque/] => 'int');
633 0 $ffi->attach('GDALWriteBlock' => [qw/opaque int int opaque/] => 'int');
634 0 $ffi->attach('GDALGetRasterBandXSize' => [qw/opaque/] => 'int');
635 0 $ffi->attach('GDALGetRasterBandYSize' => [qw/opaque/] => 'int');
636 0 $ffi->attach('GDALGetRasterAccess' => [qw/opaque/] => 'unsigned int');
637 0 $ffi->attach('GDALGetBandNumber' => [qw/opaque/] => 'int');
638 0 $ffi->attach('GDALGetBandDataset' => [qw/opaque/] => 'opaque');
639 0 $ffi->attach('GDALGetRasterColorInterpretation' => [qw/opaque/] => 'unsigned int');
640 0 $ffi->attach('GDALSetRasterColorInterpretation' => ['opaque','unsigned int'] => 'int');
641 0 $ffi->attach('GDALGetRasterColorTable' => [qw/opaque/] => 'opaque');
642 0 $ffi->attach('GDALSetRasterColorTable' => [qw/opaque opaque/] => 'int');
643 0 $ffi->attach('GDALHasArbitraryOverviews' => [qw/opaque/] => 'int');
644 0 $ffi->attach('GDALGetOverviewCount' => [qw/opaque/] => 'int');
645 0 $ffi->attach('GDALGetOverview' => [qw/opaque int/] => 'opaque');
646 0 $ffi->attach('GDALGetRasterNoDataValue' => [qw/opaque int*/] => 'double');
647 0 $ffi->attach('GDALGetRasterNoDataValueAsInt64' => [qw/opaque int*/] => 'int');
648 0 $ffi->attach('GDALGetRasterNoDataValueAsUInt64' => [qw/opaque int*/] => 'uint64');
649 0 $ffi->attach('GDALSetRasterNoDataValue' => [qw/opaque double/] => 'int');
650 0 $ffi->attach('GDALSetRasterNoDataValueAsInt64' => [qw/opaque int/] => 'int');
651 0 $ffi->attach('GDALSetRasterNoDataValueAsUInt64' => [qw/opaque uint64/] => 'int');
652 0 $ffi->attach('GDALDeleteRasterNoDataValue' => [qw/opaque/] => 'int');
653 0 $ffi->attach('GDALGetRasterCategoryNames' => [qw/opaque/] => 'opaque');
654 0 $ffi->attach('GDALSetRasterCategoryNames' => [qw/opaque opaque/] => 'int');
655 0 $ffi->attach('GDALGetRasterMinimum' => [qw/opaque int*/] => 'double');
656 0 $ffi->attach('GDALGetRasterMaximum' => [qw/opaque int*/] => 'double');
657 0 $ffi->attach('GDALGetRasterStatistics' => [qw/opaque int int double* double* double* double*/] => 'int');
658 0 $ffi->attach('GDALComputeRasterStatistics' => [qw/opaque int double* double* double* double* GDALProgressFunc opaque/] => 'int');
659 0 $ffi->attach('GDALSetRasterStatistics' => [qw/opaque double double double double/] => 'int');
660 0 $ffi->attach('GDALRasterBandAsMDArray' => [qw/opaque/] => 'opaque');
661 0 $ffi->attach('GDALGetRasterUnitType' => [qw/opaque/] => 'string');
662 0 $ffi->attach('GDALSetRasterUnitType' => [qw/opaque string/] => 'int');
663 0 $ffi->attach('GDALGetRasterOffset' => [qw/opaque int*/] => 'double');
664 0 $ffi->attach('GDALSetRasterOffset' => [qw/opaque double/] => 'int');
665 0 $ffi->attach('GDALGetRasterScale' => [qw/opaque int*/] => 'double');
666 0 $ffi->attach('GDALSetRasterScale' => [qw/opaque double/] => 'int');
667 0 $ffi->attach('GDALComputeRasterMinMax' => [qw/opaque int double/] => 'int');
668 0 $ffi->attach('GDALFlushRasterCache' => [qw/opaque/] => 'int');
669 0 $ffi->attach('GDALGetRasterHistogram' => [qw/opaque double double int int* int int GDALProgressFunc opaque/] => 'int');
670 0 $ffi->attach('GDALGetRasterHistogramEx' => [qw/opaque double double int uint64* int int GDALProgressFunc opaque/] => 'int');
671 0 $ffi->attach('GDALGetDefaultHistogram' => [qw/opaque double* double* int* int* int GDALProgressFunc opaque/] => 'int');
672 0 $ffi->attach('GDALGetDefaultHistogramEx' => [qw/opaque double* double* int* uint64* int GDALProgressFunc opaque/] => 'int');
673 0 $ffi->attach('GDALSetDefaultHistogram' => [qw/opaque double double int int*/] => 'int');
674 0 $ffi->attach('GDALSetDefaultHistogramEx' => [qw/opaque double double int uint64*/] => 'int');
675 0 $ffi->attach('GDALGetRandomRasterSample' => [qw/opaque int float*/] => 'int');
676 0 $ffi->attach('GDALGetRasterSampleOverview' => [qw/opaque int/] => 'opaque');
677 0 $ffi->attach('GDALGetRasterSampleOverviewEx' => [qw/opaque uint64/] => 'opaque');
678 0 $ffi->attach('GDALFillRaster' => [qw/opaque double double/] => 'int');
679 0 $ffi->attach('GDALComputeBandStats' => [qw/opaque int double* double* GDALProgressFunc opaque/] => 'int');
680 0 $ffi->attach('GDALOverviewMagnitudeCorrection' => [qw/opaque int uint64* GDALProgressFunc opaque/] => 'int');
681 0 $ffi->attach('GDALGetDefaultRAT' => [qw/opaque/] => 'opaque');
682 0 $ffi->attach('GDALSetDefaultRAT' => [qw/opaque opaque/] => 'int');
683 0 $ffi->attach('GDALAddDerivedBandPixelFunc' => [qw/string GDALDerivedPixelFunc/] => 'int');
684 0 $ffi->attach('GDALAddDerivedBandPixelFuncWithArgs' => [qw/string GDALDerivedPixelFunc string/] => 'int');
685 0 $ffi->attach('GDALGetMaskBand' => [qw/opaque/] => 'opaque');
686 0 $ffi->attach('GDALGetMaskFlags' => [qw/opaque/] => 'int');
687 0 $ffi->attach('GDALCreateMaskBand' => [qw/opaque int/] => 'int');
688 0 $ffi->attach('GDALIsMaskBand' => [qw/opaque/] => 'bool');
689 0 $ffi->attach('GDALGetDataCoverageStatus' => [qw/opaque int int int int int double*/] => 'int');
690 0 $ffi->attach('GDALARGetNextUpdatedRegion' => [qw/opaque double int* int* int* int*/] => 'unsigned int');
691 0 $ffi->attach('GDALARLockBuffer' => [qw/opaque double/] => 'int');
692 0 $ffi->attach('GDALARUnlockBuffer' => [qw/opaque/] => 'void');
693 0 $ffi->attach('GDALGeneralCmdLineProcessor' => [qw/int string* int/] => 'int');
694 0 $ffi->attach('GDALSwapWords' => [qw/opaque int int int/] => 'void');
695 0 $ffi->attach('GDALSwapWordsEx' => [qw/opaque int size_t int/] => 'void');
696 0 $ffi->attach('GDALCopyWords' => ['opaque','unsigned int','int','opaque','unsigned int','int','int'] => 'void');
697 0 $ffi->attach('GDALCopyWords64' => ['opaque','unsigned int','int','opaque','unsigned int','int','int'] => 'void');
698 0 $ffi->attach('GDALCopyBits' => [qw/pointer int int pointer int int int int/] => 'void');
699 0 $ffi->attach('GDALDeinterleave' => ['opaque','unsigned int','int','opaque','unsigned int','size_t'] => 'void');
700 0 $ffi->attach('GDALLoadWorldFile' => [qw/string double*/] => 'int');
701 0 $ffi->attach('GDALReadWorldFile' => [qw/string string double*/] => 'int');
702 0 $ffi->attach('GDALWriteWorldFile' => [qw/string string double*/] => 'int');
703 0 $ffi->attach('GDALLoadTabFile' => [qw/string double* string* int* opaque/] => 'int');
704 0 $ffi->attach('GDALReadTabFile' => [qw/string double* string* int* opaque/] => 'int');
705 0 $ffi->attach('GDALLoadOziMapFile' => [qw/string double* string* int* opaque/] => 'int');
706 0 $ffi->attach('GDALReadOziMapFile' => [qw/string double* string* int* opaque/] => 'int');
707 0 $ffi->attach('GDALDecToDMS' => [qw/double string int/] => 'string');
708 0 $ffi->attach('GDALPackedDMSToDec' => [qw/double/] => 'double');
709 0 $ffi->attach('GDALDecToPackedDMS' => [qw/double/] => 'double');
710 0 $ffi->attach('GDALVersionInfo' => [qw/string/] => 'string');
711 0 $ffi->attach('GDALCheckVersion' => [qw/int int string/] => 'int');
712 0 $ffi->attach('GDALExtractRPCInfoV1' => [qw/opaque opaque/] => 'int');
713 0 $ffi->attach('GDALExtractRPCInfoV2' => [qw/opaque opaque/] => 'int');
714 0 $ffi->attach('GDALCreateColorTable' => ['unsigned int'] => 'opaque');
715 0 $ffi->attach('GDALDestroyColorTable' => [qw/opaque/] => 'void');
716 0 $ffi->attach('GDALCloneColorTable' => [qw/opaque/] => 'opaque');
717 0 $ffi->attach('GDALGetPaletteInterpretation' => [qw/opaque/] => 'unsigned int');
718 0 $ffi->attach('GDALGetColorEntryCount' => [qw/opaque/] => 'int');
719 0 $ffi->attach('GDALGetColorEntry' => [qw/opaque int/] => 'short[4]');
720 0 $ffi->attach('GDALGetColorEntryAsRGB' => [qw/opaque int short[4]/] => 'int');
721 0 $ffi->attach('GDALSetColorEntry' => [qw/opaque int short[4]/] => 'void');
722 0 $ffi->attach('GDALCreateColorRamp' => [qw/opaque int short[4] int short[4]/] => 'void');
723 0 $ffi->attach('GDALCreateRasterAttributeTable' => [] => 'opaque');
724 0 $ffi->attach('GDALDestroyRasterAttributeTable' => [qw/opaque/] => 'void');
725 0 $ffi->attach('GDALRATGetColumnCount' => [qw/opaque/] => 'int');
726 0 $ffi->attach('GDALRATGetNameOfCol' => [qw/opaque int/] => 'string');
727 0 $ffi->attach('GDALRATGetUsageOfCol' => [qw/opaque int/] => 'unsigned int');
728 0 $ffi->attach('GDALRATGetTypeOfCol' => [qw/opaque int/] => 'unsigned int');
729 0 $ffi->attach('GDALRATGetColOfUsage' => ['opaque','unsigned int'] => 'int');
730 0 $ffi->attach('GDALRATGetRowCount' => [qw/opaque/] => 'int');
731 0 $ffi->attach('GDALRATGetValueAsString' => [qw/opaque int int/] => 'string');
732 0 $ffi->attach('GDALRATGetValueAsInt' => [qw/opaque int int/] => 'int');
733 0 $ffi->attach('GDALRATGetValueAsDouble' => [qw/opaque int int/] => 'double');
734 0 $ffi->attach('GDALRATSetValueAsString' => [qw/opaque int int string/] => 'void');
735 0 $ffi->attach('GDALRATSetValueAsInt' => [qw/opaque int int int/] => 'void');
736 0 $ffi->attach('GDALRATSetValueAsDouble' => [qw/opaque int int double/] => 'void');
737 0 $ffi->attach('GDALRATChangesAreWrittenToFile' => [qw/opaque/] => 'int');
738 0 $ffi->attach('GDALRATValuesIOAsDouble' => ['opaque','unsigned int','int','int','int','double*'] => 'int');
739 0 $ffi->attach('GDALRATValuesIOAsInteger' => ['opaque','unsigned int','int','int','int','int*'] => 'int');
740 0 $ffi->attach('GDALRATValuesIOAsString' => ['opaque','unsigned int','int','int','int','opaque'] => 'int');
741 0 $ffi->attach('GDALRATSetRowCount' => [qw/opaque int/] => 'void');
742 0 $ffi->attach('GDALRATCreateColumn' => ['opaque','string','unsigned int','unsigned int'] => 'int');
743 0 $ffi->attach('GDALRATSetLinearBinning' => [qw/opaque double double/] => 'int');
744 0 $ffi->attach('GDALRATGetLinearBinning' => [qw/opaque double* double*/] => 'int');
745 0 $ffi->attach('GDALRATSetTableType' => ['opaque','unsigned int'] => 'int');
746 0 $ffi->attach('GDALRATGetTableType' => [qw/opaque/] => 'unsigned int');
747 0 $ffi->attach('GDALRATInitializeFromColorTable' => [qw/opaque opaque/] => 'int');
748 0 $ffi->attach('GDALRATTranslateToColorTable' => [qw/opaque int/] => 'opaque');
749 0 $ffi->attach('GDALRATDumpReadable' => [qw/opaque opaque/] => 'void');
750 0 $ffi->attach('GDALRATClone' => [qw/opaque/] => 'opaque');
751 0 $ffi->attach('GDALRATSerializeJSON' => [qw/opaque/] => 'opaque');
752 0 $ffi->attach('GDALRATGetRowOfValue' => [qw/opaque double/] => 'int');
753 0 $ffi->attach('GDALRATRemoveStatistics' => [qw/opaque/] => 'void');
754 0 $ffi->attach('GDALRelationshipCreate' => ['string','string','string','unsigned int'] => 'opaque');
755 0 $ffi->attach('GDALDestroyRelationship' => [qw/opaque/] => 'void');
756 0 $ffi->attach('GDALRelationshipGetName' => [qw/opaque/] => 'string');
757 0 $ffi->attach('GDALRelationshipGetCardinality' => [qw/opaque/] => 'unsigned int');
758 0 $ffi->attach('GDALRelationshipGetLeftTableName' => [qw/opaque/] => 'string');
759 0 $ffi->attach('GDALRelationshipGetRightTableName' => [qw/opaque/] => 'string');
760 0 $ffi->attach('GDALRelationshipGetMappingTableName' => [qw/opaque/] => 'string');
761 0 $ffi->attach('GDALRelationshipSetMappingTableName' => [qw/opaque string/] => 'void');
762 0 $ffi->attach('GDALRelationshipGetLeftTableFields' => [qw/opaque/] => 'opaque');
763 0 $ffi->attach('GDALRelationshipGetRightTableFields' => [qw/opaque/] => 'opaque');
764 0 $ffi->attach('GDALRelationshipSetLeftTableFields' => [qw/opaque opaque/] => 'void');
765 0 $ffi->attach('GDALRelationshipSetRightTableFields' => [qw/opaque opaque/] => 'void');
766 0 $ffi->attach('GDALRelationshipGetLeftMappingTableFields' => [qw/opaque/] => 'opaque');
767 0 $ffi->attach('GDALRelationshipGetRightMappingTableFields' => [qw/opaque/] => 'opaque');
768 0 $ffi->attach('GDALRelationshipSetLeftMappingTableFields' => [qw/opaque opaque/] => 'void');
769 0 $ffi->attach('GDALRelationshipSetRightMappingTableFields' => [qw/opaque opaque/] => 'void');
770 0 $ffi->attach('GDALRelationshipGetType' => [qw/opaque/] => 'unsigned int');
771 0 $ffi->attach('GDALRelationshipSetType' => ['opaque','unsigned int'] => 'void');
772 0 $ffi->attach('GDALRelationshipGetForwardPathLabel' => [qw/opaque/] => 'string');
773 0 $ffi->attach('GDALRelationshipSetForwardPathLabel' => [qw/opaque string/] => 'void');
774 0 $ffi->attach('GDALRelationshipGetBackwardPathLabel' => [qw/opaque/] => 'string');
775 0 $ffi->attach('GDALRelationshipSetBackwardPathLabel' => [qw/opaque string/] => 'void');
776 0 $ffi->attach('GDALRelationshipGetRelatedTableType' => [qw/opaque/] => 'string');
777 0 $ffi->attach('GDALRelationshipSetRelatedTableType' => [qw/opaque string/] => 'void');
778 0 $ffi->attach('GDALSetCacheMax' => [qw/int/] => 'void');
779 0 $ffi->attach('GDALGetCacheMax' => [] => 'int');
780 0 $ffi->attach('GDALGetCacheUsed' => [] => 'int');
781 0 $ffi->attach('GDALSetCacheMax64' => [qw/sint64/] => 'void');
782 0 $ffi->attach('GDALGetCacheMax64' => [] => 'sint64');
783 0 $ffi->attach('GDALGetCacheUsed64' => [] => 'sint64');
784 0 $ffi->attach('GDALFlushCacheBlock' => [] => 'int');
785 0 $ffi->attach('GDALDatasetGetVirtualMem' => ['opaque','unsigned int','int','int','int','int','int','int','unsigned int','int','int*','int','sint64','sint64','size_t','size_t','int','opaque'] => 'opaque');
786 0 $ffi->attach('GDALRasterBandGetVirtualMem' => ['opaque','unsigned int','int','int','int','int','int','int','unsigned int','int','sint64','size_t','size_t','int','opaque'] => 'opaque');
787 0 $ffi->attach('GDALGetVirtualMemAuto' => ['opaque','unsigned int','int*','sint64*','opaque'] => 'opaque');
788 0 $ffi->attach('GDALDatasetGetTiledVirtualMem' => ['opaque','unsigned int','int','int','int','int','int','int','unsigned int','int','int*','unsigned int','size_t','int','opaque'] => 'opaque');
789 0 $ffi->attach('GDALRasterBandGetTiledVirtualMem' => ['opaque','unsigned int','int','int','int','int','int','int','unsigned int','size_t','int','opaque'] => 'opaque');
790 0 $ffi->attach('GDALCreatePansharpenedVRT' => [qw/string opaque int uint64*/] => 'opaque');
791 0 $ffi->attach('GDALGetJPEG2000Structure' => [qw/string opaque/] => 'opaque');
792 0 $ffi->attach('GDALCreateMultiDimensional' => [qw/opaque string opaque opaque/] => 'opaque');
793 0 $ffi->attach('GDALExtendedDataTypeCreate' => ['unsigned int'] => 'opaque');
794 0 $ffi->attach('GDALExtendedDataTypeCreateString' => [qw/size_t/] => 'opaque');
795 0 $ffi->attach('GDALExtendedDataTypeCreateStringEx' => [qw/size_t int/] => 'opaque');
796 0 $ffi->attach('GDALExtendedDataTypeCreateCompound' => [qw/string size_t size_t opaque/] => 'opaque');
797 0 $ffi->attach('GDALExtendedDataTypeRelease' => [qw/opaque/] => 'void');
798 0 $ffi->attach('GDALExtendedDataTypeGetName' => [qw/opaque/] => 'string');
799 0 $ffi->attach('GDALExtendedDataTypeGetClass' => [qw/opaque/] => 'int');
800 0 $ffi->attach('GDALExtendedDataTypeGetNumericDataType' => [qw/opaque/] => 'unsigned int');
801 0 $ffi->attach('GDALExtendedDataTypeGetSize' => [qw/opaque/] => 'size_t');
802 0 $ffi->attach('GDALExtendedDataTypeGetMaxStringLength' => [qw/opaque/] => 'size_t');
803 0 $ffi->attach('GDALExtendedDataTypeGetComponents' => [qw/opaque size_t/] => 'uint64*');
804 0 $ffi->attach('GDALExtendedDataTypeFreeComponents' => [qw/uint64* size_t/] => 'void');
805 0 $ffi->attach('GDALExtendedDataTypeCanConvertTo' => [qw/opaque opaque/] => 'int');
806 0 $ffi->attach('GDALExtendedDataTypeEquals' => [qw/opaque opaque/] => 'int');
807 0 $ffi->attach('GDALExtendedDataTypeGetSubType' => [qw/opaque/] => 'int');
808 0 $ffi->attach('GDALEDTComponentCreate' => [qw/string size_t opaque/] => 'opaque');
809 0 $ffi->attach('GDALEDTComponentRelease' => [qw/opaque/] => 'void');
810 0 $ffi->attach('GDALEDTComponentGetName' => [qw/opaque/] => 'string');
811 0 $ffi->attach('GDALEDTComponentGetOffset' => [qw/opaque/] => 'size_t');
812 0 $ffi->attach('GDALEDTComponentGetType' => [qw/opaque/] => 'opaque');
813 0 $ffi->attach('GDALDatasetGetRootGroup' => [qw/opaque/] => 'opaque');
814 0 $ffi->attach('GDALGroupRelease' => [qw/opaque/] => 'void');
815 0 $ffi->attach('GDALGroupGetName' => [qw/opaque/] => 'string');
816 0 $ffi->attach('GDALGroupGetFullName' => [qw/opaque/] => 'string');
817 0 $ffi->attach('GDALGroupGetMDArrayNames' => [qw/opaque opaque/] => 'opaque');
818 0 $ffi->attach('GDALGroupOpenMDArray' => [qw/opaque string opaque/] => 'opaque');
819 0 $ffi->attach('GDALGroupOpenMDArrayFromFullname' => [qw/opaque string opaque/] => 'opaque');
820 0 $ffi->attach('GDALGroupResolveMDArray' => [qw/opaque string string opaque/] => 'opaque');
821 0 $ffi->attach('GDALGroupGetGroupNames' => [qw/opaque opaque/] => 'opaque');
822 0 $ffi->attach('GDALGroupOpenGroup' => [qw/opaque string opaque/] => 'opaque');
823 0 $ffi->attach('GDALGroupOpenGroupFromFullname' => [qw/opaque string opaque/] => 'opaque');
824 0 $ffi->attach('GDALGroupGetVectorLayerNames' => [qw/opaque opaque/] => 'opaque');
825 0 $ffi->attach('GDALGroupOpenVectorLayer' => [qw/opaque string opaque/] => 'opaque');
826 0 $ffi->attach('GDALGroupGetDimensions' => [qw/opaque size_t opaque/] => 'uint64*');
827 0 $ffi->attach('GDALGroupGetAttribute' => [qw/opaque string/] => 'opaque');
828 0 $ffi->attach('GDALGroupGetAttributes' => [qw/opaque size_t opaque/] => 'uint64*');
829 0 $ffi->attach('GDALGroupGetStructuralInfo' => [qw/opaque/] => 'opaque');
830 0 $ffi->attach('GDALGroupCreateGroup' => [qw/opaque string opaque/] => 'opaque');
831 0 $ffi->attach('GDALGroupCreateDimension' => [qw/opaque string string string uint64 opaque/] => 'opaque');
832 0 $ffi->attach('GDALGroupCreateMDArray' => [qw/opaque string size_t uint64* opaque opaque/] => 'opaque');
833 0 $ffi->attach('GDALGroupCreateAttribute' => [qw/opaque string size_t uint64* opaque opaque/] => 'opaque');
834 0 $ffi->attach('GDALMDArrayRelease' => [qw/opaque/] => 'void');
835 0 $ffi->attach('GDALMDArrayGetName' => [qw/opaque/] => 'string');
836 0 $ffi->attach('GDALMDArrayGetFullName' => [qw/opaque/] => 'string');
837 0 $ffi->attach('GDALMDArrayGetTotalElementsCount' => [qw/opaque/] => 'uint64');
838 0 $ffi->attach('GDALMDArrayGetDimensionCount' => [qw/opaque/] => 'size_t');
839 0 $ffi->attach('GDALMDArrayGetDimensions' => [qw/opaque size_t/] => 'uint64*');
840 0 $ffi->attach('GDALMDArrayGetDataType' => [qw/opaque/] => 'opaque');
841 0 $ffi->attach('GDALMDArrayRead' => [qw/opaque uint64* size_t sint64 int* opaque opaque opaque size_t/] => 'int');
842 0 $ffi->attach('GDALMDArrayWrite' => [qw/opaque uint64* size_t sint64 int* opaque opaque opaque size_t/] => 'int');
843 0 $ffi->attach('GDALMDArrayAdviseRead' => [qw/opaque uint64* size_t/] => 'int');
844 0 $ffi->attach('GDALMDArrayAdviseReadEx' => [qw/opaque uint64* size_t opaque/] => 'int');
845 0 $ffi->attach('GDALMDArrayGetAttribute' => [qw/opaque string/] => 'opaque');
846 0 $ffi->attach('GDALMDArrayGetAttributes' => [qw/opaque size_t opaque/] => 'uint64*');
847 0 $ffi->attach('GDALMDArrayCreateAttribute' => [qw/opaque string size_t uint64* opaque opaque/] => 'opaque');
848 0 $ffi->attach('GDALMDArrayResize' => [qw/opaque uint64* opaque/] => 'bool');
849 0 $ffi->attach('GDALMDArrayGetRawNoDataValue' => [qw/opaque/] => 'opaque');
850 0 $ffi->attach('GDALMDArrayGetNoDataValueAsDouble' => [qw/opaque int*/] => 'double');
851 0 $ffi->attach('GDALMDArrayGetNoDataValueAsInt64' => [qw/opaque int*/] => 'int');
852 0 $ffi->attach('GDALMDArrayGetNoDataValueAsUInt64' => [qw/opaque int*/] => 'uint64');
853 0 $ffi->attach('GDALMDArraySetRawNoDataValue' => [qw/opaque opaque/] => 'int');
854 0 $ffi->attach('GDALMDArraySetNoDataValueAsDouble' => [qw/opaque double/] => 'int');
855 0 $ffi->attach('GDALMDArraySetNoDataValueAsInt64' => [qw/opaque int/] => 'int');
856 0 $ffi->attach('GDALMDArraySetNoDataValueAsUInt64' => [qw/opaque uint64/] => 'int');
857 0 $ffi->attach('GDALMDArraySetScale' => [qw/opaque double/] => 'int');
858 0 $ffi->attach('GDALMDArraySetScaleEx' => ['opaque','double','unsigned int'] => 'int');
859 0 $ffi->attach('GDALMDArrayGetScale' => [qw/opaque int*/] => 'double');
860 0 $ffi->attach('GDALMDArrayGetScaleEx' => ['opaque','int*','unsigned int'] => 'double');
861 0 $ffi->attach('GDALMDArraySetOffset' => [qw/opaque double/] => 'int');
862 0 $ffi->attach('GDALMDArraySetOffsetEx' => ['opaque','double','unsigned int'] => 'int');
863 0 $ffi->attach('GDALMDArrayGetOffset' => [qw/opaque int*/] => 'double');
864 0 $ffi->attach('GDALMDArrayGetOffsetEx' => ['opaque','int*','unsigned int'] => 'double');
865 0 $ffi->attach('GDALMDArrayGetBlockSize' => [qw/opaque size_t/] => 'uint64');
866 0 $ffi->attach('GDALMDArraySetUnit' => [qw/opaque string/] => 'int');
867 0 $ffi->attach('GDALMDArrayGetUnit' => [qw/opaque/] => 'string');
868 0 $ffi->attach('GDALMDArraySetSpatialRef' => [qw/opaque opaque/] => 'int');
869 0 $ffi->attach('GDALMDArrayGetSpatialRef' => [qw/opaque/] => 'opaque');
870 0 $ffi->attach('GDALMDArrayGetProcessingChunkSize' => [qw/opaque size_t size_t/] => 'size_t');
871 0 $ffi->attach('GDALMDArrayGetStructuralInfo' => [qw/opaque/] => 'opaque');
872 0 $ffi->attach('GDALMDArrayGetView' => [qw/opaque string/] => 'opaque');
873 0 $ffi->attach('GDALMDArrayTranspose' => [qw/opaque size_t int*/] => 'opaque');
874 0 $ffi->attach('GDALMDArrayGetUnscaled' => [qw/opaque/] => 'opaque');
875 0 $ffi->attach('GDALMDArrayGetMask' => [qw/opaque opaque/] => 'opaque');
876 0 $ffi->attach('GDALMDArrayAsClassicDataset' => [qw/opaque size_t size_t/] => 'opaque');
877 0 $ffi->attach('GDALMDArrayGetStatistics' => [qw/opaque opaque int int double* double* double* double* uint64 GDALProgressFunc opaque/] => 'int');
878 0 $ffi->attach('GDALMDArrayComputeStatistics' => [qw/opaque opaque int double* double* double* double* uint64 GDALProgressFunc opaque/] => 'int');
879 0 $ffi->attach('GDALMDArrayGetResampled' => [qw/opaque size_t opaque int opaque opaque/] => 'opaque');
880 0 $ffi->attach('GDALMDArrayGetGridded' => [qw/opaque string opaque opaque opaque/] => 'opaque');
881 0 $ffi->attach('GDALMDArrayGetCoordinateVariables' => [qw/opaque size_t/] => 'uint64*');
882 0 $ffi->attach('GDALReleaseArrays' => [qw/uint64* size_t/] => 'void');
883 0 $ffi->attach('GDALMDArrayCache' => [qw/opaque opaque/] => 'int');
884 0 $ffi->attach('GDALAttributeRelease' => [qw/opaque/] => 'void');
885 0 $ffi->attach('GDALReleaseAttributes' => [qw/uint64* size_t/] => 'void');
886 0 $ffi->attach('GDALAttributeGetName' => [qw/opaque/] => 'string');
887 0 $ffi->attach('GDALAttributeGetFullName' => [qw/opaque/] => 'string');
888 0 $ffi->attach('GDALAttributeGetTotalElementsCount' => [qw/opaque/] => 'uint64');
889 0 $ffi->attach('GDALAttributeGetDimensionCount' => [qw/opaque/] => 'size_t');
890 0 $ffi->attach('GDALAttributeGetDimensionsSize' => [qw/opaque size_t/] => 'uint64');
891 0 $ffi->attach('GDALAttributeGetDataType' => [qw/opaque/] => 'opaque');
892 0 $ffi->attach('GDALAttributeReadAsRaw' => [qw/opaque size_t/] => 'pointer');
893 0 $ffi->attach('GDALAttributeFreeRawResult' => [qw/opaque pointer size_t/] => 'void');
894 0 $ffi->attach('GDALAttributeReadAsString' => [qw/opaque/] => 'string');
895 0 $ffi->attach('GDALAttributeReadAsInt' => [qw/opaque/] => 'int');
896 0 $ffi->attach('GDALAttributeReadAsDouble' => [qw/opaque/] => 'double');
897 0 $ffi->attach('GDALAttributeReadAsStringArray' => [qw/opaque/] => 'opaque');
898 0 $ffi->attach('GDALAttributeReadAsIntArray' => [qw/opaque size_t/] => 'int*');
899 0 $ffi->attach('GDALAttributeReadAsDoubleArray' => [qw/opaque size_t/] => 'double*');
900 0 $ffi->attach('GDALAttributeWriteRaw' => [qw/opaque opaque size_t/] => 'int');
901 0 $ffi->attach('GDALAttributeWriteString' => [qw/opaque string/] => 'int');
902 0 $ffi->attach('GDALAttributeWriteStringArray' => [qw/opaque opaque/] => 'int');
903 0 $ffi->attach('GDALAttributeWriteInt' => [qw/opaque int/] => 'int');
904 0 $ffi->attach('GDALAttributeWriteDouble' => [qw/opaque double/] => 'int');
905 0 $ffi->attach('GDALAttributeWriteDoubleArray' => [qw/opaque double* size_t/] => 'int');
906 0 $ffi->attach('GDALDimensionRelease' => [qw/opaque/] => 'void');
907 0 $ffi->attach('GDALReleaseDimensions' => [qw/uint64* size_t/] => 'void');
908 0 $ffi->attach('GDALDimensionGetName' => [qw/opaque/] => 'string');
909 0 $ffi->attach('GDALDimensionGetFullName' => [qw/opaque/] => 'string');
910 0 $ffi->attach('GDALDimensionGetType' => [qw/opaque/] => 'string');
911 0 $ffi->attach('GDALDimensionGetDirection' => [qw/opaque/] => 'string');
912 0 $ffi->attach('GDALDimensionGetSize' => [qw/opaque/] => 'uint64');
913 0 $ffi->attach('GDALDimensionGetIndexingVariable' => [qw/opaque/] => 'opaque');
914 0 $ffi->attach('GDALDimensionSetIndexingVariable' => [qw/opaque opaque/] => 'int');
915 # from ogr/ogr_api.h
916 0 $ffi->attach('OGRGetGEOSVersion' => [qw/int* int* int*/] => 'bool');
917 0 $ffi->attach('OGR_G_CreateFromWkb' => [qw/string opaque uint64* int/] => 'int');
918 0 $ffi->attach('OGR_G_CreateFromWkbEx' => [qw/opaque opaque uint64* size_t/] => 'int');
919 0 $ffi->attach('OGR_G_CreateFromWkt' => [qw/string* opaque uint64*/] => 'int');
920 0 $ffi->attach('OGR_G_CreateFromFgf' => [qw/string opaque uint64* int int*/] => 'int');
921 0 $ffi->attach('OGR_G_DestroyGeometry' => [qw/opaque/] => 'void');
922 0 $ffi->attach('OGR_G_CreateGeometry' => ['unsigned int'] => 'opaque');
923 0 $ffi->attach('OGR_G_ApproximateArcAngles' => [qw/double double double double double double double double double/] => 'opaque');
924 0 $ffi->attach('OGR_G_ForceToPolygon' => [qw/opaque/] => 'opaque');
925 0 $ffi->attach('OGR_G_ForceToLineString' => [qw/opaque/] => 'opaque');
926 0 $ffi->attach('OGR_G_ForceToMultiPolygon' => [qw/opaque/] => 'opaque');
927 0 $ffi->attach('OGR_G_ForceToMultiPoint' => [qw/opaque/] => 'opaque');
928 0 $ffi->attach('OGR_G_ForceToMultiLineString' => [qw/opaque/] => 'opaque');
929 0 $ffi->attach('OGR_G_ForceTo' => ['opaque','unsigned int','opaque'] => 'opaque');
930 0 $ffi->attach('OGR_G_RemoveLowerDimensionSubGeoms' => [qw/opaque/] => 'opaque');
931 0 $ffi->attach('OGR_G_GetDimension' => [qw/opaque/] => 'int');
932 0 $ffi->attach('OGR_G_GetCoordinateDimension' => [qw/opaque/] => 'int');
933 0 $ffi->attach('OGR_G_CoordinateDimension' => [qw/opaque/] => 'int');
934 0 $ffi->attach('OGR_G_SetCoordinateDimension' => [qw/opaque int/] => 'void');
935 0 $ffi->attach('OGR_G_Is3D' => [qw/opaque/] => 'int');
936 0 $ffi->attach('OGR_G_IsMeasured' => [qw/opaque/] => 'int');
937 0 $ffi->attach('OGR_G_Set3D' => [qw/opaque int/] => 'void');
938 0 $ffi->attach('OGR_G_SetMeasured' => [qw/opaque int/] => 'void');
939 0 $ffi->attach('OGR_G_Clone' => [qw/opaque/] => 'opaque');
940 0 $ffi->attach('OGR_G_GetEnvelope' => [qw/opaque double[4]/] => 'void');
941 0 $ffi->attach('OGR_G_GetEnvelope3D' => [qw/opaque double[6]/] => 'void');
942 0 $ffi->attach('OGR_G_ImportFromWkb' => [qw/opaque string int/] => 'int');
943 0 $ffi->attach('OGR_G_ExportToWkb' => ['opaque','unsigned int','string'] => 'int');
944 0 $ffi->attach('OGR_G_ExportToIsoWkb' => ['opaque','unsigned int','string'] => 'int');
945 0 $ffi->attach('OGR_G_WkbSize' => [qw/opaque/] => 'int');
946 0 $ffi->attach('OGR_G_WkbSizeEx' => [qw/opaque/] => 'size_t');
947 0 $ffi->attach('OGR_G_ImportFromWkt' => [qw/opaque string*/] => 'int');
948 0 $ffi->attach('OGR_G_ExportToWkt' => [qw/opaque string*/] => 'int');
949 0 $ffi->attach('OGR_G_ExportToIsoWkt' => [qw/opaque string*/] => 'int');
950 0 $ffi->attach('OGR_G_GetGeometryType' => [qw/opaque/] => 'unsigned int');
951 0 $ffi->attach('OGR_G_GetGeometryName' => [qw/opaque/] => 'string');
952 0 $ffi->attach('OGR_G_DumpReadable' => [qw/opaque opaque string/] => 'void');
953 0 $ffi->attach('OGR_G_FlattenTo2D' => [qw/opaque/] => 'void');
954 0 $ffi->attach('OGR_G_CloseRings' => [qw/opaque/] => 'void');
955 0 $ffi->attach('OGR_G_CreateFromGML' => [qw/string/] => 'opaque');
956 0 $ffi->attach('OGR_G_ExportToGML' => [qw/opaque/] => 'opaque');
957 0 $ffi->attach('OGR_G_ExportToGMLEx' => [qw/opaque opaque/] => 'opaque');
958 0 $ffi->attach('OGR_G_CreateFromGMLTree' => [qw/opaque/] => 'opaque');
959 0 $ffi->attach('OGR_G_ExportToGMLTree' => [qw/opaque/] => 'opaque');
960 0 $ffi->attach('OGR_G_ExportEnvelopeToGMLTree' => [qw/opaque/] => 'opaque');
961 0 $ffi->attach('OGR_G_ExportToKML' => [qw/opaque string/] => 'opaque');
962 0 $ffi->attach('OGR_G_ExportToJson' => [qw/opaque/] => 'opaque');
963 0 $ffi->attach('OGR_G_ExportToJsonEx' => [qw/opaque opaque/] => 'opaque');
964 0 $ffi->attach('OGR_G_CreateGeometryFromJson' => [qw/string/] => 'opaque');
965 0 $ffi->attach('OGR_G_CreateGeometryFromEsriJson' => [qw/string/] => 'opaque');
966 0 $ffi->attach('OGR_G_AssignSpatialReference' => [qw/opaque opaque/] => 'void');
967 0 $ffi->attach('OGR_G_GetSpatialReference' => [qw/opaque/] => 'opaque');
968 0 $ffi->attach('OGR_G_Transform' => [qw/opaque opaque/] => 'int');
969 0 $ffi->attach('OGR_G_TransformTo' => [qw/opaque opaque/] => 'int');
970 0 $ffi->attach('OGR_GeomTransformer_Create' => [qw/opaque opaque/] => 'opaque');
971 0 $ffi->attach('OGR_GeomTransformer_Transform' => [qw/opaque opaque/] => 'opaque');
972 0 $ffi->attach('OGR_GeomTransformer_Destroy' => [qw/opaque/] => 'void');
973 0 $ffi->attach('OGR_G_Simplify' => [qw/opaque double/] => 'opaque');
974 0 $ffi->attach('OGR_G_SimplifyPreserveTopology' => [qw/opaque double/] => 'opaque');
975 0 $ffi->attach('OGR_G_DelaunayTriangulation' => [qw/opaque double int/] => 'opaque');
976 0 $ffi->attach('OGR_G_Segmentize' => [qw/opaque double/] => 'bool');
977 0 $ffi->attach('OGR_G_Intersects' => [qw/opaque opaque/] => 'int');
978 0 $ffi->attach('OGR_G_Equals' => [qw/opaque opaque/] => 'int');
979 0 $ffi->attach('OGR_G_Disjoint' => [qw/opaque opaque/] => 'int');
980 0 $ffi->attach('OGR_G_Touches' => [qw/opaque opaque/] => 'int');
981 0 $ffi->attach('OGR_G_Crosses' => [qw/opaque opaque/] => 'int');
982 0 $ffi->attach('OGR_G_Within' => [qw/opaque opaque/] => 'int');
983 0 $ffi->attach('OGR_G_Contains' => [qw/opaque opaque/] => 'int');
984 0 $ffi->attach('OGR_G_Overlaps' => [qw/opaque opaque/] => 'int');
985 0 $ffi->attach('OGR_G_Boundary' => [qw/opaque/] => 'opaque');
986 0 $ffi->attach('OGR_G_ConvexHull' => [qw/opaque/] => 'opaque');
987 0 $ffi->attach('OGR_G_ConcaveHull' => [qw/opaque double bool/] => 'opaque');
988 0 $ffi->attach('OGR_G_Buffer' => [qw/opaque double int/] => 'opaque');
989 0 $ffi->attach('OGR_G_Intersection' => [qw/opaque opaque/] => 'opaque');
990 0 $ffi->attach('OGR_G_Union' => [qw/opaque opaque/] => 'opaque');
991 0 $ffi->attach('OGR_G_UnionCascaded' => [qw/opaque/] => 'opaque');
992 0 $ffi->attach('OGR_G_UnaryUnion' => [qw/opaque/] => 'opaque');
993 0 $ffi->attach('OGR_G_PointOnSurface' => [qw/opaque/] => 'opaque');
994 0 $ffi->attach('OGR_G_Difference' => [qw/opaque opaque/] => 'opaque');
995 0 $ffi->attach('OGR_G_SymDifference' => [qw/opaque opaque/] => 'opaque');
996 0 $ffi->attach('OGR_G_Distance' => [qw/opaque opaque/] => 'double');
997 0 $ffi->attach('OGR_G_Distance3D' => [qw/opaque opaque/] => 'double');
998 0 $ffi->attach('OGR_G_Length' => [qw/opaque/] => 'double');
999 0 $ffi->attach('OGR_G_Area' => [qw/opaque/] => 'double');
1000 0 $ffi->attach('OGR_G_Centroid' => [qw/opaque opaque/] => 'int');
1001 0 $ffi->attach('OGR_G_Value' => [qw/opaque double/] => 'opaque');
1002 0 $ffi->attach('OGR_G_Empty' => [qw/opaque/] => 'void');
1003 0 $ffi->attach('OGR_G_IsEmpty' => [qw/opaque/] => 'int');
1004 0 $ffi->attach('OGR_G_IsValid' => [qw/opaque/] => 'int');
1005 0 $ffi->attach('OGR_G_MakeValid' => [qw/opaque/] => 'opaque');
1006 0 $ffi->attach('OGR_G_MakeValidEx' => [qw/opaque opaque/] => 'opaque');
1007 0 $ffi->attach('OGR_G_Normalize' => [qw/opaque/] => 'opaque');
1008 0 $ffi->attach('OGR_G_IsSimple' => [qw/opaque/] => 'int');
1009 0 $ffi->attach('OGR_G_IsRing' => [qw/opaque/] => 'int');
1010 0 $ffi->attach('OGR_G_Polygonize' => [qw/opaque/] => 'opaque');
1011 0 $ffi->attach('OGR_G_Intersect' => [qw/opaque opaque/] => 'int');
1012 0 $ffi->attach('OGR_G_Equal' => [qw/opaque opaque/] => 'int');
1013 0 $ffi->attach('OGR_G_SymmetricDifference' => [qw/opaque opaque/] => 'opaque');
1014 0 $ffi->attach('OGR_G_GetArea' => [qw/opaque/] => 'double');
1015 0 $ffi->attach('OGR_G_GetBoundary' => [qw/opaque/] => 'opaque');
1016 0 $ffi->attach('OGR_G_GetPointCount' => [qw/opaque/] => 'int');
1017 0 $ffi->attach('OGR_G_GetPoints' => [qw/opaque opaque int opaque int opaque int/] => 'int');
1018 0 $ffi->attach('OGR_G_GetPointsZM' => [qw/opaque opaque int opaque int opaque int opaque int/] => 'int');
1019 0 $ffi->attach('OGR_G_GetX' => [qw/opaque int/] => 'double');
1020 0 $ffi->attach('OGR_G_GetY' => [qw/opaque int/] => 'double');
1021 0 $ffi->attach('OGR_G_GetZ' => [qw/opaque int/] => 'double');
1022 0 $ffi->attach('OGR_G_GetM' => [qw/opaque int/] => 'double');
1023 0 $ffi->attach('OGR_G_GetPoint' => [qw/opaque int double* double* double*/] => 'void');
1024 0 $ffi->attach('OGR_G_GetPointZM' => [qw/opaque int double* double* double* double*/] => 'void');
1025 0 $ffi->attach('OGR_G_SetPointCount' => [qw/opaque int/] => 'void');
1026 0 $ffi->attach('OGR_G_SetPoint' => [qw/opaque int double double double/] => 'void');
1027 0 $ffi->attach('OGR_G_SetPoint_2D' => [qw/opaque int double double/] => 'void');
1028 0 $ffi->attach('OGR_G_SetPointM' => [qw/opaque int double double double/] => 'void');
1029 0 $ffi->attach('OGR_G_SetPointZM' => [qw/opaque int double double double double/] => 'void');
1030 0 $ffi->attach('OGR_G_AddPoint' => [qw/opaque double double double/] => 'void');
1031 0 $ffi->attach('OGR_G_AddPoint_2D' => [qw/opaque double double/] => 'void');
1032 0 $ffi->attach('OGR_G_AddPointM' => [qw/opaque double double double/] => 'void');
1033 0 $ffi->attach('OGR_G_AddPointZM' => [qw/opaque double double double double/] => 'void');
1034 0 $ffi->attach('OGR_G_SetPoints' => [qw/opaque int opaque int opaque int opaque int/] => 'void');
1035 0 $ffi->attach('OGR_G_SetPointsZM' => [qw/opaque int opaque int opaque int opaque int opaque int/] => 'void');
1036 0 $ffi->attach('OGR_G_SwapXY' => [qw/opaque/] => 'void');
1037 0 $ffi->attach('OGR_G_GetGeometryCount' => [qw/opaque/] => 'int');
1038 0 $ffi->attach('OGR_G_GetGeometryRef' => [qw/opaque int/] => 'opaque');
1039 0 $ffi->attach('OGR_G_AddGeometry' => [qw/opaque opaque/] => 'int');
1040 0 $ffi->attach('OGR_G_AddGeometryDirectly' => [qw/opaque opaque/] => 'int');
1041 0 $ffi->attach('OGR_G_RemoveGeometry' => [qw/opaque int int/] => 'int');
1042 0 $ffi->attach('OGR_G_HasCurveGeometry' => [qw/opaque int/] => 'int');
1043 0 $ffi->attach('OGR_G_GetLinearGeometry' => [qw/opaque double opaque/] => 'opaque');
1044 0 $ffi->attach('OGR_G_GetCurveGeometry' => [qw/opaque opaque/] => 'opaque');
1045 0 $ffi->attach('OGRBuildPolygonFromEdges' => [qw/opaque int int double int*/] => 'opaque');
1046 0 $ffi->attach('OGRSetGenerate_DB2_V72_BYTE_ORDER' => [qw/int/] => 'int');
1047 0 $ffi->attach('OGRGetGenerate_DB2_V72_BYTE_ORDER' => [] => 'int');
1048 0 $ffi->attach('OGRSetNonLinearGeometriesEnabledFlag' => [qw/int/] => 'void');
1049 0 $ffi->attach('OGRGetNonLinearGeometriesEnabledFlag' => [] => 'int');
1050 0 $ffi->attach('OGRHasPreparedGeometrySupport' => [] => 'int');
1051 0 $ffi->attach('OGRCreatePreparedGeometry' => [qw/opaque/] => 'opaque');
1052 0 $ffi->attach('OGRDestroyPreparedGeometry' => [qw/opaque/] => 'void');
1053 0 $ffi->attach('OGRPreparedGeometryIntersects' => [qw/opaque opaque/] => 'int');
1054 0 $ffi->attach('OGRPreparedGeometryContains' => [qw/opaque opaque/] => 'int');
1055 0 $ffi->attach('OGR_Fld_Create' => ['string','unsigned int'] => 'opaque');
1056 0 $ffi->attach('OGR_Fld_Destroy' => [qw/opaque/] => 'void');
1057 0 $ffi->attach('OGR_Fld_SetName' => [qw/opaque string/] => 'void');
1058 0 $ffi->attach('OGR_Fld_GetNameRef' => [qw/opaque/] => 'string');
1059 0 $ffi->attach('OGR_Fld_SetAlternativeName' => [qw/opaque string/] => 'void');
1060 0 $ffi->attach('OGR_Fld_GetAlternativeNameRef' => [qw/opaque/] => 'string');
1061 0 $ffi->attach('OGR_Fld_GetType' => [qw/opaque/] => 'unsigned int');
1062 0 $ffi->attach('OGR_Fld_SetType' => ['opaque','unsigned int'] => 'void');
1063 0 $ffi->attach('OGR_Fld_GetSubType' => [qw/opaque/] => 'unsigned int');
1064 0 $ffi->attach('OGR_Fld_SetSubType' => ['opaque','unsigned int'] => 'void');
1065 0 $ffi->attach('OGR_Fld_GetJustify' => [qw/opaque/] => 'unsigned int');
1066 0 $ffi->attach('OGR_Fld_SetJustify' => ['opaque','unsigned int'] => 'void');
1067 0 $ffi->attach('OGR_Fld_GetWidth' => [qw/opaque/] => 'int');
1068 0 $ffi->attach('OGR_Fld_SetWidth' => [qw/opaque int/] => 'void');
1069 0 $ffi->attach('OGR_Fld_GetPrecision' => [qw/opaque/] => 'int');
1070 0 $ffi->attach('OGR_Fld_SetPrecision' => [qw/opaque int/] => 'void');
1071 0 $ffi->attach('OGR_Fld_Set' => ['opaque','string','unsigned int','int','int','unsigned int'] => 'void');
1072 0 $ffi->attach('OGR_Fld_IsIgnored' => [qw/opaque/] => 'int');
1073 0 $ffi->attach('OGR_Fld_SetIgnored' => [qw/opaque int/] => 'void');
1074 0 $ffi->attach('OGR_Fld_IsNullable' => [qw/opaque/] => 'int');
1075 0 $ffi->attach('OGR_Fld_SetNullable' => [qw/opaque int/] => 'void');
1076 0 $ffi->attach('OGR_Fld_IsUnique' => [qw/opaque/] => 'int');
1077 0 $ffi->attach('OGR_Fld_SetUnique' => [qw/opaque int/] => 'void');
1078 0 $ffi->attach('OGR_Fld_GetDefault' => [qw/opaque/] => 'string');
1079 0 $ffi->attach('OGR_Fld_SetDefault' => [qw/opaque string/] => 'void');
1080 0 $ffi->attach('OGR_Fld_IsDefaultDriverSpecific' => [qw/opaque/] => 'int');
1081 0 $ffi->attach('OGR_Fld_GetDomainName' => [qw/opaque/] => 'string');
1082 0 $ffi->attach('OGR_Fld_SetDomainName' => [qw/opaque string/] => 'void');
1083 0 $ffi->attach('OGR_Fld_GetComment' => [qw/opaque/] => 'string');
1084 0 $ffi->attach('OGR_Fld_SetComment' => [qw/opaque string/] => 'void');
1085 0 $ffi->attach('OGR_GetFieldTypeName' => ['unsigned int'] => 'string');
1086 0 $ffi->attach('OGR_GetFieldSubTypeName' => ['unsigned int'] => 'string');
1087 0 $ffi->attach('OGR_AreTypeSubTypeCompatible' => ['unsigned int','unsigned int'] => 'int');
1088 0 $ffi->attach('OGR_GFld_Create' => ['string','unsigned int'] => 'opaque');
1089 0 $ffi->attach('OGR_GFld_Destroy' => [qw/opaque/] => 'void');
1090 0 $ffi->attach('OGR_GFld_SetName' => [qw/opaque string/] => 'void');
1091 0 $ffi->attach('OGR_GFld_GetNameRef' => [qw/opaque/] => 'string');
1092 0 $ffi->attach('OGR_GFld_GetType' => [qw/opaque/] => 'unsigned int');
1093 0 $ffi->attach('OGR_GFld_SetType' => ['opaque','unsigned int'] => 'void');
1094 0 $ffi->attach('OGR_GFld_GetSpatialRef' => [qw/opaque/] => 'opaque');
1095 0 $ffi->attach('OGR_GFld_SetSpatialRef' => [qw/opaque opaque/] => 'void');
1096 0 $ffi->attach('OGR_GFld_IsNullable' => [qw/opaque/] => 'int');
1097 0 $ffi->attach('OGR_GFld_SetNullable' => [qw/opaque int/] => 'void');
1098 0 $ffi->attach('OGR_GFld_IsIgnored' => [qw/opaque/] => 'int');
1099 0 $ffi->attach('OGR_GFld_SetIgnored' => [qw/opaque int/] => 'void');
1100 0 $ffi->attach('OGR_FD_Create' => [qw/string/] => 'opaque');
1101 0 $ffi->attach('OGR_FD_Destroy' => [qw/opaque/] => 'void');
1102 0 $ffi->attach('OGR_FD_Release' => [qw/opaque/] => 'void');
1103 0 $ffi->attach('OGR_FD_GetName' => [qw/opaque/] => 'string');
1104 0 $ffi->attach('OGR_FD_GetFieldCount' => [qw/opaque/] => 'int');
1105 0 $ffi->attach('OGR_FD_GetFieldDefn' => [qw/opaque int/] => 'opaque');
1106 0 $ffi->attach('OGR_FD_GetFieldIndex' => [qw/opaque string/] => 'int');
1107 0 $ffi->attach('OGR_FD_AddFieldDefn' => [qw/opaque opaque/] => 'void');
1108 0 $ffi->attach('OGR_FD_DeleteFieldDefn' => [qw/opaque int/] => 'int');
1109 0 $ffi->attach('OGR_FD_ReorderFieldDefns' => [qw/opaque int*/] => 'int');
1110 0 $ffi->attach('OGR_FD_GetGeomType' => [qw/opaque/] => 'unsigned int');
1111 0 $ffi->attach('OGR_FD_SetGeomType' => ['opaque','unsigned int'] => 'void');
1112 0 $ffi->attach('OGR_FD_IsGeometryIgnored' => [qw/opaque/] => 'int');
1113 0 $ffi->attach('OGR_FD_SetGeometryIgnored' => [qw/opaque int/] => 'void');
1114 0 $ffi->attach('OGR_FD_IsStyleIgnored' => [qw/opaque/] => 'int');
1115 0 $ffi->attach('OGR_FD_SetStyleIgnored' => [qw/opaque int/] => 'void');
1116 0 $ffi->attach('OGR_FD_Reference' => [qw/opaque/] => 'int');
1117 0 $ffi->attach('OGR_FD_Dereference' => [qw/opaque/] => 'int');
1118 0 $ffi->attach('OGR_FD_GetReferenceCount' => [qw/opaque/] => 'int');
1119 0 $ffi->attach('OGR_FD_GetGeomFieldCount' => [qw/opaque/] => 'int');
1120 0 $ffi->attach('OGR_FD_GetGeomFieldDefn' => [qw/opaque int/] => 'opaque');
1121 0 $ffi->attach('OGR_FD_GetGeomFieldIndex' => [qw/opaque string/] => 'int');
1122 0 $ffi->attach('OGR_FD_AddGeomFieldDefn' => [qw/opaque opaque/] => 'void');
1123 0 $ffi->attach('OGR_FD_DeleteGeomFieldDefn' => [qw/opaque int/] => 'int');
1124 0 $ffi->attach('OGR_FD_IsSame' => [qw/opaque opaque/] => 'int');
1125 0 $ffi->attach('OGR_F_Create' => [qw/opaque/] => 'opaque');
1126 0 $ffi->attach('OGR_F_Destroy' => [qw/opaque/] => 'void');
1127 0 $ffi->attach('OGR_F_GetDefnRef' => [qw/opaque/] => 'opaque');
1128 0 $ffi->attach('OGR_F_SetGeometryDirectly' => [qw/opaque opaque/] => 'int');
1129 0 $ffi->attach('OGR_F_SetGeometry' => [qw/opaque opaque/] => 'int');
1130 0 $ffi->attach('OGR_F_GetGeometryRef' => [qw/opaque/] => 'opaque');
1131 0 $ffi->attach('OGR_F_StealGeometry' => [qw/opaque/] => 'opaque');
1132 0 $ffi->attach('OGR_F_StealGeometryEx' => [qw/opaque int/] => 'opaque');
1133 0 $ffi->attach('OGR_F_Clone' => [qw/opaque/] => 'opaque');
1134 0 $ffi->attach('OGR_F_Equal' => [qw/opaque opaque/] => 'int');
1135 0 $ffi->attach('OGR_F_GetFieldCount' => [qw/opaque/] => 'int');
1136 0 $ffi->attach('OGR_F_GetFieldDefnRef' => [qw/opaque int/] => 'opaque');
1137 0 $ffi->attach('OGR_F_GetFieldIndex' => [qw/opaque string/] => 'int');
1138 0 $ffi->attach('OGR_F_IsFieldSet' => [qw/opaque int/] => 'int');
1139 0 $ffi->attach('OGR_F_UnsetField' => [qw/opaque int/] => 'void');
1140 0 $ffi->attach('OGR_F_IsFieldNull' => [qw/opaque int/] => 'int');
1141 0 $ffi->attach('OGR_F_IsFieldSetAndNotNull' => [qw/opaque int/] => 'int');
1142 0 $ffi->attach('OGR_F_SetFieldNull' => [qw/opaque int/] => 'void');
1143 0 $ffi->attach('OGR_F_GetRawFieldRef' => [qw/opaque int/] => 'opaque');
1144 0 $ffi->attach('OGR_RawField_IsUnset' => [qw/opaque/] => 'int');
1145 0 $ffi->attach('OGR_RawField_IsNull' => [qw/opaque/] => 'int');
1146 0 $ffi->attach('OGR_RawField_SetUnset' => [qw/opaque/] => 'void');
1147 0 $ffi->attach('OGR_RawField_SetNull' => [qw/opaque/] => 'void');
1148 0 $ffi->attach('OGR_F_GetFieldAsInteger' => [qw/opaque int/] => 'int');
1149 0 $ffi->attach('OGR_F_GetFieldAsInteger64' => [qw/opaque int/] => 'sint64');
1150 0 $ffi->attach('OGR_F_GetFieldAsDouble' => [qw/opaque int/] => 'double');
1151 0 $ffi->attach('OGR_F_GetFieldAsString' => [qw/opaque int/] => 'string');
1152 0 $ffi->attach('OGR_F_GetFieldAsISO8601DateTime' => [qw/opaque int opaque/] => 'string');
1153 0 $ffi->attach('OGR_F_GetFieldAsIntegerList' => [qw/opaque int int*/] => 'pointer');
1154 0 $ffi->attach('OGR_F_GetFieldAsInteger64List' => [qw/opaque int int*/] => 'pointer');
1155 0 $ffi->attach('OGR_F_GetFieldAsDoubleList' => [qw/opaque int int*/] => 'pointer');
1156 0 $ffi->attach('OGR_F_GetFieldAsStringList' => [qw/opaque int/] => 'opaque');
1157 0 $ffi->attach('OGR_F_GetFieldAsBinary' => [qw/opaque int int*/] => 'pointer');
1158 0 $ffi->attach('OGR_F_GetFieldAsDateTime' => [qw/opaque int int* int* int* int* int* int* int*/] => 'int');
1159 0 $ffi->attach('OGR_F_GetFieldAsDateTimeEx' => [qw/opaque int int* int* int* int* int* float* int*/] => 'int');
1160 0 $ffi->attach('OGR_F_SetFieldInteger' => [qw/opaque int int/] => 'void');
1161 0 $ffi->attach('OGR_F_SetFieldInteger64' => [qw/opaque int sint64/] => 'void');
1162 0 $ffi->attach('OGR_F_SetFieldDouble' => [qw/opaque int double/] => 'void');
1163 0 $ffi->attach('OGR_F_SetFieldString' => [qw/opaque int string/] => 'void');
1164 0 $ffi->attach('OGR_F_SetFieldIntegerList' => [qw/opaque int int int[]/] => 'void');
1165 0 $ffi->attach('OGR_F_SetFieldInteger64List' => [qw/opaque int int sint64[]/] => 'void');
1166 0 $ffi->attach('OGR_F_SetFieldDoubleList' => [qw/opaque int int double[]/] => 'void');
1167 0 $ffi->attach('OGR_F_SetFieldStringList' => [qw/opaque int opaque/] => 'void');
1168 0 $ffi->attach('OGR_F_SetFieldRaw' => [qw/opaque int opaque/] => 'void');
1169 0 $ffi->attach('OGR_F_SetFieldBinary' => [qw/opaque int int opaque/] => 'void');
1170 0 $ffi->attach('OGR_F_SetFieldDateTime' => [qw/opaque int int int int int int int int/] => 'void');
1171 0 $ffi->attach('OGR_F_SetFieldDateTimeEx' => [qw/opaque int int int int int int float int/] => 'void');
1172 0 $ffi->attach('OGR_F_GetGeomFieldCount' => [qw/opaque/] => 'int');
1173 0 $ffi->attach('OGR_F_GetGeomFieldDefnRef' => [qw/opaque int/] => 'opaque');
1174 0 $ffi->attach('OGR_F_GetGeomFieldIndex' => [qw/opaque string/] => 'int');
1175 0 $ffi->attach('OGR_F_GetGeomFieldRef' => [qw/opaque int/] => 'opaque');
1176 0 $ffi->attach('OGR_F_SetGeomFieldDirectly' => [qw/opaque int opaque/] => 'int');
1177 0 $ffi->attach('OGR_F_SetGeomField' => [qw/opaque int opaque/] => 'int');
1178 0 $ffi->attach('OGR_F_GetFID' => [qw/opaque/] => 'sint64');
1179 0 $ffi->attach('OGR_F_SetFID' => [qw/opaque sint64/] => 'int');
1180 0 $ffi->attach('OGR_F_DumpReadable' => [qw/opaque opaque/] => 'void');
1181 0 $ffi->attach('OGR_F_SetFrom' => [qw/opaque opaque int/] => 'int');
1182 0 $ffi->attach('OGR_F_SetFromWithMap' => [qw/opaque opaque int int*/] => 'int');
1183 0 $ffi->attach('OGR_F_GetStyleString' => [qw/opaque/] => 'string');
1184 0 $ffi->attach('OGR_F_SetStyleString' => [qw/opaque string/] => 'void');
1185 0 $ffi->attach('OGR_F_SetStyleStringDirectly' => [qw/opaque string/] => 'void');
1186 0 $ffi->attach('OGR_F_GetStyleTable' => [qw/opaque/] => 'opaque');
1187 0 $ffi->attach('OGR_F_SetStyleTableDirectly' => [qw/opaque opaque/] => 'void');
1188 0 $ffi->attach('OGR_F_SetStyleTable' => [qw/opaque opaque/] => 'void');
1189 0 $ffi->attach('OGR_F_GetNativeData' => [qw/opaque/] => 'string');
1190 0 $ffi->attach('OGR_F_SetNativeData' => [qw/opaque string/] => 'void');
1191 0 $ffi->attach('OGR_F_GetNativeMediaType' => [qw/opaque/] => 'string');
1192 0 $ffi->attach('OGR_F_SetNativeMediaType' => [qw/opaque string/] => 'void');
1193 0 $ffi->attach('OGR_F_FillUnsetWithDefault' => [qw/opaque int opaque/] => 'void');
1194 0 $ffi->attach('OGR_F_Validate' => [qw/opaque int int/] => 'int');
1195 0 $ffi->attach('OGR_FldDomain_Destroy' => [qw/opaque/] => 'void');
1196 0 $ffi->attach('OGR_FldDomain_GetName' => [qw/opaque/] => 'string');
1197 0 $ffi->attach('OGR_FldDomain_GetDescription' => [qw/opaque/] => 'string');
1198 0 $ffi->attach('OGR_FldDomain_GetDomainType' => [qw/opaque/] => 'int');
1199 0 $ffi->attach('OGR_FldDomain_GetFieldType' => [qw/opaque/] => 'unsigned int');
1200 0 $ffi->attach('OGR_FldDomain_GetFieldSubType' => [qw/opaque/] => 'unsigned int');
1201 0 $ffi->attach('OGR_FldDomain_GetSplitPolicy' => [qw/opaque/] => 'int');
1202 0 $ffi->attach('OGR_FldDomain_SetSplitPolicy' => [qw/opaque int/] => 'void');
1203 0 $ffi->attach('OGR_FldDomain_GetMergePolicy' => [qw/opaque/] => 'int');
1204 0 $ffi->attach('OGR_FldDomain_SetMergePolicy' => [qw/opaque int/] => 'void');
1205 0 $ffi->attach('OGR_CodedFldDomain_Create' => ['string','string','unsigned int','unsigned int','int'] => 'opaque');
1206 0 $ffi->attach('OGR_CodedFldDomain_GetEnumeration' => [qw/opaque/] => 'int');
1207 0 $ffi->attach('OGR_RangeFldDomain_Create' => ['string','string','unsigned int','unsigned int','opaque','bool','opaque','bool'] => 'opaque');
1208 0 $ffi->attach('OGR_RangeFldDomain_GetMin' => [qw/opaque bool/] => 'opaque');
1209 0 $ffi->attach('OGR_RangeFldDomain_GetMax' => [qw/opaque bool/] => 'opaque');
1210 0 $ffi->attach('OGR_GlobFldDomain_Create' => ['string','string','unsigned int','unsigned int','string'] => 'opaque');
1211 0 $ffi->attach('OGR_GlobFldDomain_GetGlob' => [qw/opaque/] => 'string');
1212 0 $ffi->attach('OGR_L_GetName' => [qw/opaque/] => 'string');
1213 0 $ffi->attach('OGR_L_GetGeomType' => [qw/opaque/] => 'unsigned int');
1214 0 $ffi->attach('OGR_L_GetGeometryTypes' => [qw/opaque int int int* GDALProgressFunc opaque/] => 'opaque');
1215 0 $ffi->attach('OGR_L_GetSpatialFilter' => [qw/opaque/] => 'opaque');
1216 0 $ffi->attach('OGR_L_SetSpatialFilter' => [qw/opaque opaque/] => 'void');
1217 0 $ffi->attach('OGR_L_SetSpatialFilterRect' => [qw/opaque double double double double/] => 'void');
1218 0 $ffi->attach('OGR_L_SetSpatialFilterEx' => [qw/opaque int opaque/] => 'void');
1219 0 $ffi->attach('OGR_L_SetSpatialFilterRectEx' => [qw/opaque int double double double double/] => 'void');
1220 0 $ffi->attach('OGR_L_SetAttributeFilter' => [qw/opaque string/] => 'int');
1221 0 $ffi->attach('OGR_L_ResetReading' => [qw/opaque/] => 'void');
1222 0 $ffi->attach('OGR_L_GetNextFeature' => [qw/opaque/] => 'opaque');
1223 0 $ffi->attach('OGR_L_GetArrowStream' => [qw/opaque opaque opaque/] => 'bool');
1224 0 $ffi->attach('OGR_L_SetNextByIndex' => [qw/opaque sint64/] => 'int');
1225 0 $ffi->attach('OGR_L_GetFeature' => [qw/opaque sint64/] => 'opaque');
1226 0 $ffi->attach('OGR_L_SetFeature' => [qw/opaque opaque/] => 'int');
1227 0 $ffi->attach('OGR_L_CreateFeature' => [qw/opaque opaque/] => 'int');
1228 0 $ffi->attach('OGR_L_DeleteFeature' => [qw/opaque sint64/] => 'int');
1229 0 $ffi->attach('OGR_L_UpsertFeature' => [qw/opaque opaque/] => 'int');
1230 0 $ffi->attach('OGR_L_UpdateFeature' => [qw/opaque opaque int int* int int* bool/] => 'int');
1231 0 $ffi->attach('OGR_L_GetLayerDefn' => [qw/opaque/] => 'opaque');
1232 0 $ffi->attach('OGR_L_GetSpatialRef' => [qw/opaque/] => 'opaque');
1233 0 $ffi->attach('OGR_L_GetSupportedSRSList' => [qw/opaque int int*/] => 'uint64*');
1234 0 $ffi->attach('OGR_L_SetActiveSRS' => [qw/opaque int opaque/] => 'int');
1235 0 $ffi->attach('OGR_L_FindFieldIndex' => [qw/opaque string int/] => 'int');
1236 0 $ffi->attach('OGR_L_GetFeatureCount' => [qw/opaque int/] => 'sint64');
1237 0 $ffi->attach('OGR_L_GetExtent' => [qw/opaque double[4] int/] => 'int');
1238 0 $ffi->attach('OGR_L_GetExtentEx' => [qw/opaque int double[4] int/] => 'int');
1239 0 $ffi->attach('OGR_L_TestCapability' => [qw/opaque string/] => 'int');
1240 0 $ffi->attach('OGR_L_CreateField' => [qw/opaque opaque int/] => 'int');
1241 0 $ffi->attach('OGR_L_CreateGeomField' => [qw/opaque opaque int/] => 'int');
1242 0 $ffi->attach('OGR_L_DeleteField' => [qw/opaque int/] => 'int');
1243 0 $ffi->attach('OGR_L_ReorderFields' => [qw/opaque int*/] => 'int');
1244 0 $ffi->attach('OGR_L_ReorderField' => [qw/opaque int int/] => 'int');
1245 0 $ffi->attach('OGR_L_AlterFieldDefn' => [qw/opaque int opaque int/] => 'int');
1246 0 $ffi->attach('OGR_L_AlterGeomFieldDefn' => [qw/opaque int opaque int/] => 'int');
1247 0 $ffi->attach('OGR_L_StartTransaction' => [qw/opaque/] => 'int');
1248 0 $ffi->attach('OGR_L_CommitTransaction' => [qw/opaque/] => 'int');
1249 0 $ffi->attach('OGR_L_RollbackTransaction' => [qw/opaque/] => 'int');
1250 0 $ffi->attach('OGR_L_Rename' => [qw/opaque string/] => 'int');
1251 0 $ffi->attach('OGR_L_Reference' => [qw/opaque/] => 'int');
1252 0 $ffi->attach('OGR_L_Dereference' => [qw/opaque/] => 'int');
1253 0 $ffi->attach('OGR_L_GetRefCount' => [qw/opaque/] => 'int');
1254 0 $ffi->attach('OGR_L_SyncToDisk' => [qw/opaque/] => 'int');
1255 0 $ffi->attach('OGR_L_GetFeaturesRead' => [qw/opaque/] => 'sint64');
1256 0 $ffi->attach('OGR_L_GetFIDColumn' => [qw/opaque/] => 'string');
1257 0 $ffi->attach('OGR_L_GetGeometryColumn' => [qw/opaque/] => 'string');
1258 0 $ffi->attach('OGR_L_GetStyleTable' => [qw/opaque/] => 'opaque');
1259 0 $ffi->attach('OGR_L_SetStyleTableDirectly' => [qw/opaque opaque/] => 'void');
1260 0 $ffi->attach('OGR_L_SetStyleTable' => [qw/opaque opaque/] => 'void');
1261 0 $ffi->attach('OGR_L_SetIgnoredFields' => [qw/opaque string/] => 'int');
1262 0 $ffi->attach('OGR_L_Intersection' => [qw/opaque opaque opaque opaque GDALProgressFunc opaque/] => 'int');
1263 0 $ffi->attach('OGR_L_Union' => [qw/opaque opaque opaque opaque GDALProgressFunc opaque/] => 'int');
1264 0 $ffi->attach('OGR_L_SymDifference' => [qw/opaque opaque opaque opaque GDALProgressFunc opaque/] => 'int');
1265 0 $ffi->attach('OGR_L_Identity' => [qw/opaque opaque opaque opaque GDALProgressFunc opaque/] => 'int');
1266 0 $ffi->attach('OGR_L_Update' => [qw/opaque opaque opaque opaque GDALProgressFunc opaque/] => 'int');
1267 0 $ffi->attach('OGR_L_Clip' => [qw/opaque opaque opaque opaque GDALProgressFunc opaque/] => 'int');
1268 0 $ffi->attach('OGR_L_Erase' => [qw/opaque opaque opaque opaque GDALProgressFunc opaque/] => 'int');
1269 0 $ffi->attach('OGR_DS_Destroy' => [qw/opaque/] => 'void');
1270 0 $ffi->attach('OGR_DS_GetName' => [qw/opaque/] => 'string');
1271 0 $ffi->attach('OGR_DS_GetLayerCount' => [qw/opaque/] => 'int');
1272 0 $ffi->attach('OGR_DS_GetLayer' => [qw/opaque int/] => 'opaque');
1273 0 $ffi->attach('OGR_DS_GetLayerByName' => [qw/opaque string/] => 'opaque');
1274 0 $ffi->attach('OGR_DS_DeleteLayer' => [qw/opaque int/] => 'int');
1275 0 $ffi->attach('OGR_DS_GetDriver' => [qw/opaque/] => 'opaque');
1276 0 $ffi->attach('OGR_DS_CreateLayer' => ['opaque','string','opaque','unsigned int','opaque'] => 'opaque');
1277 0 $ffi->attach('OGR_DS_CopyLayer' => [qw/opaque opaque string opaque/] => 'opaque');
1278 0 $ffi->attach('OGR_DS_TestCapability' => [qw/opaque string/] => 'int');
1279 0 $ffi->attach('OGR_DS_ExecuteSQL' => [qw/opaque string opaque string/] => 'opaque');
1280 0 $ffi->attach('OGR_DS_ReleaseResultSet' => [qw/opaque opaque/] => 'void');
1281 0 $ffi->attach('OGR_DS_Reference' => [qw/opaque/] => 'int');
1282 0 $ffi->attach('OGR_DS_Dereference' => [qw/opaque/] => 'int');
1283 0 $ffi->attach('OGR_DS_GetRefCount' => [qw/opaque/] => 'int');
1284 0 $ffi->attach('OGR_DS_GetSummaryRefCount' => [qw/opaque/] => 'int');
1285 0 $ffi->attach('OGR_DS_SyncToDisk' => [qw/opaque/] => 'int');
1286 0 $ffi->attach('OGR_DS_GetStyleTable' => [qw/opaque/] => 'opaque');
1287 0 $ffi->attach('OGR_DS_SetStyleTableDirectly' => [qw/opaque opaque/] => 'void');
1288 0 $ffi->attach('OGR_DS_SetStyleTable' => [qw/opaque opaque/] => 'void');
1289 0 $ffi->attach('OGR_Dr_GetName' => [qw/opaque/] => 'string');
1290 0 $ffi->attach('OGR_Dr_Open' => [qw/opaque string int/] => 'opaque');
1291 0 $ffi->attach('OGR_Dr_TestCapability' => [qw/opaque string/] => 'int');
1292 0 $ffi->attach('OGR_Dr_CreateDataSource' => [qw/opaque string opaque/] => 'opaque');
1293 0 $ffi->attach('OGR_Dr_CopyDataSource' => [qw/opaque opaque string opaque/] => 'opaque');
1294 0 $ffi->attach('OGR_Dr_DeleteDataSource' => [qw/opaque string/] => 'int');
1295 0 $ffi->attach('OGROpen' => [qw/string int uint64*/] => 'opaque');
1296 0 $ffi->attach('OGROpenShared' => [qw/string int uint64*/] => 'opaque');
1297 0 $ffi->attach('OGRReleaseDataSource' => [qw/opaque/] => 'int');
1298 0 $ffi->attach('OGRRegisterDriver' => [qw/opaque/] => 'void');
1299 0 $ffi->attach('OGRDeregisterDriver' => [qw/opaque/] => 'void');
1300 0 $ffi->attach('OGRGetDriverCount' => [] => 'int');
1301 0 $ffi->attach('OGRGetDriver' => [qw/int/] => 'opaque');
1302 0 $ffi->attach('OGRGetDriverByName' => [qw/string/] => 'opaque');
1303 0 $ffi->attach('OGRGetOpenDSCount' => [] => 'int');
1304 0 $ffi->attach('OGRGetOpenDS' => [qw/int/] => 'opaque');
1305 0 $ffi->attach('OGRRegisterAll' => [] => 'void');
1306 0 $ffi->attach('OGRCleanupAll' => [] => 'void');
1307 0 $ffi->attach('OGR_SM_Create' => [qw/opaque/] => 'opaque');
1308 0 $ffi->attach('OGR_SM_Destroy' => [qw/opaque/] => 'void');
1309 0 $ffi->attach('OGR_SM_InitFromFeature' => [qw/opaque opaque/] => 'string');
1310 0 $ffi->attach('OGR_SM_InitStyleString' => [qw/opaque string/] => 'int');
1311 0 $ffi->attach('OGR_SM_GetPartCount' => [qw/opaque string/] => 'int');
1312 0 $ffi->attach('OGR_SM_GetPart' => [qw/opaque int string/] => 'opaque');
1313 0 $ffi->attach('OGR_SM_AddPart' => [qw/opaque opaque/] => 'int');
1314 0 $ffi->attach('OGR_SM_AddStyle' => [qw/opaque string string/] => 'int');
1315 0 $ffi->attach('OGR_ST_Create' => ['unsigned int'] => 'opaque');
1316 0 $ffi->attach('OGR_ST_Destroy' => [qw/opaque/] => 'void');
1317 0 $ffi->attach('OGR_ST_GetType' => [qw/opaque/] => 'unsigned int');
1318 0 $ffi->attach('OGR_ST_GetUnit' => [qw/opaque/] => 'unsigned int');
1319 0 $ffi->attach('OGR_ST_SetUnit' => ['opaque','unsigned int','double'] => 'void');
1320 0 $ffi->attach('OGR_ST_GetParamStr' => [qw/opaque int int*/] => 'string');
1321 0 $ffi->attach('OGR_ST_GetParamNum' => [qw/opaque int int*/] => 'int');
1322 0 $ffi->attach('OGR_ST_GetParamDbl' => [qw/opaque int int*/] => 'double');
1323 0 $ffi->attach('OGR_ST_SetParamStr' => [qw/opaque int string/] => 'void');
1324 0 $ffi->attach('OGR_ST_SetParamNum' => [qw/opaque int int/] => 'void');
1325 0 $ffi->attach('OGR_ST_SetParamDbl' => [qw/opaque int double/] => 'void');
1326 0 $ffi->attach('OGR_ST_GetStyleString' => [qw/opaque/] => 'string');
1327 0 $ffi->attach('OGR_ST_GetRGBFromString' => [qw/opaque string int* int* int* int*/] => 'int');
1328 0 $ffi->attach('OGR_STBL_Create' => [] => 'opaque');
1329 0 $ffi->attach('OGR_STBL_Destroy' => [qw/opaque/] => 'void');
1330 0 $ffi->attach('OGR_STBL_AddStyle' => [qw/opaque string string/] => 'int');
1331 0 $ffi->attach('OGR_STBL_SaveStyleTable' => [qw/opaque string/] => 'int');
1332 0 $ffi->attach('OGR_STBL_LoadStyleTable' => [qw/opaque string/] => 'int');
1333 0 $ffi->attach('OGR_STBL_Find' => [qw/opaque string/] => 'string');
1334 0 $ffi->attach('OGR_STBL_ResetStyleStringReading' => [qw/opaque/] => 'void');
1335 0 $ffi->attach('OGR_STBL_GetNextStyle' => [qw/opaque/] => 'string');
1336 0 $ffi->attach('OGR_STBL_GetLastStyleName' => [qw/opaque/] => 'string');
1337 # from ogr/ogr_srs_api.h
1338 0 $ffi->attach('OSRAxisEnumToName' => ['unsigned int'] => 'string');
1339 0 $ffi->attach('OSRSetPROJSearchPaths' => [qw/opaque/] => 'void');
1340 0 $ffi->attach('OSRGetPROJSearchPaths' => [] => 'opaque');
1341 0 $ffi->attach('OSRSetPROJAuxDbPaths' => [qw/opaque/] => 'void');
1342 0 $ffi->attach('OSRGetPROJAuxDbPaths' => [] => 'opaque');
1343 0 $ffi->attach('OSRSetPROJEnableNetwork' => [qw/int/] => 'void');
1344 0 $ffi->attach('OSRGetPROJEnableNetwork' => [] => 'int');
1345 0 $ffi->attach('OSRGetPROJVersion' => [qw/int* int* int*/] => 'void');
1346 0 $ffi->attach('OSRNewSpatialReference' => [qw/string/] => 'opaque');
1347 0 $ffi->attach('OSRCloneGeogCS' => [qw/opaque/] => 'opaque');
1348 0 $ffi->attach('OSRClone' => [qw/opaque/] => 'opaque');
1349 0 $ffi->attach('OSRDestroySpatialReference' => [qw/opaque/] => 'void');
1350 0 $ffi->attach('OSRReference' => [qw/opaque/] => 'int');
1351 0 $ffi->attach('OSRDereference' => [qw/opaque/] => 'int');
1352 0 $ffi->attach('OSRRelease' => [qw/opaque/] => 'void');
1353 0 $ffi->attach('OSRValidate' => [qw/opaque/] => 'int');
1354 0 $ffi->attach('OSRImportFromEPSG' => [qw/opaque int/] => 'int');
1355 0 $ffi->attach('OSRImportFromEPSGA' => [qw/opaque int/] => 'int');
1356 0 $ffi->attach('OSRImportFromWkt' => [qw/opaque string*/] => 'int');
1357 0 $ffi->attach('OSRImportFromProj4' => [qw/opaque string/] => 'int');
1358 0 $ffi->attach('OSRImportFromESRI' => [qw/opaque opaque/] => 'int');
1359 0 $ffi->attach('OSRImportFromPCI' => [qw/opaque string string double*/] => 'int');
1360 0 $ffi->attach('OSRImportFromUSGS' => [qw/opaque long long double* long/] => 'int');
1361 0 $ffi->attach('OSRImportFromXML' => [qw/opaque string/] => 'int');
1362 0 $ffi->attach('OSRImportFromDict' => [qw/opaque string string/] => 'int');
1363 0 $ffi->attach('OSRImportFromPanorama' => [qw/opaque long long long double*/] => 'int');
1364 0 $ffi->attach('OSRImportFromOzi' => [qw/opaque opaque/] => 'int');
1365 0 $ffi->attach('OSRImportFromMICoordSys' => [qw/opaque string/] => 'int');
1366 0 $ffi->attach('OSRImportFromERM' => [qw/opaque string string string/] => 'int');
1367 0 $ffi->attach('OSRImportFromUrl' => [qw/opaque string/] => 'int');
1368 0 $ffi->attach('OSRExportToWkt' => [qw/opaque string*/] => 'int');
1369 0 $ffi->attach('OSRExportToWktEx' => [qw/opaque string* opaque/] => 'int');
1370 0 $ffi->attach('OSRExportToPrettyWkt' => [qw/opaque string* int/] => 'int');
1371 0 $ffi->attach('OSRExportToPROJJSON' => [qw/opaque string* opaque/] => 'int');
1372 0 $ffi->attach('OSRExportToProj4' => [qw/opaque string*/] => 'int');
1373 0 $ffi->attach('OSRExportToPCI' => [qw/opaque string* string* double*/] => 'int');
1374 0 $ffi->attach('OSRExportToUSGS' => [qw/opaque long* long* double* long*/] => 'int');
1375 0 $ffi->attach('OSRExportToXML' => [qw/opaque string* string/] => 'int');
1376 0 $ffi->attach('OSRExportToPanorama' => [qw/opaque long* long* long* long* double*/] => 'int');
1377 0 $ffi->attach('OSRExportToMICoordSys' => [qw/opaque string*/] => 'int');
1378 0 $ffi->attach('OSRExportToERM' => [qw/opaque string string string/] => 'int');
1379 0 $ffi->attach('OSRMorphToESRI' => [qw/opaque/] => 'int');
1380 0 $ffi->attach('OSRMorphFromESRI' => [qw/opaque/] => 'int');
1381 0 $ffi->attach('OSRStripVertical' => [qw/opaque/] => 'int');
1382 0 $ffi->attach('OSRConvertToOtherProjection' => [qw/opaque string opaque/] => 'opaque');
1383 0 $ffi->attach('OSRGetName' => [qw/opaque/] => 'string');
1384 0 $ffi->attach('OSRSetAttrValue' => [qw/opaque string string/] => 'int');
1385 0 $ffi->attach('OSRGetAttrValue' => [qw/opaque string int/] => 'string');
1386 0 $ffi->attach('OSRSetAngularUnits' => [qw/opaque string double/] => 'int');
1387 0 $ffi->attach('OSRGetAngularUnits' => [qw/opaque string*/] => 'double');
1388 0 $ffi->attach('OSRSetLinearUnits' => [qw/opaque string double/] => 'int');
1389 0 $ffi->attach('OSRSetTargetLinearUnits' => [qw/opaque string string double/] => 'int');
1390 0 $ffi->attach('OSRSetLinearUnitsAndUpdateParameters' => [qw/opaque string double/] => 'int');
1391 0 $ffi->attach('OSRGetLinearUnits' => [qw/opaque string*/] => 'double');
1392 0 $ffi->attach('OSRGetTargetLinearUnits' => [qw/opaque string string*/] => 'double');
1393 0 $ffi->attach('OSRGetPrimeMeridian' => [qw/opaque string*/] => 'double');
1394 0 $ffi->attach('OSRIsGeographic' => [qw/opaque/] => 'int');
1395 0 $ffi->attach('OSRIsDerivedGeographic' => [qw/opaque/] => 'int');
1396 0 $ffi->attach('OSRIsLocal' => [qw/opaque/] => 'int');
1397 0 $ffi->attach('OSRIsProjected' => [qw/opaque/] => 'int');
1398 0 $ffi->attach('OSRIsCompound' => [qw/opaque/] => 'int');
1399 0 $ffi->attach('OSRIsGeocentric' => [qw/opaque/] => 'int');
1400 0 $ffi->attach('OSRIsVertical' => [qw/opaque/] => 'int');
1401 0 $ffi->attach('OSRIsDynamic' => [qw/opaque/] => 'int');
1402 0 $ffi->attach('OSRIsSameGeogCS' => [qw/opaque opaque/] => 'int');
1403 0 $ffi->attach('OSRIsSameVertCS' => [qw/opaque opaque/] => 'int');
1404 0 $ffi->attach('OSRIsSame' => [qw/opaque opaque/] => 'int');
1405 0 $ffi->attach('OSRIsSameEx' => [qw/opaque opaque opaque/] => 'int');
1406 0 $ffi->attach('OSRSetCoordinateEpoch' => [qw/opaque double/] => 'void');
1407 0 $ffi->attach('OSRGetCoordinateEpoch' => [qw/opaque/] => 'double');
1408 0 $ffi->attach('OSRSetLocalCS' => [qw/opaque string/] => 'int');
1409 0 $ffi->attach('OSRSetProjCS' => [qw/opaque string/] => 'int');
1410 0 $ffi->attach('OSRSetGeocCS' => [qw/opaque string/] => 'int');
1411 0 $ffi->attach('OSRSetWellKnownGeogCS' => [qw/opaque string/] => 'int');
1412 0 $ffi->attach('OSRSetFromUserInput' => [qw/opaque string/] => 'int');
1413 0 $ffi->attach('OSRCopyGeogCSFrom' => [qw/opaque opaque/] => 'int');
1414 0 $ffi->attach('OSRSetTOWGS84' => [qw/opaque double double double double double double double/] => 'int');
1415 0 $ffi->attach('OSRGetTOWGS84' => [qw/opaque double* int/] => 'int');
1416 0 $ffi->attach('OSRAddGuessedTOWGS84' => [qw/opaque/] => 'int');
1417 0 $ffi->attach('OSRSetCompoundCS' => [qw/opaque string opaque opaque/] => 'int');
1418 0 $ffi->attach('OSRPromoteTo3D' => [qw/opaque string/] => 'int');
1419 0 $ffi->attach('OSRDemoteTo2D' => [qw/opaque string/] => 'int');
1420 0 $ffi->attach('OSRSetGeogCS' => [qw/opaque string string string double double string double string double/] => 'int');
1421 0 $ffi->attach('OSRSetVertCS' => [qw/opaque string string int/] => 'int');
1422 0 $ffi->attach('OSRGetSemiMajor' => [qw/opaque int*/] => 'double');
1423 0 $ffi->attach('OSRGetSemiMinor' => [qw/opaque int*/] => 'double');
1424 0 $ffi->attach('OSRGetInvFlattening' => [qw/opaque int*/] => 'double');
1425 0 $ffi->attach('OSRSetAuthority' => [qw/opaque string string int/] => 'int');
1426 0 $ffi->attach('OSRGetAuthorityCode' => [qw/opaque string/] => 'string');
1427 0 $ffi->attach('OSRGetAuthorityName' => [qw/opaque string/] => 'string');
1428 0 $ffi->attach('OSRGetAreaOfUse' => [qw/opaque double* double* double* double* string/] => 'int');
1429 0 $ffi->attach('OSRSetProjection' => [qw/opaque string/] => 'int');
1430 0 $ffi->attach('OSRSetProjParm' => [qw/opaque string double/] => 'int');
1431 0 $ffi->attach('OSRGetProjParm' => [qw/opaque string double int*/] => 'double');
1432 0 $ffi->attach('OSRSetNormProjParm' => [qw/opaque string double/] => 'int');
1433 0 $ffi->attach('OSRGetNormProjParm' => [qw/opaque string double int*/] => 'double');
1434 0 $ffi->attach('OSRSetUTM' => [qw/opaque int int/] => 'int');
1435 0 $ffi->attach('OSRGetUTMZone' => [qw/opaque int*/] => 'int');
1436 0 $ffi->attach('OSRSetStatePlane' => [qw/opaque int int/] => 'int');
1437 0 $ffi->attach('OSRSetStatePlaneWithUnits' => [qw/opaque int int string double/] => 'int');
1438 0 $ffi->attach('OSRAutoIdentifyEPSG' => [qw/opaque/] => 'int');
1439 0 $ffi->attach('OSRFindMatches' => [qw/opaque opaque int* int*/] => 'uint64*');
1440 0 $ffi->attach('OSRFreeSRSArray' => [qw/uint64*/] => 'void');
1441 0 $ffi->attach('OSREPSGTreatsAsLatLong' => [qw/opaque/] => 'int');
1442 0 $ffi->attach('OSREPSGTreatsAsNorthingEasting' => [qw/opaque/] => 'int');
1443 0 $ffi->attach('OSRGetAxis' => ['opaque','string','int','unsigned int'] => 'string');
1444 0 $ffi->attach('OSRGetAxesCount' => [qw/opaque/] => 'int');
1445 0 $ffi->attach('OSRSetAxes' => ['opaque','string','string','unsigned int','string','unsigned int'] => 'int');
1446 0 $ffi->attach('OSRGetAxisMappingStrategy' => [qw/opaque/] => 'int');
1447 0 $ffi->attach('OSRSetAxisMappingStrategy' => [qw/opaque int/] => 'void');
1448 0 $ffi->attach('OSRGetDataAxisToSRSAxisMapping' => [qw/opaque int*/] => 'int*');
1449 0 $ffi->attach('OSRSetDataAxisToSRSAxisMapping' => [qw/opaque int int*/] => 'int');
1450 0 $ffi->attach('OSRSetACEA' => [qw/opaque double double double double double double/] => 'int');
1451 0 $ffi->attach('OSRSetAE' => [qw/opaque double double double double/] => 'int');
1452 0 $ffi->attach('OSRSetBonne' => [qw/opaque double double double double/] => 'int');
1453 0 $ffi->attach('OSRSetCEA' => [qw/opaque double double double double/] => 'int');
1454 0 $ffi->attach('OSRSetCS' => [qw/opaque double double double double/] => 'int');
1455 0 $ffi->attach('OSRSetEC' => [qw/opaque double double double double double double/] => 'int');
1456 0 $ffi->attach('OSRSetEckert' => [qw/opaque int double double double/] => 'int');
1457 0 $ffi->attach('OSRSetEckertIV' => [qw/opaque double double double/] => 'int');
1458 0 $ffi->attach('OSRSetEckertVI' => [qw/opaque double double double/] => 'int');
1459 0 $ffi->attach('OSRSetEquirectangular' => [qw/opaque double double double double/] => 'int');
1460 0 $ffi->attach('OSRSetEquirectangular2' => [qw/opaque double double double double double/] => 'int');
1461 0 $ffi->attach('OSRSetGS' => [qw/opaque double double double/] => 'int');
1462 0 $ffi->attach('OSRSetGH' => [qw/opaque double double double/] => 'int');
1463 0 $ffi->attach('OSRSetIGH' => [qw/opaque/] => 'int');
1464 0 $ffi->attach('OSRSetGEOS' => [qw/opaque double double double double/] => 'int');
1465 0 $ffi->attach('OSRSetGaussSchreiberTMercator' => [qw/opaque double double double double double/] => 'int');
1466 0 $ffi->attach('OSRSetGnomonic' => [qw/opaque double double double double/] => 'int');
1467 0 $ffi->attach('OSRSetHOM' => [qw/opaque double double double double double double double/] => 'int');
1468 0 $ffi->attach('OSRSetHOMAC' => [qw/opaque double double double double double double double/] => 'int');
1469 0 $ffi->attach('OSRSetHOM2PNO' => [qw/opaque double double double double double double double double/] => 'int');
1470 0 $ffi->attach('OSRSetIWMPolyconic' => [qw/opaque double double double double double/] => 'int');
1471 0 $ffi->attach('OSRSetKrovak' => [qw/opaque double double double double double double double/] => 'int');
1472 0 $ffi->attach('OSRSetLAEA' => [qw/opaque double double double double/] => 'int');
1473 0 $ffi->attach('OSRSetLCC' => [qw/opaque double double double double double double/] => 'int');
1474 0 $ffi->attach('OSRSetLCC1SP' => [qw/opaque double double double double double/] => 'int');
1475 0 $ffi->attach('OSRSetLCCB' => [qw/opaque double double double double double double/] => 'int');
1476 0 $ffi->attach('OSRSetMC' => [qw/opaque double double double double/] => 'int');
1477 0 $ffi->attach('OSRSetMercator' => [qw/opaque double double double double double/] => 'int');
1478 0 $ffi->attach('OSRSetMercator2SP' => [qw/opaque double double double double double/] => 'int');
1479 0 $ffi->attach('OSRSetMollweide' => [qw/opaque double double double/] => 'int');
1480 0 $ffi->attach('OSRSetNZMG' => [qw/opaque double double double double/] => 'int');
1481 0 $ffi->attach('OSRSetOS' => [qw/opaque double double double double double/] => 'int');
1482 0 $ffi->attach('OSRSetOrthographic' => [qw/opaque double double double double/] => 'int');
1483 0 $ffi->attach('OSRSetPolyconic' => [qw/opaque double double double double/] => 'int');
1484 0 $ffi->attach('OSRSetPS' => [qw/opaque double double double double double/] => 'int');
1485 0 $ffi->attach('OSRSetRobinson' => [qw/opaque double double double/] => 'int');
1486 0 $ffi->attach('OSRSetSinusoidal' => [qw/opaque double double double/] => 'int');
1487 0 $ffi->attach('OSRSetStereographic' => [qw/opaque double double double double double/] => 'int');
1488 0 $ffi->attach('OSRSetSOC' => [qw/opaque double double double double/] => 'int');
1489 0 $ffi->attach('OSRSetTM' => [qw/opaque double double double double double/] => 'int');
1490 0 $ffi->attach('OSRSetTMVariant' => [qw/opaque string double double double double double/] => 'int');
1491 0 $ffi->attach('OSRSetTMG' => [qw/opaque double double double double/] => 'int');
1492 0 $ffi->attach('OSRSetTMSO' => [qw/opaque double double double double double/] => 'int');
1493 0 $ffi->attach('OSRSetTPED' => [qw/opaque double double double double double double/] => 'int');
1494 0 $ffi->attach('OSRSetVDG' => [qw/opaque double double double/] => 'int');
1495 0 $ffi->attach('OSRSetWagner' => [qw/opaque int double double double/] => 'int');
1496 0 $ffi->attach('OSRSetQSC' => [qw/opaque double double/] => 'int');
1497 0 $ffi->attach('OSRSetSCH' => [qw/opaque double double double double/] => 'int');
1498 0 $ffi->attach('OSRSetVerticalPerspective' => [qw/opaque double double double double double double/] => 'int');
1499 0 $ffi->attach('OSRCalcInvFlattening' => [qw/double double/] => 'double');
1500 0 $ffi->attach('OSRCalcSemiMinorFromInvFlattening' => [qw/double double/] => 'double');
1501 0 $ffi->attach('OSRCleanup' => [] => 'void');
1502 0 $ffi->attach('OSRGetCRSInfoListFromDatabase' => [qw/string opaque int*/] => 'opaque');
1503 0 $ffi->attach('OSRDestroyCRSInfoList' => [qw/opaque/] => 'void');
1504 0 $ffi->attach('OCTNewCoordinateTransformation' => [qw/opaque opaque/] => 'opaque');
1505 0 $ffi->attach('OCTNewCoordinateTransformationOptions' => [] => 'opaque');
1506 0 $ffi->attach('OCTCoordinateTransformationOptionsSetOperation' => [qw/opaque string int/] => 'int');
1507 0 $ffi->attach('OCTCoordinateTransformationOptionsSetAreaOfInterest' => [qw/opaque double double double double/] => 'int');
1508 0 $ffi->attach('OCTCoordinateTransformationOptionsSetDesiredAccuracy' => [qw/opaque double/] => 'int');
1509 0 $ffi->attach('OCTCoordinateTransformationOptionsSetBallparkAllowed' => [qw/opaque int/] => 'int');
1510 0 $ffi->attach('OCTDestroyCoordinateTransformationOptions' => [qw/opaque/] => 'void');
1511 0 $ffi->attach('OCTNewCoordinateTransformationEx' => [qw/opaque opaque opaque/] => 'opaque');
1512 0 $ffi->attach('OCTClone' => [qw/opaque/] => 'opaque');
1513 0 $ffi->attach('OCTGetSourceCS' => [qw/opaque/] => 'opaque');
1514 0 $ffi->attach('OCTGetTargetCS' => [qw/opaque/] => 'opaque');
1515 0 $ffi->attach('OCTGetInverse' => [qw/opaque/] => 'opaque');
1516 0 $ffi->attach('OCTDestroyCoordinateTransformation' => [qw/opaque/] => 'void');
1517 0 $ffi->attach('OCTTransform' => [qw/opaque int double[] double[] double[]/] => 'int');
1518 0 $ffi->attach('OCTTransformEx' => [qw/opaque int double[] double[] double[] int[]/] => 'int');
1519 0 $ffi->attach('OCTTransform4D' => [qw/opaque int double[] double[] double[] double[] int[]/] => 'int');
1520 0 $ffi->attach('OCTTransform4DWithErrorCodes' => [qw/opaque int double[] double[] double[] double[] int[]/] => 'int');
1521 0 $ffi->attach('OCTTransformBounds' => [qw/opaque double double double double double[] double[] double[] double[] int/] => 'int');
1522 # from apps/gdal_utils.h
1523 0 $ffi->attach('GDALInfoOptionsNew' => [qw/opaque opaque/] => 'opaque');
1524 0 $ffi->attach('GDALInfoOptionsFree' => [qw/opaque/] => 'void');
1525 0 $ffi->attach('GDALInfo' => [qw/opaque opaque/] => 'string');
1526 0 $ffi->attach('GDALTranslateOptionsNew' => [qw/opaque opaque/] => 'opaque');
1527 0 $ffi->attach('GDALTranslateOptionsFree' => [qw/opaque/] => 'void');
1528 0 $ffi->attach('GDALTranslateOptionsSetProgress' => [qw/opaque GDALProgressFunc opaque/] => 'void');
1529 0 $ffi->attach('GDALTranslate' => [qw/string opaque opaque int*/] => 'opaque');
1530 0 $ffi->attach('GDALWarpAppOptionsNew' => [qw/opaque opaque/] => 'opaque');
1531 0 $ffi->attach('GDALWarpAppOptionsFree' => [qw/opaque/] => 'void');
1532 0 $ffi->attach('GDALWarpAppOptionsSetProgress' => [qw/opaque GDALProgressFunc opaque/] => 'void');
1533 0 $ffi->attach('GDALWarpAppOptionsSetQuiet' => [qw/opaque int/] => 'void');
1534 0 $ffi->attach('GDALWarpAppOptionsSetWarpOption' => [qw/opaque string string/] => 'void');
1535 0 $ffi->attach('GDALWarp' => [qw/string opaque int opaque[] opaque int*/] => 'opaque');
1536 0 $ffi->attach('GDALVectorTranslateOptionsNew' => [qw/opaque opaque/] => 'opaque');
1537 0 $ffi->attach('GDALVectorTranslateOptionsFree' => [qw/opaque/] => 'void');
1538 0 $ffi->attach('GDALVectorTranslateOptionsSetProgress' => [qw/opaque GDALProgressFunc opaque/] => 'void');
1539 0 $ffi->attach('GDALVectorTranslate' => [qw/string opaque int opaque[] opaque int*/] => 'opaque');
1540 0 $ffi->attach('GDALDEMProcessingOptionsNew' => [qw/opaque opaque/] => 'opaque');
1541 0 $ffi->attach('GDALDEMProcessingOptionsFree' => [qw/opaque/] => 'void');
1542 0 $ffi->attach('GDALDEMProcessingOptionsSetProgress' => [qw/opaque GDALProgressFunc opaque/] => 'void');
1543 0 $ffi->attach('GDALDEMProcessing' => [qw/string opaque string string opaque int*/] => 'opaque');
1544 0 $ffi->attach('GDALNearblackOptionsNew' => [qw/opaque opaque/] => 'opaque');
1545 0 $ffi->attach('GDALNearblackOptionsFree' => [qw/opaque/] => 'void');
1546 0 $ffi->attach('GDALNearblackOptionsSetProgress' => [qw/opaque GDALProgressFunc opaque/] => 'void');
1547 0 $ffi->attach('GDALNearblack' => [qw/string opaque opaque opaque int*/] => 'opaque');
1548 0 $ffi->attach('GDALGridOptionsNew' => [qw/opaque opaque/] => 'opaque');
1549 0 $ffi->attach('GDALGridOptionsFree' => [qw/opaque/] => 'void');
1550 0 $ffi->attach('GDALGridOptionsSetProgress' => [qw/opaque GDALProgressFunc opaque/] => 'void');
1551 0 $ffi->attach('GDALGrid' => [qw/string opaque opaque int*/] => 'opaque');
1552 0 $ffi->attach('GDALRasterizeOptionsNew' => [qw/opaque opaque/] => 'opaque');
1553 0 $ffi->attach('GDALRasterizeOptionsFree' => [qw/opaque/] => 'void');
1554 0 $ffi->attach('GDALRasterizeOptionsSetProgress' => [qw/opaque GDALProgressFunc opaque/] => 'void');
1555 0 $ffi->attach('GDALRasterize' => [qw/string opaque opaque opaque int*/] => 'opaque');
1556 0 $ffi->attach('GDALBuildVRTOptionsNew' => [qw/opaque opaque/] => 'opaque');
1557 0 $ffi->attach('GDALBuildVRTOptionsFree' => [qw/opaque/] => 'void');
1558 0 $ffi->attach('GDALBuildVRTOptionsSetProgress' => [qw/opaque GDALProgressFunc opaque/] => 'void');
1559 0 $ffi->attach('GDALBuildVRT' => [qw/string int opaque[] opaque opaque int*/] => 'opaque');
1560 0 $ffi->attach('GDALMultiDimInfoOptionsNew' => [qw/opaque opaque/] => 'opaque');
1561 0 $ffi->attach('GDALMultiDimInfoOptionsFree' => [qw/opaque/] => 'void');
1562 0 $ffi->attach('GDALMultiDimInfo' => [qw/opaque opaque/] => 'string');
1563 0 $ffi->attach('GDALMultiDimTranslateOptionsNew' => [qw/opaque opaque/] => 'opaque');
1564 0 $ffi->attach('GDALMultiDimTranslateOptionsFree' => [qw/opaque/] => 'void');
1565 0 $ffi->attach('GDALMultiDimTranslateOptionsSetProgress' => [qw/opaque GDALProgressFunc opaque/] => 'void');
1566 0 $ffi->attach('GDALMultiDimTranslate' => [qw/string opaque int uint64* opaque int*/] => 'opaque');
1567 0 $ffi->attach('GDALVectorInfoOptionsNew' => [qw/opaque opaque/] => 'opaque');
1568 0 $ffi->attach('GDALVectorInfoOptionsFree' => [qw/opaque/] => 'void');
1569 0 $ffi->attach('GDALVectorInfo' => [qw/opaque opaque/] => 'string');
1570 # end of generated code
1571
1572 0 ▶ if ($gdal eq 'Alien::gdal' and versioncmp($gdal->version, '2.3.1') <= 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($gdal eq 'Alien::gdal' and &versioncmp(scalar $gdal->version, '2.3.1') <= 0) { } 0 0 0
Condition0%0/3
$gdal eq "Alien::gdal" and &versioncmp(scalar $gdal->version, "2.3.1") <= 0
!ll&&!rl&&r
000
MC/DC0%0/2
$gdal eq "Alien::gdal" and &versioncmp(scalar $gdal->version, "2.3.1") <= 0
$gdal eq "Alien::gdal" &versioncmp(scalar $gdal->version, "2.3.1") <= 0
Truth table0%0/3
A and B
A= $gdal eq "Alien::gdal"B= &versioncmp(scalar $gdal->version, "2.3.1") <= 0
ABresult
0X0
100
111
1573 # we do not use Alien::gdal->data_dir since it issues warnings due to GDAL bug
1574 0 my $pc = PkgConfig->find('gdal');
1575 0 ▶ if ($pc->errmsg) {
Branch: 1 branch
BranchTrueFalseTotal
if ($pc->errmsg) 0 0 0
1576 0 my $dir = Alien::gdal->dist_dir;
1577 0 my %options = (search_path_override => ["$dir/lib/pkgconfig", "$dir/lib64/pkgconfig"]);
1578 0 $pc = PkgConfig->find('gdal', %options);
1579 }
1580 0 ▶ if ($pc->errmsg) {
Branch: 1 branch
BranchTrueFalseTotal
if ($pc->errmsg) { } 0 0 0
1581 0 warn $pc->errmsg;
1582 } else {
1583 0 my $dir = $pc->get_var('datadir');
1584 # this gdal.pc bug was fixed in GDAL 2.3.1
1585 # we just hope the one configuring GDAL did not change it to something that ends '/data'
1586 0 $dir =~ s/\/data$//;
1587 0 ▶ if (opendir(my $dh, $dir)) {
Branch: 1 branch
BranchTrueFalseTotal
if (opendir my $dh, $dir) { } 0 0 0
1588 0 CPLSetConfigOption(GDAL_DATA => $dir);
1589 } else {
1590 0 my $dist_data_dir = Alien::gdal->dist_dir . '/share/gdal';
1591 0 ▶ if (-d $dist_data_dir) {
Branch: 1 branch
BranchTrueFalseTotal
if (-d $dist_data_dir) { } 0 0 0
1592 0 CPLSetConfigOption(GDAL_DATA => $dist_data_dir);
1593 }
1594 else {
1595 0 warn "GDAL data directory ($dir) doesn't exist. Maybe Alien::gdal is not installed?";
1596 }
1597 }
1598 }
1599 } else {
1600 0 CPLSetConfigOption(GDAL_DATA => $gdal->data_dir);
1601 }
1602
1603 0 $instance = {};
1604 0 $instance->{ffi} = $ffi;
1605 0 $instance->{gdal} = $gdal;
1606 0 SetErrorHandling();
1607 0 GDALAllRegister();
1608 0 return bless $instance, $class;
1609 }
1610
1611 sub get_instance {
1612 0 ▶ my $class = shift;
Subroutine get_instance: not called CC=2 SCAR=17.9
1613 0 ▶ $instance = $class->new() unless $instance;
Branch: 1 branch
BranchTrueFalseTotal
unless $instance 0 0 0
1614 0 return $instance;
1615 }
1616
1617 sub DESTROY {
1618 0 ▶ UnsetErrorHandling();
Subroutine DESTROY: not called CC=1 SCAR=6.9
1619 }
1620
1621 sub GetVersionInfo {
1622 1 ▶ my $request = shift // 'VERSION_NUM';
Subroutine GetVersionInfo: called CC=5 SCAR=27.1
Condition50%1/2
shift() // "VERSION_NUM"
l!l
10
MC/DC0%0/1
shift() // "VERSION_NUM"
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
1623 1 ▶ if ($request eq 'SEMANTIC') {
Branch: 1 branch
BranchTrueFalseTotal
if ($request eq "SEMANTIC") 1 0 1
1624 1 my $version = GDALVersionInfo('VERSION_NUM') / 100;
1625 0 my $ret = '';
1626 0 ▶ while ($version > 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($version > 0) 0 0 0
1627 0 my $v = $version % 100;
1628 0 ▶ $ret = ".$ret" if $ret ne '';
Branch: 1 branch
BranchTrueFalseTotal
if $ret ne "" 0 0 0
1629 0 $ret = "$v$ret";
1630 0 $version = int($version/100);
1631 }
1632 0 return $ret;
1633 }
1634 0 return GDALVersionInfo($request);
1635 }
1636
1637 sub GetDriver {
1638 0 ▶ my ($i) = @_;
Subroutine GetDriver: not called CC=4 SCAR=30.0
1639 0 ▶ my $d = isint($i) ? GDALGetDriver($i) : GDALGetDriverByName($i);
Branch: 1 branch
BranchTrueFalseTotal
isint($i) ? : 0 0 0
1640 0 ▶ confess error_msg() // "Driver '$i' not found." unless $d;
Branch: 1 branch
BranchTrueFalseTotal
unless $d 0 0 0
Condition0%0/2
error_msg() // "Driver '${i}' not found."
l!l
00
MC/DC0%0/1
error_msg() // "Driver '${i}' not found."
error_msg()
Truth table0%0/2
A
A= error_msg()
Aresult
11
00
1641 0 return bless \$d, 'Geo::GDAL::FFI::Driver';
1642 }
1643
1644 sub GetDrivers {
1645 0 ▶ my @drivers;
Subroutine GetDrivers: not called CC=2 SCAR=17.9
1646 0 for my $i (0..GDALGetDriverCount()-1) {
1647 0 push @drivers, GetDriver($i);
1648 }
1649 0 return @drivers;
1650 }
1651
1652 sub IdentifyDriver {
1653 0 ▶ my ($filename, $args) = @_;
Subroutine IdentifyDriver: not called CC=7 SCAR=40.3
1654 0 my $flags = 0;
1655 0 ▶ my $a = $args->{Flags} // [];
Condition0%0/2
$args->{"Flags"} // []
l!l
00
MC/DC0%0/1
$args->{"Flags"} // []
$args->{"Flags"}
Truth table0%0/2
A
A= $args->{"Flags"}
Aresult
11
00
1656 0 for my $f (@$a) {
1657 0 print "$f\n";
1658 0 $flags |= $open_flags{$f};
1659 }
1660 0 print "$flags\n";
1661 0 my $drivers = 0;
1662 0 for my $o (@{$args->{AllowedDrivers}}) {
1663 0 $drivers = Geo::GDAL::FFI::CSLAddString($drivers, $o);
1664 }
1665 0 my $list = 0;
1666 0 for my $o (@{$args->{FileList}}) {
1667 0 $list = Geo::GDAL::FFI::CSLAddString($list, $o);
1668 }
1669 0 my $d;
1670 0 ▶ if ($flags or $drivers) {
Branch: 1 branch
BranchTrueFalseTotal
if ($flags or $drivers) { } 0 0 0
Condition0%0/3
$flags or $drivers
l!l&&r!l&&!r
000
MC/DC0%0/2
$flags or $drivers
$flags $drivers
Truth table0%0/3
A or B
A= $flagsB= $drivers
ABresult
1X1
011
000
1671 0 $d = GDALIdentifyDriverEx($filename, $flags, $drivers, $list);
1672 } else {
1673 0 $d = GDALIdentifyDriver($filename, $list);
1674 }
1675 0 Geo::GDAL::FFI::CSLDestroy($drivers);
1676 0 Geo::GDAL::FFI::CSLDestroy($list);
1677 0 return bless \$d, 'Geo::GDAL::FFI::Driver';
1678 }
1679
1680 sub Open {
1681 0 ▶ my ($name, $args) = @_;
Subroutine Open: not called CC=10 SCAR=47.0
1682 0 ▶ $name //= '';
Condition0%0/2
$name //= ""
l!l
00
MC/DC0%0/1
$name //= ""
$name
Truth table0%0/2
A
A= $name
Aresult
11
00
1683 0 ▶ $args //= {};
Condition0%0/2
$args //= {}
l!l
00
MC/DC0%0/1
$args //= {}
$args
Truth table0%0/2
A
A= $args
Aresult
11
00
1684 0 my $flags = 0;
1685 0 ▶ my $a = $args->{Flags} // [];
Condition0%0/2
$args->{"Flags"} // []
l!l
00
MC/DC0%0/1
$args->{"Flags"} // []
$args->{"Flags"}
Truth table0%0/2
A
A= $args->{"Flags"}
Aresult
11
00
1686 0 for my $f (@$a) {
1687 0 $flags |= $open_flags{$f};
1688 }
1689 0 my $drivers = 0;
1690 0 for my $o (@{$args->{AllowedDrivers}}) {
1691 0 $drivers = Geo::GDAL::FFI::CSLAddString($drivers, $o);
1692 }
1693 0 my $options = 0;
1694 0 for my $o (@{$args->{Options}}) {
1695 0 $options = Geo::GDAL::FFI::CSLAddString($options, $o);
1696 }
1697 0 my $files = 0;
1698 0 for my $o (@{$args->{SiblingFiles}}) {
1699 0 $files = Geo::GDAL::FFI::CSLAddString($files, $o);
1700 }
1701 0 my $ds = GDALOpenEx($name, $flags, $drivers, $options, $files);
1702 0 Geo::GDAL::FFI::CSLDestroy($drivers);
1703 0 Geo::GDAL::FFI::CSLDestroy($options);
1704 0 Geo::GDAL::FFI::CSLDestroy($files);
1705 0 ▶ if (@errors) {
Branch: 1 branch
BranchTrueFalseTotal
if (@Geo::GDAL::FFI::errors) 0 0 0
1706 0 my $msg = join("\n", @errors);
1707 0 @errors = ();
1708 0 confess $msg;
1709 }
1710 0 ▶ unless ($ds) { # no VERBOSE_ERROR in options and fail
Branch: 1 branch
BranchTrueFalseTotal
unless ($ds) 0 0 0
1711 0 confess "Open failed for '$name'. Hint: add VERBOSE_ERROR to open_flags.";
1712 }
1713 0 return bless \$ds, 'Geo::GDAL::FFI::Dataset';
1714 }
1715
1716 sub write {
1717 0 ▶ print STDOUT $_[0];
Subroutine write: not called CC=1 SCAR=6.9
1718 }
1719
1720 ▶sub close {
Subroutine close: not called CC=1 SCAR=0.0
1721 }
1722
1723 sub SetWriter {
1724 0 ▶ my ($self, $writer) = @_;
Subroutine SetWriter: not called CC=4 SCAR=30.0
1725 0 ▶ $writer = $self unless $writer;
Branch: 1 branch
BranchTrueFalseTotal
unless $writer 0 0 0
1726 0 my $w = $writer->can('write');
1727 0 my $c = $writer->can('close');
1728 0 ▶ confess "$writer must be able to write and close." unless $w && $c;
Branch: 1 branch
BranchTrueFalseTotal
unless $w and $c 0 0 0
Condition0%0/3
$w and $c
!ll&&!rl&&r
000
MC/DC0%0/2
$w and $c
$w $c
Truth table0%0/3
A and B
A= $wB= $c
ABresult
0X0
100
111
1729 #$self->{write} = $w;
1730 0 $self->{close} = $c;
1731 $self->{writer} = $self->{ffi}->closure(sub {
1732 0 ▶ my ($buf, $size, $count, $stream) = @_;
Subroutine __ANON__: not called CC=2 SCAR=17.9
1733 0 ▶ my $retval = $w->(buffer_to_scalar($buf, $size*$count)) // 1;
Condition0%0/2
&$w(&buffer_to_scalar($buf, $size * $count)) // 1
l!l
00
MC/DC0%0/1
&$w(&buffer_to_scalar($buf, $size * $count)) // 1
&$w(&buffer_to_scalar($buf, $size * $count))
Truth table0%0/2
A
A= &$w(&buffer_to_scalar($buf, $size * $count))
Aresult
11
00
1734 0 return $retval;
1735 0 });
1736 0 VSIStdoutSetRedirection($self->{writer}, 0);
1737 }
1738
1739 sub CloseWriter {
1740 0 ▶ my $self = shift;
Subroutine CloseWriter: not called CC=2 SCAR=17.9
1741 0 ▶ $self->{close}->() if $self->{close};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"close"} 0 0 0
1742 0 $self->SetWriter;
1743 }
1744
1745 sub get_importer {
1746 0 ▶ my ($self, $format) = @_;
Subroutine get_importer: not called CC=2 SCAR=17.9
1747 0 my $importer = $self->can('OSRImportFrom' . $format);
1748 0 ▶ confess "Spatial reference importer for format '$format' not found!" unless $importer;
Branch: 1 branch
BranchTrueFalseTotal
unless $importer 0 0 0
1749 0 return $importer;
1750 }
1751
1752 sub get_exporter {
1753 0 ▶ my ($self, $format) = @_;
Subroutine get_exporter: not called CC=2 SCAR=17.9
1754 0 my $exporter = $self->can('OSRExportTo' . $format);
1755 0 ▶ confess "Spatial reference exporter for format '$format' not found!" unless $exporter;
Branch: 1 branch
BranchTrueFalseTotal
unless $exporter 0 0 0
1756 0 return $exporter;
1757 }
1758
1759 sub get_setter {
1760 0 ▶ my ($self, $proj) = @_;
Subroutine get_setter: not called CC=2 SCAR=17.9
1761 0 my $setter = $self->can('OSRSet' . $proj);
1762 0 ▶ confess "Parameter setter for projection '$proj' not found!" unless $setter;
Branch: 1 branch
BranchTrueFalseTotal
unless $setter 0 0 0
1763 0 return $setter;
1764 }
1765
1766 sub HaveGEOS {
1767 0 ▶ my $t = $geometry_types{Point};
Subroutine HaveGEOS: not called CC=2 SCAR=17.9
1768 0 my $g = OGR_G_CreateGeometry($t);
1769 0 OGR_G_SetPoint($g, 0, 0, 0, 0);
1770 0 my $c = OGR_G_CreateGeometry($t);
1771 0 my $n = @errors;
1772 0 OGR_G_Centroid($g, $c);
1773 0 ▶ if (@errors > $n) {
Branch: 1 branch
BranchTrueFalseTotal
if (@Geo::GDAL::FFI::errors > $n) { } 0 0 0
1774 0 pop @errors;
1775 0 return undef;
1776 } else {
1777 0 return 1;
1778 }
1779 }
1780
1781 sub SetConfigOption {
1782 0 ▶ my ($key, $default) = @_;
Subroutine SetConfigOption: not called CC=1 SCAR=6.9
1783 0 CPLSetConfigOption($key, $default);
1784 }
1785
1786 sub GetConfigOption {
1787 0 ▶ my ($key, $default) = @_;
Subroutine GetConfigOption: not called CC=1 SCAR=6.9
1788 0 return CPLGetConfigOption($key, $default);
1789 }
1790
1791 sub FindFile {
1792 0 ▶ my ($class, $basename) = @_ == 2 ? @_ : ('', @_);
Subroutine FindFile: not called CC=4 SCAR=30.0
Branch: 1 branch
BranchTrueFalseTotal
@_ == 2 ? : 0 0 0
1793 0 ▶ $class //= '';
Condition0%0/2
$class //= ""
l!l
00
MC/DC0%0/1
$class //= ""
$class
Truth table0%0/2
A
A= $class
Aresult
11
00
1794 0 ▶ $basename //= '';
Condition0%0/2
$basename //= ""
l!l
00
MC/DC0%0/1
$basename //= ""
$basename
Truth table0%0/2
A
A= $basename
Aresult
11
00
1795 0 return CPLFindFile($class, $basename);
1796 }
1797
1798 sub PushFinderLocation {
1799 0 ▶ my ($location) = @_;
Subroutine PushFinderLocation: not called CC=2 SCAR=17.9
1800 0 ▶ $location //= '';
Condition0%0/2
$location //= ""
l!l
00
MC/DC0%0/1
$location //= ""
$location
Truth table0%0/2
A
A= $location
Aresult
11
00
1801 0 CPLPushFinderLocation($location);
1802 }
1803
1804 sub PopFinderLocation {
1805 0 ▶ CPLPopFinderLocation();
Subroutine PopFinderLocation: not called CC=1 SCAR=6.9
1806 }
1807
1808 sub FinderClean {
1809 0 ▶ CPLFinderClean();
Subroutine FinderClean: not called CC=1 SCAR=6.9
1810 }
1811
1812 sub get_memory_driver {
1813 13 ▶ use Sort::Versions qw /versioncmp/;
Subroutine BEGIN: called CC=1 SCAR=0.0
1814 1 ▶ state $gdal_version = GetVersionInfo('SEMANTIC');
Subroutine get_memory_driver: called CC=2 SCAR=14.0
1815 0 ▶ state $driver_name = versioncmp ($gdal_version, '3.11') >= 0 ? 'MEM' : 'Memory';
Branch: 1 branch
BranchTrueFalseTotal
&versioncmp($gdal_version, '3.11') >= 0 ? : 0 0 0
1816 0 return $driver_name;
1817 }
1818
1819 BEGIN {
1820 13 ▶ require PkgConfig;
Subroutine BEGIN: called CC=2 SCAR=7.3
1821 13 PkgConfig->import;
1822 13 my $gdal;
1823 13 eval {
1824 13 require Geo::GDAL::gdal;
1825 0 $gdal = Geo::GDAL::gdal->new();
1826 };
1827 13 ▶ if ($@) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) 13 0 13
1828 13 require Alien::gdal;
1829 13 ▶ no strict 'subs';
Subroutine BEGIN: called CC=1 SCAR=0.0
1830 0 $gdal = Alien::gdal;
1831 }
1832 0 $instance = Geo::GDAL::FFI->new($gdal);
1833 }
1834
1835 {
1836 # avoid some used only once warnings
1837 local $FFI::Platypus::keep;
1838 local $FFI::Platypus::TypeParser::ffi_type;
1839 }
1840
1841 #
1842 # The next two subs are required for thread-safety, because GDAL error handling must be set per thread.
1843 # So, it is disabled just before starting a new thread and renabled after in the thread.
1844 # See perlmod and issue #53 for more information.
1845 #
1846
1847 sub CLONE {
1848 SetErrorHandling();
1849 }
1850
1851 sub CLONE_SKIP {
1852 UnsetErrorHandling();
1853 return 0;
1854 }
1855
1856 1;
1857
1858 =pod
1859
1860 =encoding UTF-8
1861
1862 =head1 NAME
1863
1864 Geo::GDAL::FFI - A foreign function interface to GDAL
1865
1866 =head1 SYNOPSIS
1867
1868 This is an example of creating a vector dataset.
1869
1870 use Geo::GDAL::FFI qw/GetDriver/;
1871
1872 my $sr = Geo::GDAL::FFI::SpatialReference->new(EPSG => 3067);
1873 my $layer = GetDriver('ESRI Shapefile')
1874 ->Create('test.shp')
1875 ->CreateLayer({
1876 Name => 'test',
1877 SpatialReference => $sr,
1878 GeometryType => 'Point',
1879 Fields => [
1880 {
1881 Name => 'name',
1882 Type => 'String'
1883 }
1884 ]
1885 });
1886 my $f = Geo::GDAL::FFI::Feature->new($layer->GetDefn);
1887 $f->SetField(name => 'a');
1888 my $g = Geo::GDAL::FFI::Geometry->new('Point');
1889 $g->SetPoint(1, 2);
1890 $f->SetGeomField($g);
1891 $layer->CreateFeature($f);
1892
1893 This is an example of reading a vector dataset.
1894
1895 use Geo::GDAL::FFI qw/Open/;
1896
1897 my $layer = Open('test.shp')->GetLayer;
1898 $layer->ResetReading;
1899 while (my $feature = $layer->GetNextFeature) {
1900 my $value = $feature->GetField('name');
1901 my $geom = $feature->GetGeomField;
1902 say $value, ' ', $geom->AsText;
1903 }
1904
1905 This is an example of creating a raster dataset.
1906
1907 use Geo::GDAL::FFI qw/GetDriver/;
1908
1909 my $tiff = GetDriver('GTiff')->Create('test.tiff', 3, 2);
1910 my $ogc_wkt =
1911 'GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS84",6378137,298.257223563,'.
1912 'AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,'.
1913 'AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,'.
1914 'AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]';
1915 $tiff->SetProjectionString($ogc_wkt);
1916 my $transform = [10,2,0,20,0,3];
1917 $tiff->SetGeoTransform($transform);
1918 my $data = [[0,1,2],[3,4,5]];
1919 $tiff->GetBand->Write($data);
1920
1921 This is an example of reading a raster dataset. Note that using L<PDL>
1922 and L<MCE::Shared> can greatly reduce the time needed to process large
1923 raster datasets.
1924
1925 use Geo::GDAL::FFI qw/Open/;
1926
1927 my $band = Open($ARGV[0])->GetBand;
1928 my ($w_band, $h_band) = $band->GetSize;
1929 my ($w_block, $h_block) = $band->GetBlockSize;
1930 my $nodata = $band->GetNoDataValue;
1931 my ($xoff, $yoff) = (0,0);
1932 my ($min, $max);
1933
1934 while (1) {
1935 if ($xoff >= $w_band) {
1936 $xoff = 0;
1937 $yoff += $h_block;
1938 last if $yoff >= $h_band;
1939 }
1940 my $w_real = $w_band - $xoff;
1941 $w_real = $w_block if $w_real > $w_block;
1942 my $h_real = $h_band - $yoff;
1943 $h_real = $h_block if $h_real > $h_block;
1944
1945 my $data = $band->Read($xoff, $yoff, $w_real, $h_real);
1946
1947 for my $y (0..$#$data) {
1948 my $row = $data->[$y];
1949 for my $x (0..$#$row) {
1950 my $value = $row->[$x];
1951 next if defined $nodata && $value == $nodata;
1952 $min = $value if !defined $min || $value < $min;
1953 $max = $value if !defined $max || $value > $max;
1954 }
1955 }
1956
1957 $xoff += $w_block;
1958 }
1959
1960 say "min = $min, max = $max";
1961
1962 =head1 DESCRIPTION
1963
1964 This is a foreign function interface to the GDAL geospatial data
1965 access library.
1966
1967 =head1 IMPORTABLE FUNCTIONS
1968
1969 The most important importable functions are GetDriver and Open, which
1970 return a driver and a dataset objects respectively. GetDrivers returns
1971 all available drivers as objects.
1972
1973 Other importable functions include error handling configuration
1974 (SetErrorHandling and UnsetErrorHandling), functions that return lists
1975 of strings that are used in methods (Capabilities, OpenFlags,
1976 DataTypes, ResamplingMethods, FieldTypes, FieldSubtypes,
1977 Justifications, ColorInterpretations, GeometryTypes, GeometryFormats,
1978 GridAlgorithms), also functions GetVersionInfo, HaveGEOS,
1979 SetConfigOption, GetConfigOption, FindFile, PushFinderLocation,
1980 PopFinderLocation, and FinderClean can be imported.
1981
1982 :all imports all above functions.
1983
1984 =head2 GetVersionInfo
1985
1986 my $info = GetVersionInfo($request);
1987
1988 Returns the version information from the underlying GDAL
1989 library. $request is optional and by default 'VERSION_NUM'.
1990
1991 =head2 GetDriver
1992
1993 my $driver = GetDriver($name);
1994
1995 Returns the specific driver object.
1996
1997 =head2 GetDrivers
1998
1999 Returns a list of all available driver objects.
2000
2001 =head2 Open
2002
2003 my $dataset = Open($name, {Flags => [qw/READONLY/], ...});
2004
2005 Open a dataset. $name is the name of the dataset. Named arguments are
2006 the following.
2007
2008 =over 4
2009
2010 =item C<Flags>
2011
2012 Optional, default is a reference to an empty array. Note that some
2013 drivers can open both raster and vector datasets.
2014
2015 =item C<AllowedDrivers>
2016
2017 Optional, default is all drivers. Use a reference to an array of
2018 driver names to limit which drivers to test.
2019
2020 =item C<SiblingFiles>
2021
2022 Optional, default is to probe the file system. You may use a reference
2023 to an array of auxiliary file names.
2024
2025 =item C<Options>
2026
2027 Optional, a reference to an array of driver specific open
2028 options. Consult the main GDAL documentation for open options.
2029
2030 =back
2031
2032 =head2 Capabilities
2033
2034 Returns the list of capabilities (strings) a GDAL major object
2035 (Driver, Dataset, Band, or Layer in Geo::GDAL::FFI) can have.
2036
2037 =head2 OpenFlags
2038
2039 Returns the list of opening flags to be used in the Open method.
2040
2041 =head2 DataTypes
2042
2043 Returns the list of raster cell data types to be used in e.g. the
2044 CreateDataset method of the Driver class.
2045
2046 =head2 FieldTypes
2047
2048 Returns the list of field types.
2049
2050 =head2 FieldSubtypes
2051
2052 Returns the list of field subtypes.
2053
2054 =head2 Justifications
2055
2056 Returns the list of field justifications.
2057
2058 =head2 ColorInterpretations
2059
2060 Returns the list of color interpretations.
2061
2062 =head2 GeometryTypes
2063
2064 Returns the list of geometry types.
2065
2066 =head2 SetErrorHandling
2067
2068 Set a Perl function to catch errors reported within GDAL with
2069 CPLError. The errors are collected into @Geo::GDAL::FFI::errors and
2070 confessed if a method fails. This is the default.
2071
2072 =head2 UnsetErrorHandling
2073
2074 Unset the Perl function to catch GDAL errors. If no other error
2075 handler is set, GDAL prints the errors into stderr.
2076
2077 =head1 NOTES ABOUT THREAD-SAFETY
2078
2079 This module is thread-safe provided the error handling is taken care of.
2080 To ensure thread-safety GDAL error handling is automatically disabled
2081 before creating a new thread and re-enabled after that in the just
2082 created thread. The main thread needs to re-enable it via C<SetErrorHandling>,
2083 after all thread creations and before eventually using any GDAL function. This
2084 must be done explicitly in the main thread because there is no way
2085 to do that automatically as for other threads.
2086
2087 =head1 METHODS
2088
2089 =head2 get_instance
2090
2091 my $gdal = Geo::GDAL::FFI->get_instance;
2092
2093 Obtain the Geo::GDAL::FFI singleton object. The object is usually not needed.
2094
2095 =head1 LICENSE
2096
2097 This software is released under the Artistic License. See
2098 L<perlartistic>.
2099
2100 =head1 AUTHOR
2101
2102 Ari Jolma - Ari.Jolma at gmail.com
2103
2104 =head1 SEE ALSO
2105
2106 L<Geo::GDAL::FFI::Object>
2107
2108 L<Geo::GDAL::FFI::Driver>
2109
2110 L<Geo::GDAL::FFI::SpatialReference>
2111
2112 L<Geo::GDAL::FFI::Dataset>
2113
2114 L<Geo::GDAL::FFI::Band>
2115
2116 L<Geo::GDAL::FFI::FeatureDefn>
2117
2118 L<Geo::GDAL::FFI::FieldDefn>
2119
2120 L<Geo::GDAL::FFI::GeomFieldDefn>
2121
2122 L<Geo::GDAL::FFI::Layer>
2123
2124 L<Geo::GDAL::FFI::Feature>
2125
2126 L<Geo::GDAL::FFI::Geometry>
2127
2128 L<Geo::GDAL::FFI::VSI>
2129
2130 L<Geo::GDAL::FFI::VSI::File>
2131
2132 L<Alien::gdal>, L<FFI::Platypus>, L<http://www.gdal.org>
2133
2134 =cut
2135
2136 __END__;
« FFI/FieldDefn.pm ↑ Summary FFI/Object.pm »