Sets the viewport's bounding box. The bbox have a positive width and height
and must have a aspect ratio within 0.0000001 units of the value returned by
.
author: jeichar since: 0.3
public SetViewportBBoxCommand(Envelope bbox)(Code)
Creates a new instance of SetViewportBBoxCommand. The bbox is expected to be the same as the viewport model.
Parameters: bbox - the new bounding box. The new bbox must have a positive widthand height and must have a aspect ratio within 0.0000001 unitsof the value returned by.
SetViewportBBoxCommand
public SetViewportBBoxCommand(ReferencedEnvelope bbox)(Code)
Creates a new instance of SetViewportBBoxCommand. The bbox is expected to be the same as the viewport model.
Parameters: bbox - the new bounding box. The new bbox must have a positive widthand height and must have a aspect ratio within 0.0000001 unitsof the value returned by.
SetViewportBBoxCommand
public SetViewportBBoxCommand(Envelope bounds, CoordinateReferenceSystem crs)(Code)
Sets the bounds of the viewport model to the bounds. The crs parameter indications the crs of
the provided bounds. The appropriate transformation will take place.
Parameters: bounds - the bounds to apply to the viewport model Parameters: crs - The crs of the provided bounds.