I wanted to know how qgis reads shape file. Like i have choose any shape file from qgis dialog then what are the steps that qgis take to read and render this shaoe file data. Wrather it reads full shape file data into memory or it opens file connection and reads and renders at runtime?
So far i have found this
layer = QgsVectorLayer(path, name, provider)if not layer.isValid(): raise IOError, "Failed to open the layer"# add layer to the registryQgsMapLayerRegistry.instance().addMapLayer(layer)# set extent to the extent of our layercanvas.setExtent(layer.extent())# set the map canvas layer setcanvas.setLayerSet([QgsMapCanvasLayer(layer)])I have opened documentation of each function but i am not successfull in understanding flow of how it is reading shape file
أكثر...
So far i have found this
layer = QgsVectorLayer(path, name, provider)if not layer.isValid(): raise IOError, "Failed to open the layer"# add layer to the registryQgsMapLayerRegistry.instance().addMapLayer(layer)# set extent to the extent of our layercanvas.setExtent(layer.extent())# set the map canvas layer setcanvas.setLayerSet([QgsMapCanvasLayer(layer)])I have opened documentation of each function but i am not successfull in understanding flow of how it is reading shape file
أكثر...