Handle shapefiles that are not consistant in their types
An user sent me a shapefile with only 1 shape. MapWinGIS recognizes the shapefile as a Polyline but the shapes as PolylineZ this causes the reproject routine to skip this shape and eventually returning a shapefile without shapes.
The shapefile is correctly shown on the map.
I just pushed another commit in which I changed the detection of the equality of the shapefile/shape types.
Now I first check if the original shapefile type and shape type are equal. If not I check if the 2D versions of the types are equal.
When this property is true I continue adding the shapes to the shapefile.
I fixed this by not checking if the shapefile type and shape type are equal but if the 2D version of the shape type is equal to the shapefile type:
I first opened utah-central and then dropped utah-north. MW5 prompted me to reproject and the reprojected version is on the same location as utah-central.
With this fix it is possible to have a polyline shapefile which has polyline, polylineZ or polylineM shape types.