Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
added text relating to use of `flatten`
  • Loading branch information
simonarnell authored Jul 1, 2023
1 parent 7f63667 commit fec1156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Original maps were sourced from the Office for National Statistics' [Geoportal](
ogr2ogr -f "GeoJSON" <output-file> <input-file> -t_srs EPSG:4326 -s_srs EPSG:27700
```

As the [South London Partnership](https://southlondonpartnership.co.uk) is not a formal administrative organisation, its boundary was formed by creating a GeoJSON [FeatureCollection](https://datatracker.ietf.org/doc/html/rfc7946#section-3.3) of [Features](https://datatracker.ietf.org/doc/html/rfc7946#section-3.2) and utilising [TurfJS](https://turfjs.org)'s [dissolve](https://turfjs.org/docs/#dissolve) function.
As the [South London Partnership](https://southlondonpartnership.co.uk) is not a formal administrative organisation, its boundary was formed by creating a GeoJSON [FeatureCollection](https://datatracker.ietf.org/doc/html/rfc7946#section-3.3) of [Features](https://datatracker.ietf.org/doc/html/rfc7946#section-3.2) and utilising [TurfJS](https://turfjs.org)'s [dissolve](https://turfjs.org/docs/#dissolve) function, creating a GeometryCollection object. Finally TurfJS's [flatten](https://turfjs.org/docs/#flatten) function is utilised to convert the GeometryCollection back to a simple FeatureCollection.

The generated GeoJSON files then required conversion to KML for import into Google Maps. Again `ogr2ogr` was utilised, this time with the following syntax:
```
Expand Down

0 comments on commit fec1156

Please sign in to comment.