Add tests for GeoJSON validation
This commit is contained in:
parent
5ab7ea1d79
commit
4f03c231a3
2 changed files with 44 additions and 0 deletions
|
@ -57,6 +57,22 @@ FactoryBot.define do
|
|||
end
|
||||
end
|
||||
|
||||
trait :invalid_right_hand_rule_polygon do
|
||||
geometry do
|
||||
{
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
[
|
||||
[1.9116157293319704, 49.758172033960115],
|
||||
[1.9116157293319704, 49.758172033960115],
|
||||
[1.91162645816803, 49.75818243044436],
|
||||
[1.9116157293319704, 49.758172033960115]
|
||||
]
|
||||
]
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
trait :polygon_with_extra_coordinate do
|
||||
geometry do
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue