New answers tagged

2

Simple. Use the PointOnAreaOverlayer transformer. In the parameters dialog set a list name. The polygon features will emerge with a list of which point features fell inside, including their attributes. Then use a ListSummer transformer to add up the attribute X in that list. I put an example workspace (template) on Dropbox at: ...


2

You can use an adaptation of the next code (by using the path of your particular raster): from osgeo import gdal import numpy as np raster = "/home/zeito/pyqgis_data/utah_demUTM2.tif" dataset = gdal.Open(raster) band = dataset.GetRasterBand(1) print "rows = %d columns = %d" % (band.YSize, band.XSize) BandType = gdal.GetDataTypeName(band.DataType) print ...



Top 50 recent answers are included