PostGIS 测试 - 多曲面(MULTISURFACE)

1.建表

CREATE TABLE multisurfacetable ( 
  id SERIAL PRIMARY KEY,
  name VARCHAR(128),
   geom GEOMETRY(MULTISURFACE, 26910)
);

2.添加GIST索引

CREATE INDEX multisurfacetable_gix ON multisurfacetable USING GIST (geom); 

3.插入数据

INSERT INTO multisurfacetable (name, geom) VALUES ('m1',
  ST_GeomFromText('MULTISURFACE(CURVEPOLYGON(CIRCULARSTRING(0 0, 4 0, 4 4, 0 4, 0 0),(1 1, 3 3, 3 1, 1 1)),((7 5, 11 7, 8 5, 7 5),(8 6, 8.5 6, 8 6.5, 8 6)))', 26910)
);

4.QGIS中显示几何数据

   PostGIS 测试 - 多曲面(MULTISURFACE)_第1张图片

你可能感兴趣的:(PostGIS,MULTISURFACE,多曲面,ST_GeomFromText,CURVEPOLYGON)