combining Geography data

Deadly 提交于 2020-01-17 05:09:11

问题


Using something like this works:

DECLARE @Shape GEOGRAPHY  = 'POLYGON EMPTY'
SET @Shape.STSrid = 4326;

SELECT @Shape = @Shape.STUnion([PolygonData])
  FROM [Bla].[Polygon]

SELECT @Shape.STAsText();

on a table like this:

CREATE TABLE [Space].[Polygon](
    [Id] [UNIQUEIDENTIFIER] NOT NULL,
    [PolygonData] [GEOGRAPHY] NULL)

Unfortunately, it is very slow. I do not think I can index this so I wonder if there are alternative approaches that can be used to merge polygons to obtain just the outer points of the combined polygon. Thanks.

来源:https://stackoverflow.com/questions/31178902/combining-geography-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!