Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DE-9IM variant which tests against a specified pattern
(available in PyQGIS/expression engine)
- Loading branch information
1 parent
9e84fca
commit da94223
Showing
7 changed files
with
90 additions
and
14 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
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 |
---|---|---|
@@ -1,12 +1,23 @@ | ||
{ | ||
"name": "relate", | ||
"type": "function", | ||
"description": "Returns the Dimensional Extended 9 Intersection Model (DE-9IM) representation of the relationship between two geometries.", | ||
"arguments": [ | ||
{"arg":"geometry","description":"a geometry"}, | ||
{"arg":"geometry","description":"a geometry"} | ||
], | ||
"examples": [ | ||
{ "expression":"relate( geom_from_wkt( 'LINESTRING(40 40,120 120)' ), geom_from_wkt( 'LINESTRING(40 40,60 120)' ) )", "returns":"'FF1F00102'"} | ||
] | ||
"description": "Tests the Dimensional Extended 9 Intersection Model (DE-9IM) representation of the relationship between two geometries.", | ||
"variants": [ | ||
{ "variant": "Relationship variant", | ||
"variant_description": "Returns the Dimensional Extended 9 Intersection Model (DE-9IM) representation of the relationship between two geometries.", | ||
"arguments": [ | ||
{"arg":"geometry","description":"a geometry"}, | ||
{"arg":"geometry","description":"a geometry"} | ||
], | ||
"examples": [ { "expression":"relate( geom_from_wkt( 'LINESTRING(40 40,120 120)' ), geom_from_wkt( 'LINESTRING(40 40,60 120)' ) )", "returns":"'FF1F00102'" } ] }, | ||
{ | ||
"variant": "Pattern match variant", | ||
"variant_description": "Tests whether the DE-9IM relationship between two geometries matches a specified pattern.", | ||
"arguments": [ | ||
{"arg":"geometry","description":"a geometry"}, | ||
{"arg":"geometry","description":"a geometry"}, | ||
{"arg":"pattern","description":"DE-9IM pattern to match"} | ||
], | ||
"examples": [ { "expression":"relate( geom_from_wkt( 'LINESTRING(40 40,120 120)' ), geom_from_wkt( 'LINESTRING(40 40,60 120)' ), '**1F001**' )", "returns":true}] | ||
}] | ||
} |
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
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
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
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
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