Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add x_at, y_at, z_at and m_at expressions
- Loading branch information
Showing
6 changed files
with
350 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "m_at", | ||
"type": "function", | ||
"groups": ["GeometryGroup"], | ||
"description": "Retrieves a m coordinate of the geometry, or NULL if the geometry has no m value.", | ||
"arguments": [{ | ||
"arg": "geometry", | ||
"description": "geometry object" | ||
}, { | ||
"arg": "i", | ||
"description": "index of the vertex of the geometry (indices start at 0; negative values apply from the last index, starting at -1)" | ||
}], | ||
"examples": [{ | ||
"expression": "m_at(geom_from_wkt('LineStringZM(0 0 0 0, 10 10 0 5, 10 10 0 0)'), 1)", | ||
"returns": "5" | ||
}], | ||
"tags": ["retrieves", "coordinate", "measure"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "x_at", | ||
"type": "function", | ||
"groups": ["GeometryGroup"], | ||
"description": "Retrieves a x coordinate of the geometry.", | ||
"arguments": [{ | ||
"arg": "geometry", | ||
"description": "geometry object" | ||
}, { | ||
"arg": "i", | ||
"description": "index of the vertex of the geometry (indices start at 0; negative values apply from the last index, starting at -1)" | ||
}], | ||
"examples": [{ | ||
"expression": "x_at( geom_from_wkt( 'POINT(4 5)' ), 0 )", | ||
"returns": "4" | ||
}], | ||
"tags": ["retrieves", "coordinate"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "y_at", | ||
"type": "function", | ||
"groups": ["GeometryGroup"], | ||
"description": "Retrieves a y coordinate of the geometry.", | ||
"arguments": [{ | ||
"arg": "geometry", | ||
"description": "geometry object" | ||
}, { | ||
"arg": "i", | ||
"description": "index of the vertex of the geometry (indices start at 0; negative values apply from the last index, starting at -1)" | ||
}], | ||
"examples": [{ | ||
"expression": "y_at( geom_from_wkt( 'POINT(4 5)' ), 0 )", | ||
"returns": "5" | ||
}], | ||
"tags": ["retrieves", "coordinate"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "z_at", | ||
"type": "function", | ||
"groups": ["GeometryGroup"], | ||
"description": "Retrieves a z coordinate of the geometry, or NULL if the geometry has no z value.", | ||
"arguments": [{ | ||
"arg": "geometry", | ||
"description": "geometry object" | ||
}, { | ||
"arg": "i", | ||
"description": "index of the vertex of the geometry (indices start at 0; negative values apply from the last index, starting at -1)" | ||
}], | ||
"examples": [{ | ||
"expression": "z_at(geom_from_wkt('LineStringZ(0 0 0, 10 10 5, 10 10 0)'), 1)", | ||
"returns": "5" | ||
}], | ||
"tags": ["retrieves", "coordinate", "3D"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.