6.1.2.4. thyrsis.mesh module¶
- thyrsis.mesh.discretize_line(line, elem_length)¶
Get line part, splitted by length
- Parameters
line (Linestring) – Linestring
elem_length (float) – length split
- Returns
- Return type
LineString
- thyrsis.mesh.mesh(cur)¶
Update database with mesh
- Parameters
cur (sqlite3.Cursor) – cursor on a sqlite connection
- thyrsis.mesh.mnt(cur, source, project_srid='27572')¶
Update database with DEM raster
- Parameters
cur (sqlite3.Cursor) – cursor on a sqlite connection
source (string) – raster path
project_srid (string) – epsg code
- thyrsis.mesh.mur(cur, source)¶
Update database with water table altitude raster
- Parameters
cur (sqlite3.Cursor) – cursor on a sqlite connection
source (string) – raster path
- thyrsis.mesh.permeabilite(cur, source, const)¶
Update database with permeability raster
- Parameters
cur (sqlite3.Cursor) – cursor on a sqlite connection
source (string) – raster path
const (bool) – constant permeability flag
- thyrsis.mesh.polygonize(cur)¶
Polygonize domaines from coutour entities
- Parameters
cur (sqlite3.Cursor) – cursor on a sqlite connection
- thyrsis.mesh.potentiel_impose(cur)¶
Insert imposed potential node from contour
- Parameters
cur (sqlite3.Cursor) – cursor on a sqlite connection
- thyrsis.mesh.potentiel_reference(cur, source)¶
Update database with potential reference raster
- Parameters
cur (sqlite3.Cursor) – cursor on a sqlite connection
source (string) – raster path
- thyrsis.mesh.split(line, lines, tolerance)¶
Split line with lines
- Parameters
line (MultiLineString) – line to split
lines – lines
tolerance (float) – tolerance value
- Returns
splitted line
- Return type
MultiLineString
- thyrsis.mesh.substring(line, start, end)¶
return the substring bewteen curvilinear coordinates start and end the line must be a ring if start > end
- Parameters
line (Linestring) – Linestring
start (float) – start distance
end (float) – end distance