Skip to content

Commit

Permalink
OGR provider: advertize CircularGeometries in capabilities when OGR a…
Browse files Browse the repository at this point in the history
…dvertizes 'CurveGeometries' support
  • Loading branch information
rouault committed Feb 1, 2016
1 parent 47013f7 commit 0bb5b5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -1529,6 +1529,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 0bb5b5b

Please sign in to comment.