Index: Core/Plugins/src/Core.Plugins.DotSpatial/Legend/MapLegendView.cs
===================================================================
diff -u -re8ed2a7235a3d440d258ce5f76862196388c64bc -r5819da80218aa466bd274694f7e8ea6ebaf6630a
--- Core/Plugins/src/Core.Plugins.DotSpatial/Legend/MapLegendView.cs (.../MapLegendView.cs) (revision e8ed2a7235a3d440d258ce5f76862196388c64bc)
+++ Core/Plugins/src/Core.Plugins.DotSpatial/Legend/MapLegendView.cs (.../MapLegendView.cs) (revision 5819da80218aa466bd274694f7e8ea6ebaf6630a)
@@ -262,12 +262,12 @@
{
try
{
- return reader.ReadLine(title);
+ return reader.ReadShapeFile(title);
}
catch (ElementReadException e)
{
string message = new FileReaderErrorMessageBuilder(filePath)
- .Build("Het bestand bevat data, welke niet ondersteund wordt.");
+ .Build(DotSpatialResources.MapLegendView_GetShapeFileData_The_File_Contains_Non_Supported_Data_);
throw new CriticalFileReadException(message, e);
}
}
Index: Core/Plugins/src/Core.Plugins.DotSpatial/Properties/Resources.Designer.cs
===================================================================
diff -u -r5e80369138024933a45f3e4ae721509dfb17d8fb -r5819da80218aa466bd274694f7e8ea6ebaf6630a
--- Core/Plugins/src/Core.Plugins.DotSpatial/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 5e80369138024933a45f3e4ae721509dfb17d8fb)
+++ Core/Plugins/src/Core.Plugins.DotSpatial/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 5819da80218aa466bd274694f7e8ea6ebaf6630a)
@@ -136,6 +136,15 @@
}
///
+ /// Looks up a localized string similar to Het bestand bevat data, welke niet ondersteund wordt..
+ ///
+ public static string MapLegendView_GetShapeFileData_The_File_Contains_Non_Supported_Data_ {
+ get {
+ return ResourceManager.GetString("MapLegendView_GetShapeFileData_The_File_Contains_Non_Supported_Data_", resourceCulture);
+ }
+ }
+
+ ///
/// Looks up a localized string similar to &Voeg kaartlaag toe....
///
public static string MapLegendView_MapDataCollectionContextMenuStrip__Add_MapLayer {
Index: Core/Plugins/src/Core.Plugins.DotSpatial/Properties/Resources.resx
===================================================================
diff -u -r5e80369138024933a45f3e4ae721509dfb17d8fb -r5819da80218aa466bd274694f7e8ea6ebaf6630a
--- Core/Plugins/src/Core.Plugins.DotSpatial/Properties/Resources.resx (.../Resources.resx) (revision 5e80369138024933a45f3e4ae721509dfb17d8fb)
+++ Core/Plugins/src/Core.Plugins.DotSpatial/Properties/Resources.resx (.../Resources.resx) (revision 5819da80218aa466bd274694f7e8ea6ebaf6630a)
@@ -211,4 +211,7 @@
Shape file
+
+ Het bestand bevat data, welke niet ondersteund wordt.
+
\ No newline at end of file