mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
869 B
869 B
slug | sidebar_label | title |
---|---|---|
/en/sql-reference/functions/geo/svg | SVG | Functions for Generating SVG images from Geo data |
Syntax
SVG(geometry,[style])
Parameters
geometry
— Geo datastyle
— Optional style name
Returned value
- The SVG representation of the geometry:
- SVG circle
- SVG polygon
- SVG path
Type: String
Examples
Circle
SELECT SVG((0., 0.))
<circle cx="0" cy="0" r="5" style=""/>
Polygon
SELECT SVG([(0., 0.), (10, 0), (10, 10), (0, 10)])
<polygon points="0,0 0,10 10,10 10,0 0,0" style=""/>
Path
SELECT SVG([[(0., 0.), (10, 0), (10, 10), (0, 10)], [(4., 4.), (5, 4), (5, 5), (4, 5)]])
<g fill-rule="evenodd"><path d="M 0,0 L 0,10 L 10,10 L 10,0 L 0,0M 4,4 L 5,4 L 5,5 L 4,5 L 4,4 z " style=""/></g>