1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【SpatiaLite】MULTIPOINTを含むGEOMETRYCOLLECTIONを生成するとPOINTに分解される

Posted at

以下のように、POINT, MULTIPOINTを要素とするGEOMETRYCOLLECTIONのWKTからジオメトリを生成する。

SELECT
	AsText(gc.gc)
FROM
(
	SELECT
		GeomFromText(
			'GEOMETRYCOLLECTION(' ||
				'MULTIPOINT(2 2, 1 1)' ||
				', POINT(3 3)' ||
			')'
		) AS gc
) AS gc

すると、以下に示す実行結果のように、MULTIPOINTの各点がPOINTに分解されたGEOMETRYCOLLECTIONが得られる。

GEOMETRYCOLLECTION(POINT(2 2), POINT(1 1), POINT(3 3))
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?