View source: R/qgis_countpointsinpolygon.R
qgis_countpointsinpolygon | R Documentation |
QGIS Algorithm provided by QGIS (native c++) Count points in polygon (native:countpointsinpolygon). Counts point features located within polygon features. This algorithm takes a points layer and a polygon layer and counts the number of points from the first one in each polygons of the second one. A new polygons layer is generated, with the exact same content as the input polygons layer, but containing an additional field with the points count corresponding to each polygon. An optional weight field can be used to assign weights to each point. If set, the count generated will be the sum of the weight field for each point contained by the polygon. Alternatively, a unique class field can be specified. If set, points are classified based on the selected attribute, and if several points with the same attribute value are within the polygon, only one of them is counted. The final count of the point in a polygon is, therefore, the count of different classes that are found in it. Both the weight field and unique class field cannot be specified. If they are, the weight field will take precedence and the unique class field will be ignored.
qgis_countpointsinpolygon(
POLYGONS = qgisprocess:::qgis_default_value(),
POINTS = qgisprocess:::qgis_default_value(),
WEIGHT = qgisprocess:::qgis_default_value(),
CLASSFIELD = qgisprocess:::qgis_default_value(),
FIELD = qgisprocess:::qgis_default_value(),
OUTPUT = qgisprocess:::qgis_default_value(),
...,
.complete_output = .complete_output_option(),
.quiet = .quiet_option(),
.messages = .message_option()
)
POLYGONS |
|
POINTS |
|
WEIGHT |
|
CLASSFIELD |
|
FIELD |
|
OUTPUT |
|
... |
further parameters passed to |
.complete_output |
logical specifying if complete out of |
.quiet |
logical specifying if parameter |
.messages |
logical specifying if messages from |
OUTPUT - outputVector - Count
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.