Skip to content

Commit 0bb5b5b

Browse files
committedFeb 1, 2016
OGR provider: advertize CircularGeometries in capabilities when OGR advertizes 'CurveGeometries' support
1 parent 47013f7 commit 0bb5b5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/providers/ogr/qgsogrprovider.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,12 @@ int QgsOgrProvider::capabilities() const
15291529
}
15301530
}
15311531

1532+
/* Curve geometries are available in some drivers starting with GDAL 2.0 */
1533+
if ( OGR_L_TestCapability( ogrLayer, "CurveGeometries" ) )
1534+
{
1535+
ability |= CircularGeometries;
1536+
}
1537+
15321538
// supports geometry simplification on provider side
15331539
#if defined(GDAL_VERSION_NUM) && defined(GDAL_COMPUTE_VERSION)
15341540
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(1,11,0)

0 commit comments

Comments
 (0)
Please sign in to comment.