Hot answers tagged vector
I figured it out! It was something very small. Basically, the layers you would like to see displayed on the canvas is provided through canvas.setLayerSet(list_of_layers). # total list of layers actually displayed on map canvas canvas_layers =  # load vector layers for files in os.listdir(source_dir): # load only the shapefiles if files.endswith("...
This should help: if layer.type() == QgsMapLayer.VectorLayer and (layer.wkbType()==QGis.WKBPoint or layer.wkbType() == QGis.WKBMultiPoint): But it is not the best approach. Just use QgsMapLayerComboBox https://qgis.org/api/classQgsMapLayerComboBox.html use: comboBox.setFilters(QgsMapLayerProxyModel.PointLayer) On your combobox object.
you could also do the conversion from degrees to meters which changes depending on the coordenates , on my case NE of Spain 0.000004°=0.9 mts approx. There are on line calculators like http://msi.nga.mil/MSISiteContent/StaticFiles/Calculators/degree.html
The solution was: Right-Click on the Layer > Save As > Change the CRS to (NC State Plane) > New Project > Project > Project Properties > On the Fly > NC State Plane > Vector > Geoprocessing Tools > Buffer > Unit = 98.424 (30 * 3.2808)
Use QgsFieldComboBox instead - then all the work is already done for you, including nice features like showing the field type in an icon. See https://qgis.org/api/classQgsFieldComboBox.html
I don't know if there is a similar tool in QGIS, but in ArcGIS there is a function called Extract to Points (under Spatial Analyst Tools - Extraction). I have been using this with big datasets, and it works. However, you would have to define the points initially that you want to extract the data too. If you wish to lower the resolution, you could use a tool ...
GRASS's r.statistics may be what you want. If you rasterize your shapefile (with unique id's for each polygon) you can include it as the 'base' layer, with your land use raster as the 'cover' layer. GRASS zonal statistics will not work for what you want.
The plugin in the accepted answer is not available anymore. The Affine Transformations is available and is very useful. With this plugin you can create a formula. In the screenshot I shifted all cells with 17.396 (meters) to the north.
Only top voted, non community-wiki answers of a minimum length are eligible