using System; using Core.Components.Gis.Data; using Core.Components.Gis.Style; using DotSpatial.Symbology; namespace Core.Components.DotSpatial.Converter { /// /// Helper methods related to instancees. /// public static class MapDataHelper { /// /// Converts to . /// /// The symbol to convert. /// The converted . public static PointShape Convert(PointSymbol symbol) { PointShape shape; switch (symbol) { case PointSymbol.Circle: shape = PointShape.Ellipse; break; case PointSymbol.Square: shape = PointShape.Rectangle; break; case PointSymbol.Triangle: shape = PointShape.Triangle; break; default: throw new NotSupportedException(); } return shape; } } }