GeoScript

Previous topic

MultiPolygon

Next topic

geom.io

This Page

Bounds

class geoscript.geom.Bounds

A two dimensional bounding box.

aspect

Ratio of width to height for this bounds.

east

The rightmost/eastmost oordinate of the bounds.

expand(other)

Expands this bounds to include another.

north

The topmost/northmost oordinate of the bounds.

proj

The Projection of the bounds. None if the projection is unknown.

reproject(prj)

Reprojects the bounding box.

prj is the destination Projection

scale(factor)

Scales the bounds by a specified factor.

factor is the scale factor. The scale factor must be greather than 0. A value greater than 1 will grow the bounds whereas a value of less than 1 will shrink the bounds.

This method returns a new Bounds object.

>>> b = Bounds(0, 0, 1, 1)
>>> b.scale(1.5)
(-0.25, -0.25, 1.25, 1.25)
south

The bottomtmost/southmost oordinate of the bounds.

tile(res)

Partitions the bounding box into a set of smaller bounding boxes.

The res argument is the resolution to tile at and should be in the range (0,1].

toPolygon()

Converts the bounding box to a Polygon.

west

The leftmost/westmost oordinate of the bounds.