Raster to vector points

Converts a raster dataset to a shapefile of the Point shapetype. The user must specify the name of a raster file and the name of the output shapefile. Points will correspond with grid cell centre points. All grid cells containing positive, non-zero values will be considered a point. The shapefile's attribute table will contain a field called 'VALUE' that will contain the cell value for each point feature.

See Also:

Scripting:

The following is an example of a Python script that uses this tool:

wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input.dep"
outputFile = wd + "output.shp"
args = [inputFile, outputFile]
pluginHost.runPlugin("RasterToVectorPoints", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.dep"
def outputFile = wd + "output.shp"
String[] args = [inputFile, outputFile]
pluginHost.runPlugin("RasterToVectorPoints", args, false)

Credits: