[Qgis-developer] qgis vector editing/digitisation

Marco Hugentobler marco.hugentobler at sourcepole.ch
Thu Sep 23 10:18:58 EDT 2010


Hi Mohammed

> I would like to make a standalone vector editing application by reusing
> existing qgis code ? Is it possible?

Yes, it is possible (but the application needs to be licensed under the terms 
of GPL).

> which part of code is responsible for vector editing/digitising ?

Basically the class QgsVectorLayer (qgsvectorlayer.h). This class caches the 
edits in memory and commits changes to the providers.

> what all includes from Qgis do i need to use?

You need the core library (libqgiscore.so) and probably also the gui library 
for display.

> Any please help me with an example

You could look at the edit tool classes (e.g. qgsmaptooladdfeature.cpp/h, 
qgsmaptoolsplitfeatures.cpp/h).

Regards,
Marco 



Am Donnerstag, 23. September 2010, um 13.43:13 schrieb Mohammed Rashad:
> Hi all,
> sorry for cross posting. kindly forgive me
> 
> 
> I would like to make a standalone vector editing application by reusing
> existing qgis code ? Is it possible?
> which part of code is responsible for vector editing/digitising ?
> what all includes from Qgis do i need to use?
> Any please help me with an example


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Webereistrasse 66, 8134 Adliswil, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee


More information about the Qgis-developer mailing list