1Geo::GDAL(3) User Contributed Perl Documentation Geo::GDAL(3)
2
3
4
6 Geo::GDAL - Perl extension for the GDAL library for geospatial data
7
9 use Geo::GDAL;
10
11 my $raster_file = shift @ARGV;
12
13 my $raster_dataset = Geo::GDAL::Open($file);
14
15 my $raster_data = $dataset->GetRasterBand(1)->ReadTile;
16
17 my $vector_datasource = Geo::OGR::Open('./');
18
19 my $vector_layer = $datasource->Layer('borders'); # e.g. a shapefile borders.shp in current directory
20
21 $vector_layer->ResetReading();
22 while (my $feature = $vector_layer->GetNextFeature()) {
23 my $geometry = $feature->GetGeometry();
24 my $value = $feature->GetField($field);
25 }
26
28 This Perl module lets you to manage (read, analyse, write) geospatial
29 data stored in several formats.
30
31 EXPORT
32 None by default.
33
35 The GDAL home page is <http://gdal.org/>
36
37 The documentation of this module is written in Doxygen format. See
38 <http://arijolma.org/Geo-GDAL/snapshot/>
39
41 Ari Jolma
42
44 Copyright (C) 2005- by Ari Jolma and GDAL bindings developers.
45
46 This library is free software; you can redistribute it and/or modify it
47 under the terms of MIT License
48
49 <https://opensource.org/licenses/MIT>
50
52 <https://trac.osgeo.org/gdal>
53
54
55
56perl v5.32.0 2021-01-05 Geo::GDAL(3)