Skip to content

Commit

Permalink
Develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
PondiB authored Oct 31, 2023
2 parents a013a47 + 8dce4db commit 2546834
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Binary file modified docs/openeosits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions playground/poc_sitsdata.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
library(sitsdata)
library(sits)
library(jsonlite)
library(geojsonsf)

sits_data <- sitsdata::samples_prodes_4classes
sits_data

sits_data$time_series[[1]]

sf_samples <- sits::sits_as_sf(sits_data)

sf_samples


json_samples <- jsonlite::fromJSON(jsonlite::toJSON(sf_samples), simplifyDataFrame = F, simplifyMatrix = F)
json_samples

sf_to_json <- geojsonsf::sf_geojson(sf_samples)
sf_to_json

json_to_sf <- geojsonsf::geojson_sf(json_samples)
json_to_sf

0 comments on commit 2546834

Please sign in to comment.