Skip to content

Instantly share code, notes, and snippets.

@dakcarto
Created October 12, 2015 15:59
Show Gist options
  • Save dakcarto/202060d6b257df6b0679 to your computer and use it in GitHub Desktop.
Save dakcarto/202060d6b257df6b0679 to your computer and use it in GitHub Desktop.
src/core/geometry/qgsgeos.cpp:1415:63: error: no member named 'round' in namespace 'std'
GEOSCoordSeq_setX_r( geosinit.ctxt, coordSeq, i, std::round( pt.x() / precision ) * precision );
~~~~~^
src/core/geometry/qgsgeos.cpp:1416:63: error: no member named 'round' in namespace 'std'
GEOSCoordSeq_setY_r( geosinit.ctxt, coordSeq, i, std::round( pt.y() / precision ) * precision );
~~~~~^
src/core/geometry/qgsgeos.cpp:1419:75: error: no member named 'round' in namespace 'std'
GEOSCoordSeq_setOrdinate_r( geosinit.ctxt, coordSeq, i, 2, std::round( pt.z() / precision ) * precision );
~~~~~^
src/core/geometry/qgsgeos.cpp:1467:61: error: no member named 'round' in namespace 'std'
GEOSCoordSeq_setX_r( geosinit.ctxt, coordSeq, 0, std::round( pt->x() / precision ) * precision );
~~~~~^
src/core/geometry/qgsgeos.cpp:1468:61: error: no member named 'round' in namespace 'std'
GEOSCoordSeq_setY_r( geosinit.ctxt, coordSeq, 0, std::round( pt->y() / precision ) * precision );
~~~~~^
src/core/geometry/qgsgeos.cpp:1471:73: error: no member named 'round' in namespace 'std'
GEOSCoordSeq_setOrdinate_r( geosinit.ctxt, coordSeq, 0, 2, std::round( pt->z() / precision ) * precision );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment