Loading POLYGONZ Shapes from disk-based Shapefile drops final Z's
Description
Discovered when reviewing discourse issue "Issues with SHP_POLYGONZ shapefile type", when a polygon-based Shapefile with Z-values (POLYGONZ) is loaded from disk, the loop that copies the Z-values into the memory-based Shapefile stops short of copying the last value, leaving it zero.
Environment
None
Activity
Show:
Jerry Faust
February 12, 2020, 5:41 AM
The problem only existed for POLYGONZ shape types, the looping code that copied the Z values was as follows:
I removed the “ - 1 “ from the terminating condition of the loop.