Home | Trees | Indices | Help |
---|
|
object --+ | oxm.geom.Box --+ | Bounds
Bounding box that understands pixel sizes in addition to the basic lat/lon sizes. You need this because a Mapnik map is rendered into a PNG file, which has its size defined in terms of pixels, while the map data is represented in terms of lat/lon co-ordinates.
|
|||
|
|||
|
|||
|
|||
float
|
|
||
Inherited from Inherited from |
|
|||
float
|
pix_height height of box in pixels |
||
float
|
pix_width width of box in pixels |
||
Inherited from |
|
|||
Inherited from |
|
Initialize the bounds, either from explicit lat/lon coordinates, or based on the size of a given Box.
|
Resize the bounding box so that the width and height have the correct aspect ratio, and so that the box is a certain percent bigger than the map indicates. This way any icons and street names drawn near the edge of the map won't get clipped.
|
Calculate how far apart two points in this bounding box need to be so that their icons won't overlap.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat May 1 23:03:30 2010 | http://epydoc.sourceforge.net |