mirror of
https://github.com/qgis/QGIS.git
synced 2025-07-03 00:03:10 -04:00
Compare commits
3 Commits
3dc54f24c7
...
b002b0c701
Author | SHA1 | Date | |
---|---|---|---|
|
b002b0c701 | ||
|
6249ba4c33 | ||
|
66ce146ba0 |
@ -9,7 +9,7 @@
|
|||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
"expression": "area(@geometry)",
|
"expression": "area(@geometry)",
|
||||||
"returns": "current geometry area"
|
"returns": "area of the current feature's geometry"
|
||||||
},{
|
},{
|
||||||
"expression": "area(geom_from_wkt('POLYGON((0 0, 4 0, 4 2, 0 2, 0 0))'))",
|
"expression": "area(geom_from_wkt('POLYGON((0 0, 4 0, 4 2, 0 2, 0 0))'))",
|
||||||
"returns": "8.0"
|
"returns": "8.0"
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
"description": "a geometry"
|
"description": "a geometry"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "boundary(@geometry)",
|
||||||
|
"returns": "boundary of the current feature's geometry"
|
||||||
|
},{
|
||||||
"expression": "geom_to_wkt(boundary(geom_from_wkt('Polygon((1 1, 0 0, -1 1, 1 1))')))",
|
"expression": "geom_to_wkt(boundary(geom_from_wkt('Polygon((1 1, 0 0, -1 1, 1 1))')))",
|
||||||
"returns": "'LineString(1 1,0 0,-1 1,1 1)'"
|
"returns": "'LineString(1 1,0 0,-1 1,1 1)'"
|
||||||
}, {
|
}, {
|
||||||
@ -16,3 +19,4 @@
|
|||||||
}],
|
}],
|
||||||
"tags": ["polygon", "linestrings", "instance", "combinatorial", "topological", "points", "collections", "types", "ring", "boundary", "closure"]
|
"tags": ["polygon", "linestrings", "instance", "combinatorial", "topological", "points", "collections", "types", "ring", "boundary", "closure"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
"description": "a geometry"
|
"description": "a geometry"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "convex_hull(@geometry)",
|
||||||
|
"returns": "convex hull of the current feature's geometry"
|
||||||
|
},{
|
||||||
"expression": "geom_to_wkt( convex_hull( geom_from_wkt( 'LINESTRING(3 3, 4 4, 4 10)' ) ) )",
|
"expression": "geom_to_wkt( convex_hull( geom_from_wkt( 'LINESTRING(3 3, 4 4, 4 10)' ) ) )",
|
||||||
"returns": "'POLYGON((3 3, 4 10, 4 4, 3 3))'"
|
"returns": "'POLYGON((3 3, 4 10, 4 4, 3 3))'"
|
||||||
}],
|
}],
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
"description": "geometry object"
|
"description": "geometry object"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "end_point(@geometry)",
|
||||||
|
"returns": "end point of the current feature's geometry"
|
||||||
|
},{
|
||||||
"expression": "geom_to_wkt(end_point(geom_from_wkt('LINESTRING(4 0, 4 2, 0 2)')))",
|
"expression": "geom_to_wkt(end_point(geom_from_wkt('LINESTRING(4 0, 4 2, 0 2)')))",
|
||||||
"returns": "'Point (0 2)'"
|
"returns": "'Point (0 2)'"
|
||||||
}],
|
}],
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
"expression": "geom_to_wkb( @geometry )",
|
"expression": "geom_to_wkb( @geometry )",
|
||||||
"returns": "binary blob containing a geometry object"
|
"returns": "binary blob of the current feature's geometry"
|
||||||
}],
|
}],
|
||||||
"tags": ["wkb", "binary", "representation", "known", "conversion"]
|
"tags": ["wkb", "binary", "representation", "known", "conversion"]
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
"default": "8"
|
"default": "8"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "geom_to_wkt(@geometry)",
|
||||||
|
"returns": "well-known text representation of the current feature's geometry"
|
||||||
|
},{
|
||||||
"expression": "geom_to_wkt( make_point(6, 50) )",
|
"expression": "geom_to_wkt( make_point(6, 50) )",
|
||||||
"returns": "'POINT(6 50)'"
|
"returns": "'POINT(6 50)'"
|
||||||
}, {
|
}, {
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
"description": "a geometry"
|
"description": "a geometry"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "is_multipart(@geometry)",
|
||||||
|
"returns": "checks if the current feature's geometry is multipart"
|
||||||
|
},{
|
||||||
"expression": "is_multipart(geom_from_wkt('MULTIPOINT ((0 0),(1 1),(2 2))'))",
|
"expression": "is_multipart(geom_from_wkt('MULTIPOINT ((0 0),(1 1),(2 2))'))",
|
||||||
"returns": "TRUE"
|
"returns": "TRUE"
|
||||||
}, {
|
}, {
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
"description": "a geometry"
|
"description": "a geometry"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "is_valid(@geometry)",
|
||||||
|
"returns": "checks if the current feature's geometry is valid"
|
||||||
|
},{
|
||||||
"expression": "is_valid(geom_from_wkt('LINESTRING(0 0, 1 1, 2 2, 0 0)'))",
|
"expression": "is_valid(geom_from_wkt('LINESTRING(0 0, 1 1, 2 2, 0 0)'))",
|
||||||
"returns": "TRUE"
|
"returns": "TRUE"
|
||||||
}, {
|
}, {
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
"description": "line geometry object"
|
"description": "line geometry object"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "length(@geometry)",
|
||||||
|
"returns": "length of the current feature's geometry"
|
||||||
|
},{
|
||||||
"expression": "length(geom_from_wkt('LINESTRING(0 0, 4 0)'))",
|
"expression": "length(geom_from_wkt('LINESTRING(0 0, 4 0)'))",
|
||||||
"returns": "4.0"
|
"returns": "4.0"
|
||||||
}]
|
}]
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
"description": "line geometry object"
|
"description": "line geometry object"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "length3D(@geometry)",
|
||||||
|
"returns": "3D length of the current feature's geometry"
|
||||||
|
},{
|
||||||
"expression": "length3D(geom_from_wkt('LINESTRINGZ(0 0 0, 3 0 4)'))",
|
"expression": "length3D(geom_from_wkt('LINESTRINGZ(0 0 0, 3 0 4)'))",
|
||||||
"returns": "5.0"
|
"returns": "5.0"
|
||||||
}],
|
}],
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
"description": "polygon geometry object"
|
"description": "polygon geometry object"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "perimeter(@geometry)",
|
||||||
|
"returns": "perimeter of the current feature's geometry"
|
||||||
|
},{
|
||||||
"expression": "perimeter(geom_from_wkt('POLYGON((0 0, 4 0, 4 2, 0 2, 0 0))'))",
|
"expression": "perimeter(geom_from_wkt('POLYGON((0 0, 4 0, 4 2, 0 2, 0 0))'))",
|
||||||
"returns": "12.0"
|
"returns": "12.0"
|
||||||
}],
|
}],
|
||||||
|
@ -8,8 +8,11 @@
|
|||||||
"description": "a geometry"
|
"description": "a geometry"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "x_max(@geometry)",
|
||||||
|
"returns": "the maximum x coordinate of the current feature's geometry"
|
||||||
|
},{
|
||||||
"expression": "x_max( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )",
|
"expression": "x_max( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )",
|
||||||
"returns": "4"
|
"returns": "4"
|
||||||
}],
|
}],
|
||||||
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "maximum"]
|
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "maximum", "east"]
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,11 @@
|
|||||||
"description": "a geometry"
|
"description": "a geometry"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "x_min(@geometry)",
|
||||||
|
"returns": "the minimum x coordinate of the current feature's geometry"
|
||||||
|
},{
|
||||||
"expression": "x_min( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )",
|
"expression": "x_min( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )",
|
||||||
"returns": "2"
|
"returns": "2"
|
||||||
}],
|
}],
|
||||||
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "minimum"]
|
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "minimum", "west"]
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,11 @@
|
|||||||
"description": "a geometry"
|
"description": "a geometry"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "y_max(@geometry)",
|
||||||
|
"returns": "the maximum y coordinate of the current feature's geometry"
|
||||||
|
},{
|
||||||
"expression": "y_max( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )",
|
"expression": "y_max( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )",
|
||||||
"returns": "8"
|
"returns": "8"
|
||||||
}],
|
}],
|
||||||
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "maximum"]
|
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "maximum", "north"]
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,11 @@
|
|||||||
"description": "a geometry"
|
"description": "a geometry"
|
||||||
}],
|
}],
|
||||||
"examples": [{
|
"examples": [{
|
||||||
|
"expression": "y_min(@geometry)",
|
||||||
|
"returns": "the minimum y coordinate of the current feature's geometry"
|
||||||
|
},{
|
||||||
"expression": "y_min( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )",
|
"expression": "y_min( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )",
|
||||||
"returns": "5"
|
"returns": "5"
|
||||||
}],
|
}],
|
||||||
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "minimum"]
|
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "minimum", "south"]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user