mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-09 19:39:57 +00:00
54 lines
1.0 KiB
Plaintext
54 lines
1.0 KiB
Plaintext
|
title: $:/plugins/tiddlywiki/geospatial/tests/operators/geounion
|
||
|
description: geounion operator
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Description
|
||
|
|
||
|
geounion operator
|
||
|
+
|
||
|
title: Output
|
||
|
|
||
|
\whitespace trim
|
||
|
<$text text={{{ =[{LayerOne}] =[{LayerTwo}] +[geounion[]] }}}/>
|
||
|
+
|
||
|
title: LayerOne
|
||
|
type: application/json
|
||
|
|
||
|
{
|
||
|
"type": "FeatureCollection",
|
||
|
"features": [
|
||
|
{
|
||
|
"type": "Feature",
|
||
|
"geometry": {
|
||
|
"type": "Polygon",
|
||
|
"coordinates": [
|
||
|
[[100.0,0.0],[102.0,0.0],[102.0,2.0],[100.0,2.0],[100.0,0.0]]
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
+
|
||
|
+
|
||
|
title: LayerTwo
|
||
|
type: application/json
|
||
|
|
||
|
{
|
||
|
"type": "FeatureCollection",
|
||
|
"features": [
|
||
|
{
|
||
|
"type": "Feature",
|
||
|
"geometry": {
|
||
|
"type": "Polygon",
|
||
|
"coordinates": [
|
||
|
[[101.0,1.0],[103.0,1.0],[103.0,3.0],[101.0,3.0],[101.0,1.0]]
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[100,0],[102,0],[102,1],[103,1],[103,3],[101,3],[101,2],[100,2],[100,0]]]}}]}</p>
|