6.1.2.4. thyrsis.mesh module

thyrsis.mesh.discretize_line(line, elem_length)

Get line part, splitted by length

Paramètres
  • line (Linestring) – Linestring

  • elem_length (float) – length split

Renvoie

Type renvoyé

LineString

thyrsis.mesh.mesh(cur)

Update database with mesh

Paramètres

cur (sqlite3.Cursor) – cursor on a sqlite connection

thyrsis.mesh.mnt(cur, source, project_srid='27572')

Update database with DEM raster

Paramètres
  • 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

Paramètres
  • cur (sqlite3.Cursor) – cursor on a sqlite connection

  • source (string) – raster path

thyrsis.mesh.permeabilite(cur, source, const)

Update database with permeability raster

Paramètres
  • 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

Paramètres

cur (sqlite3.Cursor) – cursor on a sqlite connection

thyrsis.mesh.potentiel_impose(cur)

Insert imposed potential node from contour

Paramètres

cur (sqlite3.Cursor) – cursor on a sqlite connection

thyrsis.mesh.potentiel_reference(cur, source)

Update database with potential reference raster

Paramètres
  • cur (sqlite3.Cursor) – cursor on a sqlite connection

  • source (string) – raster path

thyrsis.mesh.split(line, lines, tolerance)

Split line with lines

Paramètres
  • line (MultiLineString) – line to split

  • lines – lines

  • tolerance (float) – tolerance value

Renvoie

splitted line

Type renvoyé

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

Paramètres
  • line (Linestring) – Linestring

  • start (float) – start distance

  • end (float) – end distance