pytuflow.GisInput#
- class GisInput(parent, command)#
Bases:
GisInputBaseClass for handling GIS inputs (Vector only).
GIS inputs have very specific requirements. This class handles the following scenarios:
reading multiple files on a single line
reading a file then an index (indicating which column to attribute column to use) e.g.
Read GIS Mat == 2d_mat.shp | 3reading a vector file | float value | raster file e.g. command
Read GIS Zpts Modify Conveyance == river.shp | 3.2 | conv.tifread the vector file and find file references within the attribute table e.g.
1d_nwklayer using aMchannel which can reference files within the attribute table
- Parameters:
parent (ControlFileBuildState)
command (Command)
- __init__(parent, command)#
- Parameters:
parent (ControlFileBuildState)
command (Command)
Methods
Create a
RunStateversion of this object.Public function that will return the scope of a given file.
Returns whether this input is the end of a block.
Returns True if the input matches the search parameters, which is made of multiple parameters.
Returns whether this input is the start of a block.
Not private, but not for users to use directly either.
Write the object to file.
Attributes
A string identifying the PyTUFLOW object type.
Whether the object has been changed since it was last written to file.
Property holding the LHS string part of
Command == ValueThe line number of the input within the control file (starting at line one).
Property holding the value part of
Command == Value.List of scopes associated with the object.
Property holding the value part of
Command == Value.Parent object, if any.
Configuration settings for the TUFLOW model.
A unique identifier for the input, generated when the input is created.
The .trd file that this input is from.
The trd input that this input is from.
The number of parts in the input command.