mapmaker.sources.svg.rasteriser module

mapmaker.sources.svg.rasteriser.make_colour(colour_string, opacity=1.0)[source]
class mapmaker.sources.svg.rasteriser.GradientStops(element)[source]

Bases: object

property offsets
property colours
class mapmaker.sources.svg.rasteriser.CanvasDrawingObject(paint, bounds, parent_transform, transform_attribute, clip_path, bbox=None, root_object=False, scale=1.0)[source]

Bases: object

property bbox
property paint
draw_element(canvas, tile_bbox)[source]
intersects(bbox)[source]
transformed_clipped_canvas(canvas)[source]
class mapmaker.sources.svg.rasteriser.CanvasPath(path, paint, parent_transform, transform_attribute, clip_path)[source]

Bases: CanvasDrawingObject

draw_element(canvas, tile_bbox)[source]
class mapmaker.sources.svg.rasteriser.CanvasImage(image, paint, parent_transform, transform_attribute, clip_path, scale=1.0)[source]

Bases: CanvasDrawingObject

draw_element(canvas, tile_bbox)[source]
class mapmaker.sources.svg.rasteriser.CanvasText(text, attribs, parent_transform, transform_attribute, clip_path)[source]

Bases: CanvasDrawingObject

draw_element(canvas, tile_bbox)[source]
class mapmaker.sources.svg.rasteriser.CanvasGroup(drawing_objects, parent_transform, transform_attribute, clip_path, outermost=False)[source]

Bases: CanvasDrawingObject

property is_valid
draw_element(canvas, tile_bbox)[source]
class mapmaker.sources.svg.rasteriser.SVGTiler(raster_layer, tile_set)[source]

Bases: object

property size
property image_to_world
get_image()[source]
get_tile(tile)[source]