How can I export a GeoJSON file from R?

المشرف العام

Administrator
طاقم الإدارة
The write. function allows one to export a JSON file, but it does not seem to work for a GeoJSON file.

This is the code i ran:

write(map,"Map Layer2.GeoJSON")

and this was the error produced:

Error in cat(list(...), file, sep, fill, labels, append) : argument 1 (type 'S4') cannot be handled by 'cat'

Please assist!



أكثر...
 
أعلى