bounding boxes
Jonathan Coles
jonathan at jpcoles.com
Mon Jan 24 20:04:21 CET 2005
Am Montag, den 24.01.2005, 09:40 -0500 schrieb Russell Nelson:
> Jonathan Coles writes:
> > do all layers have bounding boxes? i would think so, but i just wanted
> > to check. if so, what are people's thoughts on adding BoundingBox and
> > LatLongBoundingBox into BaseLayer? both functions exist in Layer,
> > RasterLayer, and wmsLayer, and it would be nice to be able to assume
> > that all layers have these functions implemented in some way.
>
> The Terra layer won't have a small bounding box. A reasonable
> bounding box will be as tall as the United States and 3 degrees wide.
> Depending on the definition of BoundingBox, and the way it's used, I
> think that the best bounding box the Terra layer could return is None.
one of the places LatLongBoundingBox() is used is when scaling the layer
to fit in the window. the return value *can* be None, but real values
should be returned if they exist. i think that even given the large size
in your example, returning that is better than None.
BoundingBox() just returns the "layer's bounding box in the intrinsic
coordinate system," to quote the documentation. i would say, any real
value is appropriate here.
--jonathan
--
=====================================================================
Jonathan Coles http://www.jpcoles.com
jonathan at jpcoles.com GnuPG Key: /gpg_pub_key.asc
=====================================================================
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)