Exemplo n.º 1
0
class RendererSchema(BaseSchema):

    # not sure if bounding box needs defintion separate from LongLatBounds
    viewport = base_schema.LongLatBounds()

    # following are only used when creating objects, not updating -
    # so missing=drop
    map_filename = SchemaNode(String(), missing=drop)
    projection = SchemaNode(String(), missing=drop)
    image_size = base_schema.ImageSize(missing=drop)
    output_dir = SchemaNode(String())
    draw_ontop = SchemaNode(String())
Exemplo n.º 2
0
class RendererSchema(BaseOutputterSchema):
    # not sure if bounding box needs defintion separate from LongLatBounds
    viewport = base_schema.LongLatBounds(save=True, update=True)

    # following are only used when creating objects, not updating -
    # so missing=drop
    map_filename = FilenameSchema(save=True, update=True,
                                  isdatafile=True, test_equal=False,
                                  missing=drop,)

    projection = ProjectionSchema(save=True, update=True, missing=drop)
    image_size = base_schema.ImageSize(save=True, update=False, missing=drop)
    output_dir = SchemaNode(String(), save=True, update=True, test_equal=False)
    draw_ontop = SchemaNode(String(), save=True, update=True)
Exemplo n.º 3
0
class GnomeMapSchema(base_schema.ObjType):
    map_bounds = base_schema.LongLatBounds(missing=drop)
    spillable_area = base_schema.PolygonSet(missing=drop)