<div>Hi all,</div><div>I need to union(make OGRGeometry wkbPolygon and that has no interiorRings) polygons in the following 2 situations:</div><div>1. <span style="line-height: 1.5; font-size: 14px;">OGRFeature::getGeometryType() returns </span><span style="line-height: 1.5; font-size: 14px;">wkbPolygon and </span><span style="line-height: 1.5; font-size: 14px;">OGRPolygon::</span><span style="line-height: 1.5; font-size: 14px;">getNumInteriorRings() returns an int that is bigger than 0.</span></div><div><span style="line-height: 1.5; font-size: 14px;">2. </span><span style="font-size: 14px; line-height: 1.5;"> </span><span style="font-size: 14px; line-height: 1.5;">OGRFeature::getGeometryType() returns </span><span style="font-size: 14px; line-height: 1.5;">wkbMultiPolygon. </span></div><div><span style="font-size: 14px; line-height: 1.5;">Neither OGRGeometry::Union nor UnionCascaded returns what I need.</span></div><div><span style="font-size: 14px; line-height: 1.5;">Union just removes the interiorRing ;UnionCascaded returns nullptr.</span></div><div>Am I using these functions the right way or Do I have to use other member functions?</div><div>Thanks.</div><div>Regards,</div><div>ΑΊΜμ³½</div>