Last active
June 27, 2017 19:18
-
-
Save maphew/7bb77059574ea714977edae41e4b114c to your computer and use it in GitHub Desktop.
How to create polygons from this geojson grid, using pure javascript or tools available to Node.js? From https://gis.stackexchange.com/questions/245277/how-to-create-geojson-polygons-from-lines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"coordinates": [ | |
[ | |
[ | |
-135.025, | |
60.672622897801 | |
], | |
[ | |
-135.0242, | |
60.672622897801 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672649849073 | |
], | |
[ | |
-135.0242, | |
60.672649849073 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672676800345 | |
], | |
[ | |
-135.0242, | |
60.672676800345 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672703751617 | |
], | |
[ | |
-135.0242, | |
60.672703751617 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672730702889 | |
], | |
[ | |
-135.0242, | |
60.672730702889 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672757654161 | |
], | |
[ | |
-135.0242, | |
60.672757654161 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672784605433 | |
], | |
[ | |
-135.0242, | |
60.672784605433 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672811556705 | |
], | |
[ | |
-135.0242, | |
60.672811556705 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672838507978 | |
], | |
[ | |
-135.0242, | |
60.672838507978 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.67286545925 | |
], | |
[ | |
-135.0242, | |
60.67286545925 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672892410522 | |
], | |
[ | |
-135.0242, | |
60.672892410522 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672919361794 | |
], | |
[ | |
-135.0242, | |
60.672919361794 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672946313066 | |
], | |
[ | |
-135.0242, | |
60.672946313066 | |
] | |
], | |
[ | |
[ | |
-135.025, | |
60.672973264338 | |
], | |
[ | |
-135.0242, | |
60.672973264338 | |
] | |
], | |
[ | |
[ | |
-135.02496693122, | |
60.6726 | |
], | |
[ | |
-135.02496693122, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02491181658, | |
60.6726 | |
], | |
[ | |
-135.02491181658, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02485670194, | |
60.6726 | |
], | |
[ | |
-135.02485670194, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.0248015873, | |
60.6726 | |
], | |
[ | |
-135.0248015873, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02474647266, | |
60.6726 | |
], | |
[ | |
-135.02474647266, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02469135802, | |
60.6726 | |
], | |
[ | |
-135.02469135802, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02463624339, | |
60.6726 | |
], | |
[ | |
-135.02463624339, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02458112875, | |
60.6726 | |
], | |
[ | |
-135.02458112875, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02452601411, | |
60.6726 | |
], | |
[ | |
-135.02452601411, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02447089947, | |
60.6726 | |
], | |
[ | |
-135.02447089947, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02441578483, | |
60.6726 | |
], | |
[ | |
-135.02441578483, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02436067019, | |
60.6726 | |
], | |
[ | |
-135.02436067019, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02430555556, | |
60.6726 | |
], | |
[ | |
-135.02430555556, | |
60.673 | |
] | |
], | |
[ | |
[ | |
-135.02425044092, | |
60.6726 | |
], | |
[ | |
-135.02425044092, | |
60.673 | |
] | |
] | |
], | |
"type": "MultiLineString", | |
"properties": { | |
"status": { | |
"status": 200, | |
"reason": "OK" | |
}, | |
"thanks": "Thanks from all of us at index.home.raft for using a what3words API" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment