From da0d74529d05487ce3bfef4704f587e89aba11a9 Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 6 Dec 2012 15:14:06 +0000 Subject: [PATCH] + fix record length check to account for OGR not writing PointZ according to shapefile spec - PointZ: type,x,y,z,measure (#1193, #504) --- plugins/input/shape/shape_featureset.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/input/shape/shape_featureset.cpp b/plugins/input/shape/shape_featureset.cpp index 18caa19c3..3cdaec46d 100644 --- a/plugins/input/shape/shape_featureset.cpp +++ b/plugins/input/shape/shape_featureset.cpp @@ -109,8 +109,8 @@ feature_ptr shape_featureset::next() double y = shape_.shp().read_double(); // skip z shape_.shp().skip(8); - // skip m if exists - if (shape_.reclength_ == 8 + 36) + // skip m if exists: OGR bug + if (shape_.reclength_ == 18) { shape_.shp().skip(8); }