Compare commits

..

3 Commits

Author SHA1 Message Date
Tudor Bărăscu
b002b0c701 more help improvements 2025-07-01 21:31:10 +03:00
Tudor Bărăscu
6249ba4c33 improve boundary, convex_hull, end_point, geom_to_wkt help 2025-07-01 20:14:41 +03:00
Tudor Bărăscu
66ce146ba0 improve help for length and perimeter functions 2025-07-01 19:44:01 +03:00
15 changed files with 46 additions and 6 deletions

View File

@ -9,7 +9,7 @@
}],
"examples": [{
"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))'))",
"returns": "8.0"

View File

@ -8,6 +8,9 @@
"description": "a geometry"
}],
"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))')))",
"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"]
}

View File

@ -8,6 +8,9 @@
"description": "a geometry"
}],
"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)' ) ) )",
"returns": "'POLYGON((3 3, 4 10, 4 4, 3 3))'"
}],

View File

@ -8,6 +8,9 @@
"description": "geometry object"
}],
"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)')))",
"returns": "'Point (0 2)'"
}],

View File

@ -9,7 +9,7 @@
}],
"examples": [{
"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"]
}

View File

@ -13,6 +13,9 @@
"default": "8"
}],
"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) )",
"returns": "'POINT(6 50)'"
}, {

View File

@ -8,6 +8,9 @@
"description": "a geometry"
}],
"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))'))",
"returns": "TRUE"
}, {

View File

@ -8,6 +8,9 @@
"description": "a geometry"
}],
"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)'))",
"returns": "TRUE"
}, {

View File

@ -22,6 +22,9 @@
"description": "line geometry object"
}],
"examples": [{
"expression": "length(@geometry)",
"returns": "length of the current feature's geometry"
},{
"expression": "length(geom_from_wkt('LINESTRING(0 0, 4 0)'))",
"returns": "4.0"
}]

View File

@ -8,6 +8,9 @@
"description": "line geometry object"
}],
"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)'))",
"returns": "5.0"
}],

View File

@ -8,6 +8,9 @@
"description": "polygon geometry object"
}],
"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))'))",
"returns": "12.0"
}],

View File

@ -8,8 +8,11 @@
"description": "a geometry"
}],
"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)') )",
"returns": "4"
}],
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "maximum"]
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "maximum", "east"]
}

View File

@ -8,8 +8,11 @@
"description": "a geometry"
}],
"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)') )",
"returns": "2"
}],
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "minimum"]
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "minimum", "west"]
}

View File

@ -8,8 +8,11 @@
"description": "a geometry"
}],
"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)') )",
"returns": "8"
}],
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "maximum"]
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "maximum", "north"]
}

View File

@ -8,8 +8,11 @@
"description": "a geometry"
}],
"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)') )",
"returns": "5"
}],
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "minimum"]
"tags": ["coordinate", "spatial", "reference", "calculations", "system", "minimum", "south"]
}