Geo::GDAL  2.3
Geo::GDAL::Extent Class Reference

A rectangular area in projection coordinates: xmin, ymin, xmax, ymax.

More...

Public Member Functions

public method ExpandToInclude (scalar extent)
 
public method IsEmpty ()
 
public scalar Overlap (scalar extent)
 
public scalar Overlaps (scalar extent)
 
public list Size ()
 
public Geo::GDAL::Extent new (array params)
 

Detailed Description

A rectangular area in projection coordinates: xmin, ymin, xmax, ymax.

Definition at line 5441 of file all.dox.

Member Function Documentation

public method Geo::GDAL::Extent::ExpandToInclude ( scalar  extent)

Package subroutine.
Extends this extent to include the other extent.

Parameters
extentAnother Geo::GDAL::Extent object.

Code:
click to view

public method Geo::GDAL::Extent::IsEmpty ( )


Code:
click to view

public Geo::GDAL::Extent Geo::GDAL::Extent::new ( array  params)

Package subroutine.

Parameters
paramsnothing, a list ($xmin, $ymin, $xmax, $ymax), or an Extent object
Returns
A new Extent object (empty if no parameters, a copy of the parameter if it is an Extent object).

Code:
click to view

public scalar Geo::GDAL::Extent::Overlap ( scalar  extent)

Package subroutine.

Parameters
extentAnother Geo::GDAL::Extent object.
Returns
A new, possibly empty, Geo::GDAL::Extent object, which
represents the joint area of the two extents.

Code:
click to view

public scalar Geo::GDAL::Extent::Overlaps ( scalar  extent)

Package subroutine.

Parameters
extentAnother Geo::GDAL::Extent object.
Returns
True if this extent overlaps the other extent, false otherwise.

Code:
click to view

public list Geo::GDAL::Extent::Size ( )

Package subroutine.

Returns
A list ($width, $height).

Code:
click to view


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