Deforestation - Cannot use hosted Global Forest watch layer

144
4
Jump to solution
04-15-2021 01:18 AM
Labels (1)
FelixSchrock
New Contributor II

Dear Community,

I wish to use a deforestation imagery layer from Global Forest Watch (GFW) in the Python API for tracking forest change. The layer is hosted by GFW and it can be found when searching for content in API.

Unfortunately, I cannot access it. The API prompts an error (SSL certification error). The error code is attached to this post in a .txt file.

Code:

gis = GIS(verify_cert = False)

items = gis.content.search("Hansen", item_type="Imagery Layer", max_items=2)[0]
layer = items.layers[0]
layer.url

layer.properties.name

-> arc_errorCode.txt

Does someone experience similar problems and found a solution to this issue?

 

Thanks,

Felix

 

 

 

 

0 Kudos
1 Solution

Accepted Solutions
JayantaPoddar
MVP Esteemed Contributor

Not only the SSL issue, but it seems their ArcGIS Server license has expired.

Jayanta_Poddar_0-1618475169214.png

 

View solution in original post

4 Replies
JayantaPoddar
MVP Esteemed Contributor

Not only the SSL issue, but it seems their ArcGIS Server license has expired.

Jayanta_Poddar_0-1618475169214.png

 

View solution in original post

FelixSchrock
New Contributor II

Thanks for the reply. So I assume that this layer cannot be used anymore.

There is also the possibility to download the "raw" data in .tif file format. (here is the download link: https://storage.googleapis.com/earthenginepartners-hansen/GFC-2020-v1.8/download.html)

Is it possible to import those .tif files as an Imagery Layer in the ArcGIS Python API? 

Or would I have to transform the .tif files in some other format before I can access them in the API?

 

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

TIFF is a heavy image, so I won't recommend calling it directly over the web.

In case your organization has ArcGIS Enterprise license, you can publish Image service.

Else, if you have an ArcGIS subscription account, you may test ArcGIS Image for ArcGIS Online (Pre-release) to host, serve and analyze imagery on the web. This pre-release is ideal for existing ArcGIS Online customers wishing to test and provide feedback on ArcGIS Image for ArcGIS Online. This activity may consume service credits.

FelixSchrock
New Contributor II

Thank you, Jayanta! I will try the latter option.

0 Kudos