Geo::G...erence(3pm)

πŸ“¦
version 0.16 Β· 4 versions
, in ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, welcome to the manual page for Geo::GDAL::FFI::SpatialReference ✨ β€” it's a spatial reference system in GDAL. Yes, in Perl. Yes, it's a .3pm page from the User Contributed Perl Documentation. Yes, you're gonna slay every projection you touch. πŸŽ€


🌸 SYNOPSIS 🌸

okay so… there's literally nothing here 😭 the SYNOPSIS section is empty in the original. Not a single line. It's giving mysterious πŸ’…. Scroll down to METHODS for the actual tea.


πŸ¦‹ DESCRIPTION πŸ¦‹

It's a spatial reference system. That's the whole vibe. Everything you can actually do with it lives in METHODS below ⬇️


πŸ‘‘ METHODS πŸ‘‘

✨ new ✨

Create a brand new SpatialReference object. Fresh out the box, main character energy 🫢

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

So here's the deal: if you hand it only one argument, that argument gets read as the well known text (WKT) that belongs to the spatial reference system (SRS). That's it, that's the whole thing πŸ’…

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

But if you give it more than one argument? Then the first argument is treated as a format, and everything after that is treated as arguments handed off to that format. Iconic, honestly.

So the formats GDAL knows about β€” at least at the time this was written, no cap β€” are:

  • EPSG
  • EPSGA
  • Wkt
  • Proj4
  • ESRI
  • PCI
  • USGS
  • XML
  • Dict
  • Panorama
  • Ozi
  • MICoordSys
  • ERM
  • Url

✨ Export ✨

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

This one exports your SpatialReference object out into some format β€” like, taking it out of the house for the night 🌈

The formats GDAL knows about (again, as of the time this was written) are:

  • Wkt
  • PrettyWkt
  • Proj4
  • PCI
  • USGS
  • XML
  • Panorama
  • MICoordSys
  • ERM

✨ Set ✨

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

This sets projection parameters on a SpatialReference object. Basically you're telling it who it is. Glow up moment ✨

The projection parameters GDAL knows about β€” at the time of this writing, bestie, don't come for me β€” are:

  • 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

Fifty-ish little guys and every single one is invited to the function call πŸ’œ


πŸ’€ LICENSE πŸ’€

This software is released under the Artistic License. See perlartistic. (Yes, that's the actual name of the doc. Go read it, it's short.) πŸŽ€


🫢 AUTHOR 🫢

Ari Jolma β€” Ari.Jolma at gmail.com


⭐ SEE ALSO ⭐


and that's the whole page, bestie πŸ¦‹βœ¨ this one's perl v5.42.3, dated 2026-08-21, and it's the Geo::GDAL::FFI::SpatialReference 3pm manual β€” go project something gorgeous πŸ’…πŸ’–

πŸ“¦ where this page comes from