Tag Info

New answers tagged


With libtiff you can't get altitude from you file. I spent a lot of time trying to do it with libgeotiff. My advice is to install GDAL. Example: GDALRasterIO( hBand_ , GF_Read , p, l, 1, 1, &pafScanline, 1, 1, GDT_Float32, 0, 0 );


The problem is solved by Matthias Kuhn, see Here. QgsLayerTreeMapCanvasBridge should help you there header: QgsLayerTreeMapCanvasBridge* mLayerTreeCanvasBridge; source: mLayerTreeCanvasBridge = new QgsLayerTreeMapCanvasBridge( QgsProject::instance()->layerTreeRoot(), mMapCanvas, this ); QgsProject::instance()->read( path_to_your_project_file ...


I had your same problem. I solved it updating the code in order to match the QGis 2 major changes: int main(int argc, char *argv[]) { QgsApplication app(argc, argv, true); QString myPluginsDir = "/usr/lib64/qgis"; QString myLayerPath = "pathtoashapefile"; QString myLayerBaseName = "italy"; QString myProviderName = "ogr"; // ...

Top 50 recent answers are included