hello, everyone! I am new to sentinel hub, and I am confused in the class GeopediaFeatureIterator, it needs a parameter ‘layer’ to init, it seems to be a number-like string, but how can I find the corresponding string, which I would like to download from Geopedia?
Which layer are you interested in? Hopefully we’ll add some examples soon on how to retrieve data from Geopedia.
Thanks for your reply!
Actually, I was reading a jupyter notebook, there is a line like this:
urban_area_cities = GeopediaFeatureIterator(layer=‘689’), which is to retrieve cities available on Geopedia. But I don’t know how could I find sth like 689 in geopedia.
Geopedia allows you to store data in different formats (vector, raster, WMS). Currently, you can access data from Geopedia in the following ways:
GeopediaFeatureIteratorallows you to retrieve vector layers only. You can add your own vector data and retrieve it using this
sentinelhubclass. When you select the layer for visualisation in Geopedia, the table ID is displayed in the url as
where you are interested in
As an example, if you look for Corine Land Cover 2006, you will see that the layer ID is 268
Inputting this to
GeopediaFeatureIteratorwill allow you to get the features in the table.
Some themes on Geopedia are exposed with WMS capabilities, and can be therefore queried with
GeopediaWmsRequest. One of these themes is Query Planet.
To see which data sources are available, log in to Geopedia, select Themes from the drop-down menu and search for Query Planet. To retrieve the theme table link IDs required to access the data source, check its
You will see listed all entries with corresponding ttl ID (e.g.
ttl2275). I suggest you use
AddGeopediaFeaturetask to retrieve data. An example call would be
geopedia_data = AddGeopediaFeature((FeatureType.MASK_TIMELESS, 'TREE_COVER'), layer='ttl2275', theme='QP', raster_value=raster_value)
Full usage example available here.