Tag Info

New answers tagged

0

After a bit of tinkering with my program I've managed to pull the Layer name and its elements/variables! See code below on how to do it :) void main() { // Register your drivers OGRRegisterAll(); // Get your wfs here - (M_DATASOURCE IN HEADER) m_datasource = OGRSFDriverRegistrar::Open(m_ui->m_line_wfs_name->text().toStdString().c_str(), ...


1

After hours of trying out whatever I could think of, I finally found out that QGIS is not compatible with Qt 5.4. Hence, I managed to run a sample program compiled and linked against Qt 4.8.6.


0

as the compiler says, you have to construct the QApplication first. Instead of: QgsApplication a(argc, argv, true); you have to construct the QAPPLICATION QApplication a(argc, argv, true); I´m pretty shure, thats it.


0

GDAL depends on Proj.4 and the latest version of Proj.4 (4.9.1) includes an API for geodesic calculations (and the geod command uses this API). This is a translation of the C++ geodesic routines in GeographicLib to C. The documentation on the C interface is here. Alternatively, you can use the C++ interface of GeographicLib directly (GeographicLib and GDAL ...


1

Before you use this, please check out this link for a solid Vincenty example. Luckily, Javascript is very C-like so its not too hard to make it work for C++. Please also forgive any coding no-nos as this was thrown together rather quickly. My Datum is WGS84. I ran this through g++ and got a matching answer as their online calculator. I have never been ...


1

You could try using Proj4. The geod command will allow you to calculate the geodesic distance between to points. https://trac.osgeo.org/proj/wiki/man_geod I have not used the C++ API, so perhaps someone else can provide an example.



Top 50 recent answers are included