Skip to content

Instantly share code, notes, and snippets.

@leighghunt
Created November 20, 2014 22:05
Show Gist options
  • Save leighghunt/893a8edefc77941ae71f to your computer and use it in GitHub Desktop.
Save leighghunt/893a8edefc77941ae71f to your computer and use it in GitHub Desktop.
Two polygons to intersect
Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
174.462890625,
-40.02761443748664
],
[
174.4189453125,
-41.853196437766734
],
[
176.30859375,
-41.853196437766734
],
[
176.28662109375,
-41.21172151054787
],
[
175.078125,
-41.19518982948958
],
[
175.10009765625,
-40.044437584608566
],
[
174.462890625,
-40.02761443748664
]
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
174.79248046875,
-41.54147766679028
],
[
174.79248046875,
-39.67337039176559
],
[
176.90185546875,
-39.67337039176559
],
[
176.90185546875,
-41.54147766679028
],
[
174.79248046875,
-41.54147766679028
]
]
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment