logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Geo::GDAL - Perl extension for the GDAL library for geospatial data

Author

       Ari Jolma

Description

       This Perl module lets you to manage (read, analyse, write) geospatial data stored in several formats.

   EXPORT
       None by default.

Name

       Geo::GDAL - Perl extension for the GDAL library for geospatial data

Repository

       <https://trac.osgeo.org/gdal>

perl v5.34.0                                       2022-03-16                                     Geo::GDAL(3pm)

See Also

       The GDAL home page is <http://gdal.org/>

       The documentation of this module is written in Doxygen format. See
       <http://arijolma.org/Geo-GDAL/snapshot/>

Synopsis

         use Geo::GDAL;

         my $raster_file = shift @ARGV;

         my $raster_dataset = Geo::GDAL::Open($file);

         my $raster_data = $dataset->GetRasterBand(1)->ReadTile;

         my $vector_datasource = Geo::OGR::Open('./');

         my $vector_layer = $datasource->Layer('borders'); # e.g. a shapefile borders.shp in current directory

         $vector_layer->ResetReading();
         while (my $feature = $vector_layer->GetNextFeature()) {
             my $geometry = $feature->GetGeometry();
             my $value = $feature->GetField($field);
         }

See Also