Skip to content

Commit 9a4d087

Browse files
Fixes #991
1 parent 0907452 commit 9a4d087

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stg/dll/src/gdal/gdal_vect.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ void ReadPolyData(typename sequence_traits<PolygonType>::seq_t dataArray, OGRLay
592592
switch (geometry_type) {
593593

594594
case OGRwkbGeometryType::wkbPoint:
595+
case OGRwkbGeometryType::wkbPoint25D:
595596
reportF(SeverityTypeID::ST_Warning, "Feature %d is a Point and skipped as only Surfaces, aka (Multi)Polygons, are read.\n"
596597
"Hint: Configure another attribute without ValueComposition to read separate points."
597598
, i + firstIndex
@@ -600,13 +601,15 @@ void ReadPolyData(typename sequence_traits<PolygonType>::seq_t dataArray, OGRLay
600601
break;
601602

602603
case OGRwkbGeometryType::wkbMultiPoint:
604+
case OGRwkbGeometryType::wkbMultiPoint25D:
603605
reportF(SeverityTypeID::ST_Warning, "Feature %d is a MultiPoint and skipped as only Surfaces, aka (Multi)Polygons, are read.\n"
604606
"Hint: Configure another attribute with ValueComposition=sequence to read MultiPoints."
605607
, i + firstIndex);
606608
Assign(dataElemRef, Undefined());
607609
break;
608610

609611
case OGRwkbGeometryType::wkbLineString:
612+
case OGRwkbGeometryType::wkbLineString25D:
610613
reportF(SeverityTypeID::ST_Warning, "Feature %d is a Linestring and skipped as only Surfaces, aka (Multi)Polygons, are read.\n"
611614
"Hint: Configure another attribute with ValueComposition=sequence to read Linestrings."
612615
, i + firstIndex);
@@ -628,12 +631,14 @@ void ReadPolyData(typename sequence_traits<PolygonType>::seq_t dataArray, OGRLay
628631
break;
629632

630633
case OGRwkbGeometryType::wkbPolygon:
634+
case OGRwkbGeometryType::wkbPolygon25D:
631635
AddPolygon<PolygonType>(dataElemRef, geo->toPolygon()); break;
632636

633637
case OGRwkbGeometryType::wkbCurvePolygon:
634638
AddPolygon<PolygonType>(dataElemRef, geo->getLinearGeometry()->toPolygon()); break;
635639

636640
case OGRwkbGeometryType::wkbMultiPolygon:
641+
case OGRwkbGeometryType::wkbMultiPolygon25D:
637642
AddMultiPolygon<PolygonType>(dataElemRef, geo->toMultiPolygon()); break;
638643

639644
case OGRwkbGeometryType::wkbMultiLineString:

0 commit comments

Comments
 (0)