Skip to content
Permalink
Browse files

Merge pull request #2752 from rouault/ogr_curve_geometries

OGR provider: advertize CircularGeometries in capabilities when OGR advertizes 'CurveGeometries' support
  • Loading branch information
nyalldawson committed Feb 1, 2016
2 parents 68e3fdc + 0bb5b5b commit 8ca0ecf7e2e34b5211bcf0e3a98076717770042b
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/providers/ogr/qgsogrprovider.cpp
@@ -1558,6 +1558,12 @@ int QgsOgrProvider::capabilities() const
}
}

/* Curve geometries are available in some drivers starting with GDAL 2.0 */
if ( OGR_L_TestCapability( ogrLayer, "CurveGeometries" ) )
{
ability |= CircularGeometries;
}

// supports geometry simplification on provider side
#if defined(GDAL_VERSION_NUM) && defined(GDAL_COMPUTE_VERSION)
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(1,11,0)

0 comments on commit 8ca0ecf

Please sign in to comment.
You can’t perform that action at this time.