spatialite-sys 0.2.0

Low-level bindings to the SpatiaLite SQLite geospatial extension
Documentation
1
2
3
4
5
6
7
casttogeometrycollection - 2 linestrings
:memory: #use in-memory database
SELECT AsText(CastToGeometryCollection(GeomFromText("MULTILINESTRING((4 1, 3 4),(4 6, 3 1))")))
1 # rows (not including the header row)
1 # columns
AsText(CastToGeometryCollection(GeomFromText("MULTILINESTRING((4 1, 3 4),(4 6, 3 1))")))
GEOMETRYCOLLECTION(LINESTRING(4 1, 3 4), LINESTRING(4 6, 3 1))