Combine (union?) and simplify/reduce DbGeometry records for GeoJson
问题 I have a number of spatial entities in a table, with a geometry field called Boundaries . I want to produce a GeoJson file with the simplified shapes/geometries. This is my first attempt: var entities = await db.Entities.ToListAsync(); dynamic geoJson = new ExpandoObject(); geoJson.type = "FeatureCollection"; var features = new List<dynamic>(); foreach (var entity in entities) { // simplify (uses SqlGeometry.Reduce) var simplified = Utilities.Geo.Simplify(entity.Boundaries, tolerance); //