Please, can you tell me what is the difference between qgis.utils and qgis.core ?
I'd like to understand step by step the QGIS API Document.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
qgis.utils is a set of utilities used by the application to do Python based things. Some of these things are setting up plugins, adding Python error handling, etc.
qgis.core is the main core library for QGIS. This holds most of the non ui based objects that you can use to build a plugin or standalone application. This library holds things like layers (
QgsVectorLayer), layer registry (
QgsMapLayerRegistry), geometry objects (
QgsGeometry), feature objects (
qgis.gui is the main UI core library. This holds most of the reusable dialogs, widgets, etc that you can use to build an interface using the QGIS libraries. This is where you will find things like
QgsMapCanvas because it is a UI object it lives here.
Note: If you are making a standalone application based on QGIS you should avoid using
qgis.utils as it's mostly tried to the application itself and not normally used standalone.