Utilities around QgsVectorLayer
Clip vector layer using polygon.
Return part of the objects that lie within the polygon.
Parameters: |
|
---|---|
Returns: | Vector layer with split geometry |
Return type: | QgsVectorLayer |
Create empty layer.
The CRS and Geometry Type of new layer are the same as of vector layer. Attributes of the layer are copied from vector.
Parameters: | vector (QgsVectorLayer) – Vector layer |
---|---|
Returns: | Empty vector layer (stored in memory) |
Return type: | QgsVectorLayer |
Convert the supplied extent to geographic and return as an array.
Parameters: |
|
---|---|
Returns: | a list in the form [xmin, ymin, xmax, ymax] where all coordinates provided are in Geographic / EPSG:4326. |
Return type: | list |
Create polygon layer around points. The polygons are dx to dy. Attributes of the points are copied. A point position is upper-left corner of the created rectangle.
Parameters: |
|
---|---|
Returns: | Polygon layer |
Return type: | QgsVectorLayer |
Reproject a vector layer to given CRS
Parameters: |
|
---|---|
Returns: | a vector layer with the specified projection |
Return type: | QgsVectorLayer |
Split objects from vector layer by polygon.
If request is specified, filter the objects before splitting.
If part of vector object lies in the polygon, mark it by mark_value ( optional).
Parameters: |
|
---|---|
Returns: | Vector layer with split geometry |
Return type: | QgsVectorLayer |
Return union of the vector geometries regardless of the attributes. (If request is specified, filter the objects before union). If all geometries in the vector are invalid, return None.
The boundaries will be dissolved during the operation.
Parameters: |
|
---|---|
Returns: | Union of the geometry |
Return type: | QgsGeometry or None |