Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

Geo データからSVG画像を生成する関数

Svg

Geo データ から、選択された SVG 要素タグの文字列を返します。

構文

Svg(geometry,[style])

別名: SVG, svg

パラメータ

  • geometry — Geo データ。Geo
  • style — オプションのスタイル名。String

戻り値

  • ジオメトリのSVG表現。String
    • SVGの円
    • SVGのポリゴン
    • SVGのパス

Querysql
SELECT SVG((0., 0.))
Responseresponse
<circle cx="0" cy="0" r="5" style=""/>

Polygon

Querysql
SELECT SVG([(0., 0.), (10, 0), (10, 10), (0, 10)])
Responseresponse
<polygon points="0,0 0,10 10,10 10,0 0,0" style=""/>

パス

Querysql
SELECT SVG([[(0., 0.), (10, 0), (10, 10), (0, 10)], [(4., 4.), (5, 4), (5, 5), (4, 5)]])
Responseresponse
<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>
Navigation