Index: Core/Components/src/Core.Components.DotSpatial/Converter/FeatureBasedMapDataConverter.cs =================================================================== diff -u -r9e14081c0645aa7b8460793d6773438f9955e87d -r5723491ce6008d3f43b0f9c96271f18844a19c1a --- Core/Components/src/Core.Components.DotSpatial/Converter/FeatureBasedMapDataConverter.cs (.../FeatureBasedMapDataConverter.cs) (revision 9e14081c0645aa7b8460793d6773438f9955e87d) +++ Core/Components/src/Core.Components.DotSpatial/Converter/FeatureBasedMapDataConverter.cs (.../FeatureBasedMapDataConverter.cs) (revision 5723491ce6008d3f43b0f9c96271f18844a19c1a) @@ -75,6 +75,8 @@ ConvertLayerProperties((TFeatureBasedMapData) data, (TMapFeatureLayer) layer); } + protected abstract IFeatureLayer CreateLayer(); + protected abstract IEnumerable CreateFeatures(MapFeature mapFeature); /// Index: Core/Components/src/Core.Components.DotSpatial/Converter/MapLineDataConverter.cs =================================================================== diff -u -r9e14081c0645aa7b8460793d6773438f9955e87d -r5723491ce6008d3f43b0f9c96271f18844a19c1a --- Core/Components/src/Core.Components.DotSpatial/Converter/MapLineDataConverter.cs (.../MapLineDataConverter.cs) (revision 9e14081c0645aa7b8460793d6773438f9955e87d) +++ Core/Components/src/Core.Components.DotSpatial/Converter/MapLineDataConverter.cs (.../MapLineDataConverter.cs) (revision 5723491ce6008d3f43b0f9c96271f18844a19c1a) @@ -37,6 +37,11 @@ /// public class MapLineDataConverter : FeatureBasedMapDataConverter { + protected override IFeatureLayer CreateLayer() + { + return new MapLineLayer(); + } + protected override IEnumerable CreateFeatures(MapFeature mapFeature) { yield return new Feature(GetGeometry(mapFeature)); Index: Core/Components/src/Core.Components.DotSpatial/Converter/MapPointDataConverter.cs =================================================================== diff -u -r9e14081c0645aa7b8460793d6773438f9955e87d -r5723491ce6008d3f43b0f9c96271f18844a19c1a --- Core/Components/src/Core.Components.DotSpatial/Converter/MapPointDataConverter.cs (.../MapPointDataConverter.cs) (revision 9e14081c0645aa7b8460793d6773438f9955e87d) +++ Core/Components/src/Core.Components.DotSpatial/Converter/MapPointDataConverter.cs (.../MapPointDataConverter.cs) (revision 5723491ce6008d3f43b0f9c96271f18844a19c1a) @@ -35,6 +35,11 @@ /// public class MapPointDataConverter : FeatureBasedMapDataConverter { + protected override IFeatureLayer CreateLayer() + { + return new MapPointLayer(); + } + protected override IEnumerable CreateFeatures(MapFeature mapFeature) { return GetAllMapFeatureCoordinates(mapFeature).Select(c => new Feature(new Point(c.X, c.Y))); Index: Core/Components/src/Core.Components.DotSpatial/Converter/MapPolygonDataConverter.cs =================================================================== diff -u -r9e14081c0645aa7b8460793d6773438f9955e87d -r5723491ce6008d3f43b0f9c96271f18844a19c1a --- Core/Components/src/Core.Components.DotSpatial/Converter/MapPolygonDataConverter.cs (.../MapPolygonDataConverter.cs) (revision 9e14081c0645aa7b8460793d6773438f9955e87d) +++ Core/Components/src/Core.Components.DotSpatial/Converter/MapPolygonDataConverter.cs (.../MapPolygonDataConverter.cs) (revision 5723491ce6008d3f43b0f9c96271f18844a19c1a) @@ -36,6 +36,11 @@ /// public class MapPolygonDataConverter : FeatureBasedMapDataConverter { + protected override IFeatureLayer CreateLayer() + { + return new MapPolygonLayer(); + } + protected override IEnumerable CreateFeatures(MapFeature mapFeature) { var geometryList = new List(); Index: Core/Components/test/Core.Components.DotSpatial.Test/Converter/FeatureBasedMapDataConverterTest.cs =================================================================== diff -u -r9e14081c0645aa7b8460793d6773438f9955e87d -r5723491ce6008d3f43b0f9c96271f18844a19c1a --- Core/Components/test/Core.Components.DotSpatial.Test/Converter/FeatureBasedMapDataConverterTest.cs (.../FeatureBasedMapDataConverterTest.cs) (revision 9e14081c0645aa7b8460793d6773438f9955e87d) +++ Core/Components/test/Core.Components.DotSpatial.Test/Converter/FeatureBasedMapDataConverterTest.cs (.../FeatureBasedMapDataConverterTest.cs) (revision 5723491ce6008d3f43b0f9c96271f18844a19c1a) @@ -28,6 +28,7 @@ using Core.Components.Gis.Features; using DotSpatial.Controls; using DotSpatial.Data; +using DotSpatial.Symbology; using NUnit.Framework; namespace Core.Components.DotSpatial.Test.Converter @@ -124,6 +125,11 @@ throw new NotImplementedException(); } + protected override IFeatureLayer CreateLayer() + { + throw new NotImplementedException(); + } + protected override IEnumerable CreateFeatures(MapFeature mapFeature) { throw new NotImplementedException();