[R-sig-Geo] Store sf as 'line-by-line' GeoJSON

Thierry Onkelinx th|erry@onke||nx @end|ng |rom |nbo@be
Tue Nov 23 11:32:35 CET 2021


Dear all,

I'm looking for a way to store an sf object or geopackage as a
'line-by-line' GeoJSON. The definition of the GeoJSON is listed at
https://learn.maproulette.org/documentation/line-by-line-geojson/

I tried st_write(driver = "GeoJSONSeq", config_options = c(RS = "YES"))
This writes every feature on a single line. However, it doesn't store them
as a FeatureCollection.

Suggestions are welcome.

Best regards,

ir. Thierry Onkelinx
Statisticus / Statistician

Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND
FOREST
Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
thierry.onkelinx using inbo.be
Havenlaan 88 bus 73, 1000 Brussel
www.inbo.be

///////////////////////////////////////////////////////////////////////////////////////////
To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey
///////////////////////////////////////////////////////////////////////////////////////////

<https://www.inbo.be>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list