Skip to content

Commit

Permalink
Merge pull request #2752 from rouault/ogr_curve_geometries
Browse files Browse the repository at this point in the history
OGR provider: advertize CircularGeometries in capabilities when OGR advertizes 'CurveGeometries' support
  • Loading branch information
nyalldawson committed Feb 1, 2016
2 parents 68e3fdc + 0bb5b5b commit 8ca0ecf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 8ca0ecf

Please sign in to comment.