Geo::G...erence(3pm)
π 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:
EPSGEPSGAWktProj4ESRIPCIUSGSXMLDictPanoramaOziMICoordSysERMUrl
β¨ 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:
WktPrettyWktProj4PCIUSGSXMLPanoramaMICoordSysERM
β¨ 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:
AxesACEAAEBonneCEACSECEckertEckertIVEckertVIEquirectangularEquirectangular2GSGHIGHGEOSGaussSchreiberTMercatorGnomonicHOMHOMACHOM2PNOIWMPolyconicKrovakLAEALCCLCC1SPLCCBMCMercatorMercator2SPMollweideNZMGOSOrthographicPolyconicPSRobinsonSinusoidalStereographicSOCTMTMVariantTMGTMSOTPEDVDGWagnerQSCSCH
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 β
Geo::GDAL::FFIAlien::gdalFFI::Platypushttp://www.gdal.org
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
- ubuntu stonking: libgeo-gdal-ffi-perl 0.16-1build2 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms