private static void SegmentFeature(CDMSmith.GeospatialTools.Geo.IGeometry feature, IList <Segment> results) { IEnumerable <Segment> segments = CreateSegments(feature.GetCoordinates()); foreach (Segment segment in segments) { segment.Id = results.Count; results.Add(segment); } }
public static BBox GetBBox(this CDMSmith.GeospatialTools.Geo.IGeometry geometry) { IEnumerable <IEnumerable <IPoint> > coordinates = geometry.GetCoordinates(); return(GetBBox(coordinates)); }