I have a problem to access the metadata when I use ee_print() function in a Image or ImageCollection ee-object.
In my global environment the img ee-object was created.
But,
When I use ee_rpint() function in a Feature or FeatureCollection ee-object, working!
How can I fix this error in Image or ImageCollection??
My code
img <- ee$Image('LANDSAT/LC08/C01/T1/LC08_044034_20140318')
ee_print(img)
Error in strsplit(code, ":") : object 'band_metadata' not found
Try this to find the error
options(warn=2)
traceback()
7: strsplit(code, ":")
6: tolower(strsplit(code, ":")[[1]][1])
5: ee_utils_get_crs(band_metadata$crs)
4: sf::st_crs(ee_utils_get_crs(band_metadata$crs))
3: ee_image_info(image = selected_img, compression_ratio = compression_ratio,
quiet = TRUE)
2: ee_print.ee.image.Image(img)
1: ee_print(img)
# Then I try ee_print() with FeatureCollection... Works!!!
counties <- ee$FeatureCollection("TIGER/2016/Counties")
#Print the metadata
ee_print(counties)
─────────────────────────── Earth Engine FeatureCollection ──
FeatureCollection Metadata:
- Class : ee$FeatureCollection
- Number of Features : 3233
- Number of Properties : 14
Feature Metadata:
- Number of Properties : 17
Geometry Metadata (f_index = 0):
- CRS : WGS 84 (EPSG:4326)
- proj4string : +proj=longlat +datum=WGS84 +no_defs
- Geotransform : 1 0 0 0 1 0
- Geodesic : TRUE
- Geo Type : POLYGON`