public static IEnumerable <Segment> Execute(CDMSmith.GeospatialTools.Geo.IGeometry feature)
        {
            IList <Segment> segments = new List <Segment>();

            SegmentFeature(feature, segments);
            return(segments);
        }
        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));
        }
 public static RBush.ISpatialData AsSpatialData(this CDMSmith.GeospatialTools.Geo.IGeometry geometry)
 {
     return(new SpatialDataWrapper(geometry));
 }