+ fix record length check to account for OGR not writing PointZ according to

shapefile spec - PointZ: type,x,y,z,measure  (#1193, #504)
This commit is contained in:
artemp 2012-12-06 15:14:06 +00:00
parent ff8f3f1d45
commit da0d74529d

View File

@ -109,8 +109,8 @@ feature_ptr shape_featureset<filterT>::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);
}