gnome.utilities.shapefile_builder
Shapefile Builder
Attributes
Classes
Functions
|
Module Contents
- gnome.utilities.shapefile_builder.logger
- class gnome.utilities.shapefile_builder.ShapefileBuilder(filename, zip_output=True, timeoffset=None, **kwargs)
Bases:
object
- Parameters:
filename – Full path and basename of the shape file.
zip – If we should zip the final shapefile results.
- zip_output = True
- timeoffset = None
- filenamestem
- filenamepath = ''
- data_frames = []
- geometry_type = None
- append(sc)
- write()
Actually write out the shapefile as .shp or .zip
- rewind()
- property filename
- class gnome.utilities.shapefile_builder.ParticleShapefileBuilder(filename, zip_output=True, timeoffset=None, **kwargs)
Bases:
ShapefileBuilder
- Parameters:
filename – Full path and basename of the shape file.
zip – If we should zip the final shapefile results.
- append(sc)
Given a spill container, write out the current particle data to a data frame
- write()
Actually write out the shapefile as .shp or .zip
- gnome.utilities.shapefile_builder.area_in_meters(this_hull)
- class gnome.utilities.shapefile_builder.BoundaryShapefileBuilder(filename, zip_output=True, timeoffset=None, **kwargs)
Bases:
ShapefileBuilder
- Parameters:
filename – Full path and basename of the shape file.
zip – If we should zip the final shapefile results.
- append(sc, separate_by_spill=True, hull_ratio=0.5, hull_allow_holes=False)
Given a spill container, write out the current boundary data to a data frame
- write()
Actually write out the shapefile as .shp or .zip
- class gnome.utilities.shapefile_builder.ContourShapefileBuilder(filename, zip_output=True, timeoffset=None, **kwargs)
Bases:
ShapefileBuilder
- Parameters:
filename – Full path and basename of the shape file.
zip – If we should zip the final shapefile results.
- append(sc, cutoff_struct=None, hull_ratio=0.5, hull_allow_holes=False)
Given a spill container, write out the contours based on the cutoffs provided
- write()
Actually write out the shapefile as .shp or .zip