Package madrona :: Package manipulators :: Module manipulators :: Class ClipToGraticuleManipulator :: Class GraticuleBoxBuilder
[hide private]

Class GraticuleBoxBuilder

source code


required argument: 
    target_shape:  GEOSGeometry of the shape to be clipped, in srid GEOMETRY_CLIENT_SRID (4326)
build_box() return value:
    a box like geometry built from the graticules provided to the manipulator class, completing any 
    missing north, south, east, or west values with the extent of the target shape geometry
    returned shape geometry will be in srid GEOMETRY_CLIENT_SRID (4326) 

Instance Methods [hide private]
 
__init__(self, parent, shape) source code
 
build_box(self)
top_left = (west, north) top_right = (east, north) bottom_right = (east, south) bottom_left = (west, south)
source code
 
__extract_dirs(self, parent) source code
 
__build_extent(self, shape) source code