Do not crash when rgeo can’t calculate polygon area
example are “hourglass” shaped polygons
This commit is contained in:
parent
61c315b276
commit
26a6e18cb9
3 changed files with 29 additions and 2 deletions
|
@ -38,6 +38,25 @@ FactoryBot.define do
|
|||
end
|
||||
end
|
||||
|
||||
trait :hourglass_polygon do
|
||||
geometry do
|
||||
{
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
[
|
||||
[2.4282997263522077, 46.53823812531846],
|
||||
[2.4283969564289976, 46.53823259028192],
|
||||
[2.4283701343391897, 46.53816063476029],
|
||||
[2.4284807754604003, 46.53817078233945],
|
||||
[2.4284921748487136, 46.53822105895472],
|
||||
[2.428447247847828, 46.53820214757286],
|
||||
[2.4282997263522077, 46.53823812531846]
|
||||
]
|
||||
]
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
trait :line_string do
|
||||
geometry do
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue