static List <GeometryPointSequence> GetPolygonPointSequence(SqlGeometry geom)
        {
            List <GeometryPointSequence> pointsList = new List <GeometryPointSequence>();
            int numInteriorRing          = (int)geom.STNumInteriorRing();
            GeometryPointSequence points = new GeometryPointSequence();

            points.PointList = geom.STExteriorRing().ToPointsFArray();
            points.InnerRing = false;
            pointsList.Add(points);
            if (numInteriorRing > 1)
            {
                for (int i = 1; i <= numInteriorRing; i++)
                {
                    points.PointList = geom.STInteriorRingN(i).ToPointsFArray();
                    points.InnerRing = true;
                    pointsList.Add(points);
                }
            }


            return(pointsList);
        }
        static List<GeometryPointSequence> GetPolygonPointSequence(SqlGeometry geom)
        {
            List<GeometryPointSequence> pointsList = new List<GeometryPointSequence>();
            int numInteriorRing = (int)geom.STNumInteriorRing();
            GeometryPointSequence points = new GeometryPointSequence();
            points.PointList = geom.STExteriorRing().ToPointsFArray();
            points.InnerRing = false;
            pointsList.Add(points);
            if (numInteriorRing > 1)

                for (int i = 1; i <= numInteriorRing; i++)
                {
                    points.PointList = geom.STInteriorRingN(i).ToPointsFArray();
                    points.InnerRing = true;
                    pointsList.Add(points);
                }

            return pointsList;
        }