1

I want to do some work with projections in my c++ application with QGIS API v2.14. But canvas and layers didn't return their CRS. Even when I'm setting it to them with setDestinationCrs() for canvas or setCrs() for the layer they returns nothing anyway. QGIS desktop application returns canvas and layers CRS from console at the same time. OS is CentOS 7. QGIS API v 1.8 on CentOS 6 has the same problem too.

1 Answer 1

1

Fixed with adding "QgsApplication::setPrefixPath("/usr", TRUE);" before "QgsApplication::initQgis();".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.