NAME

Geo::OSR - A part of the Perl interface to the GDAL/OGR library.

SYNOPSIS

use Geo::GDAL;

ABSTRACT

This module is a part of the Perl bindings to the GDAL library. The GDAL modules allows you to access and manipulate from Perl all geospatial data that the installed GDAL library is configured to read/write.

STATUS

This module is beta quality. As most of the names and calling conventions come directly from the underlying GDAL library they are quite stable and will continue to work like the do now. However, many things could, should, and will be made more perlish.

Generally, those methods which are documented, have been tested. If the method or constructor you are looking for is not documented, perhaps there is another way of doing what you want to do.

PACKAGE METHODS

GetWellKnownGeogCSAsWKT
GetProjectionMethods
GetProjectionMethodParameterList
GetProjectionMethodParamInfo

CONSTANTS

Access as $Geo::OSR::<constant>

SRS_PT_ALBERS_CONIC_EQUAL_AREA
SRS_PT_AZIMUTHAL_EQUIDISTANT
SRS_PT_CASSINI_SOLDNER
SRS_PT_CYLINDRICAL_EQUAL_AREA
SRS_PT_ECKERT_IV
SRS_PT_ECKERT_VI
SRS_PT_EQUIDISTANT_CONIC
SRS_PT_EQUIRECTANGULAR
SRS_PT_GALL_STEREOGRAPHIC
SRS_PT_GNOMONIC
SRS_PT_GOODE_HOMOLOSINE
SRS_PT_HOTINE_OBLIQUE_MERCATOR
SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN
SRS_PT_LABORDE_OBLIQUE_MERCATOR
SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP
SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP
SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM
SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA
SRS_PT_MERCATOR_1SP
SRS_PT_MERCATOR_2SP
SRS_PT_MILLER_CYLINDRICAL
SRS_PT_MOLLWEIDE
SRS_PT_NEW_ZEALAND_MAP_GRID
SRS_PT_OBLIQUE_STEREOGRAPHIC
SRS_PT_ORTHOGRAPHIC
SRS_PT_POLAR_STEREOGRAPHIC
SRS_PT_POLYCONIC
SRS_PT_ROBINSON
SRS_PT_SINUSOIDAL
SRS_PT_STEREOGRAPHIC
SRS_PT_SWISS_OBLIQUE_CYLINDRICAL
SRS_PT_TRANSVERSE_MERCATOR
SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED
SRS_PT_TRANSVERSE_MERCATOR_MI_22
SRS_PT_TRANSVERSE_MERCATOR_MI_23
SRS_PT_TRANSVERSE_MERCATOR_MI_24
SRS_PT_TRANSVERSE_MERCATOR_MI_25
SRS_PT_TUNISIA_MINING_GRID
SRS_PT_VANDERGRINTEN
SRS_PT_KROVAK
SRS_PP_CENTRAL_MERIDIAN
SRS_PP_SCALE_FACTOR
SRS_PP_STANDARD_PARALLEL_1
SRS_PP_STANDARD_PARALLEL_2
SRS_PP_PSEUDO_STD_PARALLEL_1
SRS_PP_LONGITUDE_OF_CENTER
SRS_PP_LATITUDE_OF_CENTER
SRS_PP_LONGITUDE_OF_ORIGIN
SRS_PP_LATITUDE_OF_ORIGIN
SRS_PP_FALSE_EASTING
SRS_PP_FALSE_NORTHING
SRS_PP_AZIMUTH
SRS_PP_LONGITUDE_OF_POINT_1
SRS_PP_LATITUDE_OF_POINT_1
SRS_PP_LONGITUDE_OF_POINT_2
SRS_PP_LATITUDE_OF_POINT_2
SRS_PP_LONGITUDE_OF_POINT_3
SRS_PP_LATITUDE_OF_POINT_3
SRS_PP_RECTIFIED_GRID_ANGLE
SRS_PP_LANDSAT_NUMBER
SRS_PP_PATH_NUMBER
SRS_PP_PERSPECTIVE_POINT_HEIGHT
SRS_PP_FIPSZONE
SRS_PP_ZONE
SRS_UL_METER
SRS_UL_FOOT
SRS_UL_FOOT_CONV
SRS_UL_US_FOOT
SRS_UL_US_FOOT_CONV
SRS_UL_NAUTICAL_MILE
SRS_UL_NAUTICAL_MILE_CONV
SRS_UL_CHAIN
SRS_UL_CHAIN_CONV
SRS_UL_ROD
SRS_UL_ROD_CONV
SRS_DN_NAD27
SRS_DN_NAD83
SRS_DN_WGS72
SRS_DN_WGS84
SRS_WGS84_SEMIMAJOR
SRS_WGS84_INVFLATTENING

CLASSES

Geo::OSR::SpatialReference

$srs = new Geo::OSR::SpatialReference;
__str__
IsSame
IsSameGeogCS
IsGeographic
IsProjected
GetAttrValue
SetAttrValue
SetAngularUnits
GetAngularUnits
SetLinearUnits
GetLinearUnits
GetLinearUnitsName
GetAuthorityCode
GetAuthorityName
SetUTM
SetStatePlane
AutoIdentifyEPSG
SetProjection
SetProjParm
GetProjParm
SetNormProjParm
GetNormProjParm
SetACEA
SetAE
SetCS
SetBonne
SetEC
SetEckertIV
SetEckertVI
SetEquirectangular
SetGS
SetWellKnownGeogCS
$cs = 'WGS84'; # an example
$srs->SetWellKnownGeogCS($cs);
SetFromUserInput
CopyGeogCSFrom
SetTOWGS84
GetTOWGS84
SetGeogCS
SetProjCS
ImportFromWkt
ImportFromProj4
ImportFromESRI
ImportFromEPSG
$nr = 3035; # an example
$srs->ImportFromEPSG($nr);
ImportFromPCI
ImportFromUSGS
ImportFromXML
ExportToWkt
ExportToPrettyWkt
ExportToProj4
ExportToPCI
ExportToUSGS
ExportToXML
CloneGeogCS
Validate
StripCTParms
FixupOrdering
Fixup
MorphToESRI
MorphFromESRI

Geo::OSR::CoordinateTransformation

$transf = new Geo::OSR::CoordinateTransformation($srs_from, $srs_to);
TransformPoint

KNOWN BUGS

Method named __str__ is a Pythonism and deprecated.

The reference counting scheme is not yet implemented. Make sure that parents are not deleted before their children! Use "my" a lot. Do not give undefined/uninitialized variables to methods.

SEE ALSO

perl(1), Geo::GDAL(3pm), Geo::GDAL::Const(3pm), Geo::OGR(3pm).

http://www.gdal.org

AUTHORS

The GDAL bindings team (in alphabetical order):

ari.jolma at tkk.fi cfis at interserv.com hobu at iastate.edu kruland at ku.edu warmerdam at pobox.com

COPYRIGHT AND LICENSE

Copyright 2005-2006 by the GDAL bindings team.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.