SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,492 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello
I have the following code to buffer two polygons held in a spatial table, but what i am trying to do is merge them both into one polygon and write out the result to a new view.
Can this be done and if so how?
Andy
SELECT [Admin_Unit_ID]
,[GEOM].STBuffer (5000) as Geom
FROM [Mapping].[dbo].[OS_BDL_district_borough_unitary2]
WHERE [Admin_Unit_ID] IN ('17653','17486');
Try something like this:
SELECT geometry::UnionAggregate([GEOM].STBuffer(5000)) as Geom
FROM [Mapping].[dbo].[OS_BDL_district_borough_unitary2]
WHERE [Admin_Unit_ID] IN ('17653','17486');