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::FFI::SpatialReference - A spatial reference system in GDAL

Author

       Ari Jolma - Ari.Jolma at gmail.com

Description

License

       This software is released under the Artistic License. See perlartistic.

Methods

new
       Create a new SpatialReference object.

        my $sr = Geo::GDAL::FFI::SpatialReference->new('WKT here...');

       If only one argument is given, it is taken as the well known text (WKT) associated with the spatial
       reference system (SRS).

        my $sr = Geo::GDAL::FFI::SpatialReference->new(EPSG => 3067);

       If there are more than one argument, the first argument is taken as a format and the rest of the
       arguments are taken as arguments to the format. The list of formats known to GDAL (at the time of this
       writing) is EPSG, EPSGA, Wkt, Proj4, ESRI, PCI, USGS, XML, Dict, Panorama, Ozi, MICoordSys, ERM, Url.

   Export
        $sr->Export($format, @args);

       Export a SpatialReference object to a format. The list of formats known to GDAL (at the time of this
       writing) is Wkt, PrettyWkt, Proj4, PCI, USGS, XML, Panorama, MICoordSys, ERM.

   Set
        $sr->Set($proj, @args);

       Set projection parameters in a SpatialReference object. The list of projection parameters known to GDAL
       (at the time of this writing) is Axes, ACEA, AE, Bonne, CEA, CS, EC, Eckert, EckertIV, EckertVI,
       Equirectangular, Equirectangular2, GS, GH, IGH, GEOS, GaussSchreiberTMercator, Gnomonic, HOM, HOMAC,
       HOM2PNO, IWMPolyconic, Krovak, LAEA, LCC, LCC1SP, LCCB, MC, Mercator, Mercator2SP, Mollweide, NZMG, OS,
       Orthographic, Polyconic, PS, Robinson, Sinusoidal, Stereographic, SOC, TM, TMVariant, TMG, TMSO, TPED,
       VDG, Wagner, QSC, SCH.

Name

       Geo::GDAL::FFI::SpatialReference - A spatial reference system in GDAL

See Also

       Geo::GDAL::FFI

       Alien::gdal, FFI::Platypus, <http://www.gdal.org>

perl v5.40.0                                       2025-02-15              Geo::GDAL::FFI::SpatialReference(3pm)

Synopsis

See Also