Re: [R-sig-Geo] geoJSON and leaflet

2019-07-09 Thread Benjamin Pauget
Hi Tim, Thanks again for your response ! It fit perfectly ! Best Ben De : Tim Salabim Envoyé : mardi 9 juillet 2019 16:25 À : Benjamin Pauget ; r-sig-geo Objet : Re: [R-sig-Geo] geoJSON and leaflet Hi Benjamin, please respond to the list as well. Other people may have similar issues and t

Re: [R-sig-Geo] geoJSON and leaflet

2019-07-09 Thread Tim Salabim
Hi Benjamin, please respond to the list as well. Other people may have similar issues and this way we can find the solutions online. If you want to extract the data along with the geometries, here's how you could do it: library(leaflet) library(jsonlite) library(sf) url <- " http://www.georisque

Re: [R-sig-Geo] geoJSON and leaflet

2019-07-09 Thread Tim Salabim
Hi Benjamin, What you get back from the jsonlite::fromJSON() call is a simplified list with the data (including the geometry information) as a data frame in one of the list slots. GeoJson is usually a character string. Therefore, if you open your map in the browser and open the console (Ctrl + i) y

[R-sig-Geo] geoJSON and leaflet

2019-07-09 Thread Benjamin Pauget
Hi, I’m writting because I have some trouble with a geoJSON file and a leaflet. I’m trying to display polygon on a leaflet map, but nothing append ☹ I have no error message. Do you have some advice/ideas? Best regards Here is my code : library(leaflet) library(jsonlite) url <- "http://www.geori