Showing posts with label SQL 2012 Spatial Query. Show all posts
Showing posts with label SQL 2012 Spatial Query. Show all posts

Friday, May 9, 2014

Aggregating Spatial Data


Spatial table data can be aggregate such as to get a high level map.  This code works for tables in SQL 2012.

SELECT    [Column Name]    ,geometry::UnionAggregate(geom.MakeValid()) AS goem
FROM             
GROUP BY [Column Name]