Skip to content

Instantly share code, notes, and snippets.

@mhassanch
Created May 29, 2025 05:23
Show Gist options
  • Save mhassanch/b39e0e41e9958e1112b37ffb133a587d to your computer and use it in GitHub Desktop.
Save mhassanch/b39e0e41e9958e1112b37ffb133a587d to your computer and use it in GitHub Desktop.
result genericSegmentation - should process a polygon for segmentation and generate valid GeoJSON
Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"score": 0.9500211477279663
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-119.034204328125,
47.934818394531256
],
[
-119.03419359960938,
47.934818394531256
],
[
-119.03418287109376,
47.934818394531256
],
[
-119.03417214257813,
47.934818394531256
],
[
-119.03416141406251,
47.934818394531256
],
[
-119.03415068554688,
47.934818394531256
],
[
-119.03413995703126,
47.934818394531256
],
[
-119.03412922851562,
47.934818394531256
],
[
-119.0341185,
47.934818394531256
],
[
-119.03410777148439,
47.934818394531256
],
[
-119.03409704296875,
47.93481120507813
],
[
-119.03409704296875,
47.934804015625005
],
[
-119.03409704296875,
47.934796826171876
],
[
-119.03409704296875,
47.934789636718754
],
[
-119.03409704296875,
47.934782447265626
],
[
-119.03409704296875,
47.934775257812504
],
[
-119.03408631445313,
47.934768068359375
],
[
-119.03408631445313,
47.93476087890625
],
[
-119.03408631445313,
47.934753689453125
],
[
-119.03408631445313,
47.9347465
],
[
-119.03408631445313,
47.93473931054688
],
[
-119.0340755859375,
47.93473212109375
],
[
-119.0340755859375,
47.93472493164063
],
[
-119.0340755859375,
47.9347177421875
],
[
-119.0340755859375,
47.93471055273438
],
[
-119.0340755859375,
47.93470336328125
],
[
-119.03408631445313,
47.93469617382813
],
[
-119.03408631445313,
47.934688984375
],
[
-119.03408631445313,
47.93468179492188
],
[
-119.03408631445313,
47.93467460546875
],
[
-119.03409704296875,
47.93466741601563
],
[
-119.03410777148439,
47.9346602265625
],
[
-119.03410777148439,
47.93465303710938
],
[
-119.03410777148439,
47.934645847656256
],
[
-119.0341185,
47.93463865820313
],
[
-119.0341185,
47.934631468750005
],
[
-119.03412922851562,
47.93462427929688
],
[
-119.03413995703126,
47.934617089843755
],
[
-119.03415068554688,
47.934617089843755
],
[
-119.03416141406251,
47.934609900390626
],
[
-119.03417214257813,
47.934609900390626
],
[
-119.03418287109376,
47.934609900390626
],
[
-119.03419359960938,
47.934602710937504
],
[
-119.034204328125,
47.934602710937504
],
[
-119.03421505664063,
47.934609900390626
],
[
-119.03421505664063,
47.934617089843755
],
[
-119.03421505664063,
47.93462427929688
],
[
-119.03421505664063,
47.934631468750005
],
[
-119.03422578515625,
47.93463865820313
],
[
-119.03422578515625,
47.934645847656256
],
[
-119.03422578515625,
47.93465303710938
],
[
-119.03422578515625,
47.9346602265625
],
[
-119.03422578515625,
47.93466741601563
],
[
-119.03422578515625,
47.93467460546875
],
[
-119.03422578515625,
47.93468179492188
],
[
-119.03422578515625,
47.934688984375
],
[
-119.03422578515625,
47.93469617382813
],
[
-119.03422578515625,
47.93470336328125
],
[
-119.03422578515625,
47.93471055273438
],
[
-119.03422578515625,
47.9347177421875
],
[
-119.03421505664063,
47.93472493164063
],
[
-119.03421505664063,
47.93473212109375
],
[
-119.03421505664063,
47.93473931054688
],
[
-119.03421505664063,
47.9347465
],
[
-119.03421505664063,
47.934753689453125
],
[
-119.03421505664063,
47.93476087890625
],
[
-119.03421505664063,
47.934768068359375
],
[
-119.03421505664063,
47.934775257812504
],
[
-119.034204328125,
47.934782447265626
],
[
-119.034204328125,
47.934789636718754
],
[
-119.034204328125,
47.934796826171876
],
[
-119.034204328125,
47.934804015625005
],
[
-119.034204328125,
47.93481120507813
],
[
-119.034204328125,
47.934818394531256
]
]
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment