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())
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)