Geo::GDAL 1.8.0

Geo::OSR::SpatialReference Class Reference

Documentation of the underlying C++ class at www.gdal.org More...

List of all members.

Public Class Methods

Geo::OSR::SpatialReference new (scalar wkt=undef)
Geo::OSR::SpatialReference create (hash params)

Public Object Methods

scalar IsSame (scalar rhs)
scalar IsSameGeogCS (scalar rhs)
scalar IsGeographic ()
scalar IsProjected ()
scalar IsLocal ()
scalar GetAttrValue (scalar name, scalar child=0)
 SetAttrValue (scalar name, scalar value)
 SetAngularUnits (scalar name, scalar to_radians)
scalar GetAngularUnits ()
 SetLinearUnits (scalar name, scalar to_meters)
scalar GetLinearUnits ()
scalar GetLinearUnitsName ()
scalar GetAuthorityCode (scalar target_key)
scalar GetAuthorityName (scalar target_key)
 SetUTM (scalar zone, scalar north=1)
 SetStatePlane (scalar zone, scalar is_nad83=1, scalar unitsname="", scalar units=0.0)
 AutoIdentifyEPSG ()
 SetProjection (scalar arg)
 SetProjParm (scalar name, scalar val)
scalar GetProjParm (scalar name, scalar default_val=0.0)
 SetNormProjParm (scalar name, scalar val)
scalar GetNormProjParm (scalar name, scalar default_val=0.0)
 SetACEA (scalar stdp1, scalar stdp2, scalar clat, scalar clong, scalar fe, scalar fn)
 SetAE (scalar clat, scalar clon, scalar fe, scalar fn)
 SetCS (scalar clat, scalar clon, scalar fe, scalar fn)
 SetBonne (scalar clat, scalar clon, scalar fe, scalar fn)
 SetEC (scalar stdp1, scalar stdp2, scalar clat, scalar clong, scalar fe, scalar fn)
 SetEckertIV (scalar cm, scalar fe, scalar fn)
 SetEckertVI (scalar cm, scalar fe, scalar fn)
 SetEquirectangular (scalar clat, scalar clong, scalar fe, scalar fn)
 SetGS (scalar cm, scalar fe, scalar fn)
 SetWellKnownGeogCS (scalar name)
 SetFromUserInput (scalar name)
 CopyGeogCSFrom (scalar rhs)
 SetTOWGS84 (scalar p1, scalar p2, scalar p3, scalar p4=0.0, scalar p5=0.0, scalar p6=0.0, scalar p7=0.0)
 GetTOWGS84 ()
 SetGeogCS (scalar GeogName, scalar DatumName, scalar EllipsoidName, scalar SemiMajor, scalar InvFlattening, scalar PMName="Greenwich", scalar PMOffset=0.0, scalar Units="degree", scalar ConvertToRadians=0.0174532925199433)
 SetProjCS (scalar name="unnamed")
 ImportFromWkt (scalar wkt)
 ImportFromProj4 (scalar proj4)
 ImportFromESRI (scalar esri)
 ImportFromEPSG (scalar epsg_number)
 ImportFromPCI (scalar proj, scalar units="METRE", listref argin=undef)
 ImportFromUSGS (scalar proj_code, scalar zone=0, listref argin[15]=undef, scalar datum_code=0)
 ImportFromXML (scalar xml_string)
scalar AsText ()
scalar ExportToPrettyWkt (scalar simplify=0)
scalar ExportToProj4 ()
list ExportToPCI ()
list ExportToUSGS ()
scalar ExportToXML (scalar dialect="")
Geo::OSR::SpatialReference CloneGeogCS ()
 Validate ()
 StripCTParms ()
 FixupOrdering ()
 Fixup ()
 MorphToESRI ()
 MorphFromESRI ()
 ImportFromUrl ()
 SetAuthority ()
 SetCEA ()
 SetGEOS ()
 SetGH ()
 SetGnomonic ()
 SetHOM ()
 SetHOM2PNO ()
 SetKrovak ()
 SetLAEA ()
 SetLCC ()
 SetLCC1SP ()
 SetLCCB ()
 SetLocalCS ()
 SetMC ()
 SetMercator ()
 SetMollweide ()
 SetNZMG ()
 SetOS ()
 SetOrthographic ()
 SetPS ()
 SetPolyconic ()
 SetRobinson ()
 SetSOC ()
 SetSinusoidal ()
 SetStereographic ()
 SetTM ()
 SetTMG ()
 SetTMSO ()
 SetTMVariant ()
 SetVDG ()

Detailed Description

Documentation of the underlying C++ class at www.gdal.org


Member Function Documentation

scalar Geo::OSR::SpatialReference::AsText ( )

Return a well known text representation of this spatial reference system. An alternative name: ExportToWkt.

Returns:
WKT string
Geo::OSR::SpatialReference::AutoIdentifyEPSG ( )
Geo::OSR::SpatialReference Geo::OSR::SpatialReference::CloneGeogCS ( )
Returns:
a new Geo::OSR::SpatialReference object
Geo::OSR::SpatialReference::CopyGeogCSFrom ( scalar  rhs)
Geo::OSR::SpatialReference Geo::OSR::SpatialReference::create ( hash  params)

Create a new spatial reference object using named parameters. This constructor recognizes the following named parameters: WKT, Text, Proj4, ESRI, EPSG, PCI, USGS, XML.

Usage:

$sr = Geo::OSR::SpatialReference->create(...arguments...);
Returns:
a new Geo::OSR::SpatialReference object
list Geo::OSR::SpatialReference::ExportToPCI ( )
Returns:
($proj_string, $units, [$parms1, ...])
scalar Geo::OSR::SpatialReference::ExportToPrettyWkt ( scalar  simplify = 0)
Returns:
WKT string
scalar Geo::OSR::SpatialReference::ExportToProj4 ( )
Returns:
proj4 string
list Geo::OSR::SpatialReference::ExportToUSGS ( )
Returns:
($code, $zone, [$parms1, ...], $datum)
scalar Geo::OSR::SpatialReference::ExportToXML ( scalar  dialect = "")
Returns:
XML string
Geo::OSR::SpatialReference::Fixup ( )
Geo::OSR::SpatialReference::FixupOrdering ( )
scalar Geo::OSR::SpatialReference::GetAngularUnits ( )
Returns:
a number
scalar Geo::OSR::SpatialReference::GetAttrValue ( scalar  name,
scalar  child = 0 
)
Parameters:
name
child
Returns:
string
scalar Geo::OSR::SpatialReference::GetAuthorityCode ( scalar  target_key)
Parameters:
target_key
Returns:
string
scalar Geo::OSR::SpatialReference::GetAuthorityName ( scalar  target_key)
Parameters:
target_key
Returns:
string
scalar Geo::OSR::SpatialReference::GetLinearUnits ( )
Returns:
a number
scalar Geo::OSR::SpatialReference::GetLinearUnitsName ( )
Returns:
string
scalar Geo::OSR::SpatialReference::GetNormProjParm ( scalar  name,
scalar  default_val = 0.0 
)
Parameters:
name
default_val
Returns:
a number
scalar Geo::OSR::SpatialReference::GetProjParm ( scalar  name,
scalar  default_val = 0.0 
)
Parameters:
name
default_val
Returns:
a number
Geo::OSR::SpatialReference::GetTOWGS84 ( )
Returns:
array = ($p1, $p2, $p3, $p4, $p5, $p6, $p7)
Geo::OSR::SpatialReference::ImportFromEPSG ( scalar  epsg_number)
Geo::OSR::SpatialReference::ImportFromESRI ( scalar  esri)
Geo::OSR::SpatialReference::ImportFromPCI ( scalar  proj,
scalar  units = "METRE",
listref  argin = undef 
)
Parameters:
proj
units
argin= array of 17 numbers
Geo::OSR::SpatialReference::ImportFromProj4 ( scalar  proj4)
Geo::OSR::SpatialReference::ImportFromUrl ( )
Geo::OSR::SpatialReference::ImportFromUSGS ( scalar  proj_code,
scalar  zone = 0,
listref  argin[15] = undef,
scalar  datum_code = 0 
)
Parameters:
proj_code
zone
argin= array of 15 numbers
datum_code
Geo::OSR::SpatialReference::ImportFromWkt ( scalar  wkt)
Geo::OSR::SpatialReference::ImportFromXML ( scalar  xml_string)
scalar Geo::OSR::SpatialReference::IsGeographic ( )
Returns:
boolean
scalar Geo::OSR::SpatialReference::IsLocal ( )
Returns:
boolean
scalar Geo::OSR::SpatialReference::IsProjected ( )
Returns:
boolean
scalar Geo::OSR::SpatialReference::IsSame ( scalar  rhs)
Parameters:
rhsa Geo::OSR::SpatialReference object
Returns:
boolean
scalar Geo::OSR::SpatialReference::IsSameGeogCS ( scalar  rhs)
Parameters:
rhsa Geo::OSR::SpatialReference object
Returns:
boolean
Geo::OSR::SpatialReference::MorphFromESRI ( )
Geo::OSR::SpatialReference::MorphToESRI ( )
Geo::OSR::SpatialReference Geo::OSR::SpatialReference::new ( scalar  wkt = undef)
Parameters:
wktwell known text
Returns:
a new Geo::OSR::SpatialReference object
Geo::OSR::SpatialReference::SetACEA ( scalar  stdp1,
scalar  stdp2,
scalar  clat,
scalar  clong,
scalar  fe,
scalar  fn 
)
Geo::OSR::SpatialReference::SetAE ( scalar  clat,
scalar  clon,
scalar  fe,
scalar  fn 
)
Geo::OSR::SpatialReference::SetAngularUnits ( scalar  name,
scalar  to_radians 
)
Parameters:
name
to_radians
Geo::OSR::SpatialReference::SetAttrValue ( scalar  name,
scalar  value 
)
Parameters:
name
value
Geo::OSR::SpatialReference::SetAuthority ( )
Geo::OSR::SpatialReference::SetBonne ( scalar  clat,
scalar  clon,
scalar  fe,
scalar  fn 
)
Geo::OSR::SpatialReference::SetCEA ( )
Geo::OSR::SpatialReference::SetCS ( scalar  clat,
scalar  clon,
scalar  fe,
scalar  fn 
)
Geo::OSR::SpatialReference::SetEC ( scalar  stdp1,
scalar  stdp2,
scalar  clat,
scalar  clong,
scalar  fe,
scalar  fn 
)
Geo::OSR::SpatialReference::SetEckertIV ( scalar  cm,
scalar  fe,
scalar  fn 
)
Geo::OSR::SpatialReference::SetEckertVI ( scalar  cm,
scalar  fe,
scalar  fn 
)
Geo::OSR::SpatialReference::SetEquirectangular ( scalar  clat,
scalar  clong,
scalar  fe,
scalar  fn 
)
Geo::OSR::SpatialReference::SetFromUserInput ( scalar  name)
Geo::OSR::SpatialReference::SetGeogCS ( scalar  GeogName,
scalar  DatumName,
scalar  EllipsoidName,
scalar  SemiMajor,
scalar  InvFlattening,
scalar  PMName = "Greenwich",
scalar  PMOffset = 0.0,
scalar  Units = "degree",
scalar  ConvertToRadians = 0.0174532925199433 
)
Geo::OSR::SpatialReference::SetGEOS ( )
Geo::OSR::SpatialReference::SetGH ( )
Geo::OSR::SpatialReference::SetGnomonic ( )
Geo::OSR::SpatialReference::SetGS ( scalar  cm,
scalar  fe,
scalar  fn 
)
Geo::OSR::SpatialReference::SetHOM ( )
Geo::OSR::SpatialReference::SetHOM2PNO ( )
Geo::OSR::SpatialReference::SetKrovak ( )
Geo::OSR::SpatialReference::SetLAEA ( )
Geo::OSR::SpatialReference::SetLCC ( )
Geo::OSR::SpatialReference::SetLCC1SP ( )
Geo::OSR::SpatialReference::SetLCCB ( )
Geo::OSR::SpatialReference::SetLinearUnits ( scalar  name,
scalar  to_meters 
)
Parameters:
name
to_meters
Geo::OSR::SpatialReference::SetLocalCS ( )
Geo::OSR::SpatialReference::SetMC ( )
Geo::OSR::SpatialReference::SetMercator ( )
Geo::OSR::SpatialReference::SetMollweide ( )
Geo::OSR::SpatialReference::SetNormProjParm ( scalar  name,
scalar  val 
)
Parameters:
name
val
Geo::OSR::SpatialReference::SetNZMG ( )
Geo::OSR::SpatialReference::SetOrthographic ( )
Geo::OSR::SpatialReference::SetOS ( )
Geo::OSR::SpatialReference::SetPolyconic ( )
Geo::OSR::SpatialReference::SetProjCS ( scalar  name = "unnamed")
Geo::OSR::SpatialReference::SetProjection ( scalar  arg)
Parameters:
arg
Geo::OSR::SpatialReference::SetProjParm ( scalar  name,
scalar  val 
)
Parameters:
name
val
Geo::OSR::SpatialReference::SetPS ( )
Geo::OSR::SpatialReference::SetRobinson ( )
Geo::OSR::SpatialReference::SetSinusoidal ( )
Geo::OSR::SpatialReference::SetSOC ( )
Geo::OSR::SpatialReference::SetStatePlane ( scalar  zone,
scalar  is_nad83 = 1,
scalar  unitsname = "",
scalar  units = 0.0 
)
Parameters:
zone
is_nad83
unitsname
units
Geo::OSR::SpatialReference::SetStereographic ( )
Geo::OSR::SpatialReference::SetTM ( )
Geo::OSR::SpatialReference::SetTMG ( )
Geo::OSR::SpatialReference::SetTMSO ( )
Geo::OSR::SpatialReference::SetTMVariant ( )
Geo::OSR::SpatialReference::SetTOWGS84 ( scalar  p1,
scalar  p2,
scalar  p3,
scalar  p4 = 0.0,
scalar  p5 = 0.0,
scalar  p6 = 0.0,
scalar  p7 = 0.0 
)
Geo::OSR::SpatialReference::SetUTM ( scalar  zone,
scalar  north = 1 
)
Parameters:
zone
north
Geo::OSR::SpatialReference::SetVDG ( )
Geo::OSR::SpatialReference::SetWellKnownGeogCS ( scalar  name)
Geo::OSR::SpatialReference::StripCTParms ( )
Geo::OSR::SpatialReference::Validate ( )

The documentation for this class was generated from the following file: