QGIS算法

来源:互联网 发布:妃子 侍寝 知乎 编辑:程序博客网 时间:2024/05/17 02:06

TablesProcessing providers and algorithms处理供应商和算法

GDAL algorithm provider GDAL算法提供者

GDAL是一个读写空间数据(这里的空间数据包括栅格数据和矢量数据)的开源库,但不仅限于此,此外还提供了一些非常常用的算法和工具。

GDAL analysis

Aspect

生成坡向图像__描述__:

gdalwarp工具是一个图像镶嵌、重投影、和纠正的工具。程序可以重投影到任何支持的投影。

参数

Input layer[raster]

–输入栅格图层

Band number[number]

–波段包含的高程值数,默认为1

Compute edges[boolean]

–由高程栅格生成边

Use Zevenbergen&Thorne formula (instead of the Horn's one) [boolean]

–设置输出图像的分辨率。默认为0

Return trigonometric angle (instead of azimuth) [boolean]

–重采样方式,默认为0

Return 0 for flat (instead of -9999) [boolean]

输出
Output layer [raster]

–选项
默认: (未设置)

控制台用法

    processing.runalg('gdalogr:aspect', input, band, compute_edges, zevenbergen, trig_angle, zero_flat, output)
  • Color relief

    生成一个颜色渲染地图。

  • Fill nodata

    填充无意义值

Grid (Moving average)

格网:移动平均值是一个简单的数据平均算法,具体是用一个椭圆形的移动窗口,然后搜索在移动窗口中的所有的离散点,然后计算平均值。搜索椭圆可以指定旋转角度,椭圆的中心点位于网格节点。数据点的最少个数的平均值可以进行设置,如果没有足够的点在移动窗口中,这个网格节点就是空的,然后使用NODATA值来进行填充。
  • Grid (Data metrics)
  • Grid (Inverse distance to a power)
  • Grid (Nearest neighbor)
  • Hillshade

    生成山地阴影图像

  • Near black

  • Proximity (raster distance)
  • Roughness

    生成粗糙度图像

  • Sieve

  • Slope

    生成坡度图像

  • TPI (Topographic Position Index)

    生成地表耐用指数图像

  • TRI (Terrain Ruggedness Index)

    生成地形位置指数图像

  • GDAL conversion

    • gdal2xyz
    • PCT to RGB
    • Polygonize (raster to vector)
    • Rasterize (vector to raster)
    • RGB to PCT
    • Translate (convert format)

    gdal is

  • GDAL extraction

    • Clip raster by extent
    • Clip raster by mask layer
    • Contour
  • GDAL miscellaneous

    • Build Virtual Raster
      Merge
      Build overviews (pyramids)
      Information
      Tile Index

GDAL projections

Extract projection

Warp (reproject)

描述

gdalwarp工具是一个图像镶嵌、重投影、和纠正的工具。程序可以重投影到任何支持的投影。

参数

Input layer[raster]

–输入栅格图层

Source SRS(EPSG Code)[crs]

–原始空间参考,栅格数据的坐标参考系统。默认为EPSG:4326,也就是WGS84

Destination SRS (EPSG Code)[crs]

–目标空间参考,坐标系统是可以使用函数OGRSpatialReference.SetFromUserInput()调用的就行,包括EPSG PCS,PROJ4或者后缀名为.prf的wkt文本文件。默认为EPSG:4326

Output file resolution in target georeferenced units (leave 0 for no change) [number]

–设置输出图像的分辨率。默认为0

Resampling method [selection]

–重采样方式,默认为0
Options:

    0 — near        最邻近采样方法(默认值,算法较快,但是质量较差)。    1 — bilinear    双线性内插采样。    2 — cubic       立方卷积采样。    3 — cubicspline 立方样条采样    4 — lanczos     Lanczos 窗口辛克采样。

Additional creation parameters [string]

–选项
<参数描述>,默认:未设置

Output raster type [selection]

–定义输出栅格的格式或类型,默认为Float32。提供的类型有

Options:    0 — Byte    1 — Int16    2 — UInt16    3 — UInt32Float32    4 — Int32    5 — Float32    6 — Float64    7 — CInt16    8 — CInt32    9 — CFloat32    10 — CFloat64

输出
Output layer [raster]

–选项
<参数描述>
默认: (未设置)

控制台用法

    processing.runalg('gdalogr:warpreproject', input, source_srs, dest_srs, tr, method, extra, rtype, output)

OGR conversion
 Convert format
OGR geoprocessing
 Clip vectors by extent
 Clip vectors by polygon
OGR miscellaneous
 Execute SQL
 Import Vector into PostGIS database (available connections)
 Import Vector into PostGIS database (new connection)
 Information

Database

Raster general

Raster

Table

Vector analysis

Count points in polygon

描述

计算多边形(面)里的点个数

参数

Polygons[Vector:polygon]

–面图层

Points[vector: point]]

–点图层

Count field name[string]

–计算字段,用来存储点的个数,默认为NumPoints

输出

Result[vector]

–返回图层,包括存储点个数的字段

控制台用法

    processing.runalg('qgis:countpointsinpolygon', polygons, points, field, output)

Count points in polygon (weighted)

描述

计算多边形(面)里的点个数,计算面图层每个要素的选中字段的均值,这些值将会添加到输出结果的属性表中。

参数

Polygons[Vector:polygon]

–面图层

Points[vector: point]]

–点图层

Weight field [tablefield: any]

–点属性表中的权重字段

Count field name[string]

–计算字段,存储权重计算后的结果,默认为NumPoints

输出

Result[vector]

–计算得到的面图层

控制台用法

    processing.runalg('qgis:countpointsinpolygonweighted', polygons, points, weight, field, output)
  • Count unique points in polygon

描述

计算多边形(面)里的特定的点个数。

参数

Polygons[Vector:polygon]

–面图层

Points[vector: point]]

–点图层

Class field[tablefield: any]

–用于特定计算的字段名

Count field name[string]

–计算字段,用来存储点的个数,默认为NumPoints

输出

Result[vector]

–结果图层

控制台用法

    processing.runalg('qgis:countuniquepointsinpolygon', polygons, points, classfield, field, output)
  • Distance matrix

描述

计算两个点图层的距离矩阵

参数

Input point layer[vector: point]

–输入

Input unique ID field[tablefield: any]

–输入图层的唯一约束ID

target point layer[vector: point]

–目标点图层

target unique ID field[tablefield: any]

–目标图层的唯一约束ID

Output matrix type[selection]

–输出矩阵类型

Options: 默认为0

    0 — Linear (N*k x 3) distance matrix    1 — Standard (N x T) distance matrix    2 — Summary distance matrix (mean, std. dev., min, max)

Use only the nearest (k) target points [number]

–默认为0

输出

Distance matrix [table]

–距离矩阵

控制台用法

    processing.runalg('qgis:distancematrix', input_layer, input_field, target_layer, target_field, matrix_type, nearest_points, distance_matrix)

Vector creation

Vector general

Vector geometry

Vector overlay

Vector selection

Vector table

0 0
原创粉丝点击