Cannot merge two PointM shapefiles

Description

As mentioned here: https://github.com/MapWindow/MapWinGIS/issues/31

The two M point shapefiles cannot be merge. It throws an exception.

Testcode:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [TestMethod] public void MergeM() { const string sf1Location = @"shp1_point_m\SHP1_POINT_M.shp"; const string sf2Location = @"shp2_point_m\SHP2_POINT_M.shp"; var sf1 = new Shapefile(); if (!sf1.Open(sf1Location)) Assert.Fail("Can't open " + sf1Location + " Error: " + sf1.ErrorMsg[sf1.LastErrorCode]); var sf2 = new Shapefile(); if (!sf2.Open(sf2Location)) Assert.Fail("Can't open " + sf2Location + " Error: " + sf2.ErrorMsg[sf2.LastErrorCode]); var sfMerged = sf1.Merge(false, sf2, false); Assert.IsNotNull(sfMerged, "Merge failed"); Assert.AreEqual(2, sfMerged.NumShapes, "Incorrect number of shapes"); }

Environment

None

Status

Assignee

Paul Meems

Reporter

Paul Meems

Labels

None

Fix versions

Affects versions

v4.9.4.2

Priority

Medium
Configure