New answers tagged

0

In your createPointLayer you're creating a pointer on the heap and dynamic memory will be allocated. Then you remove only the references of this layer-object in map, registry and canvas. But I think you have to free the allocated memory with the delete command or better call the destructor of QgsVectorLayer::~QgsVectorLayer()


0

Found the solution after I explored the documentation a bit more. https://www.gaia-gis.it/gaia-sins/spatialite-cookbook/html/c.html Unfortunately, the cookbook part was more about how to use spatial queries instead of how to create software using the spatialite library, with an incomplete description on how to create the metatables. The missing piece is ...


3

libpq allows us to connect to Postgres/postgis for read write operations. If you have installed Postgres,libpq is already available.It would be available at installation path like C:\Program Files\PostgreSQL\9.5\include . //To make use in C/C++, you include these header files #include "libpq/libpq-fs.h" #include "libpq-fe.h" #include <stdlib.h> ...



Top 50 recent answers are included