Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 809 Bytes

extrude.md

File metadata and controls

31 lines (17 loc) · 809 Bytes

extrude

Restituisce una versione estrusa della geometria (Multi-)Curve o (Multi-)Linestring in ingresso, con un'estensione specificata da x e y.

Sintassi

extrude(geometry, x, y)

Argomenti

  • geometry una geometria poligono
  • x estensione x, valore numerico
  • y estensione y, valore numerico

Esempi

  • extrude(geom_from_wkt('LineString(1 2, 3 2, 4 3)'), 1, 2) → Polygon ((1 2, 3 2, 4 3, 5 5, 4 4, 2 4, 1 2))
  • extrude(geom_from_wkt('MultiLineString((1 2, 3 2), (4 3, 8 3)'), 1, 2) → MultiPolygon (((1 2, 3 2, 4 4, 2 4, 1 2)),((4 3, 8 3, 9 5, 5 5, 4 3)))

nota bene

--

osservazioni

Nell'esempio ho utilizzato la funzione boundary() perché la geometria di ingresso deve essere lineare.