safe.storage.layer module

Class Layer

class safe.storage.layer.Layer(name=None, projection=None, keywords=None, style_info=None, sublayer=None)[source]

Bases: object

Common class for geospatial layers

get_filename()[source]
get_impact_summary()[source]

Return ‘impact_summary’ keyword if present. Otherwise ‘’.

get_keywords(key=None)[source]

Return a copy of the keywords dictionary

Args:
  • key (optional): If specified value will be returned for key only
get_name()[source]
get_projection(proj4=False)[source]

Return projection of this layer as a string

get_style_info()[source]

Return style_info dictionary

get_style_type()[source]

Return style type of a layer. If not found, return None

get_total_needs()[source]

Return ‘total_needs’ keyword if present. Otherwise ‘’.

is_inasafe_spatial_object[source]
is_raster[source]
is_vector[source]
set_name(name)[source]