Skip to main content

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?

Hi!


Which layer are you interested in? Hopefully we’ll add some examples soon on how to retrieve data from Geopedia.


Hi, Devis!

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:



  • GeopediaFeatureIterator allows you to retrieve vector layers only. You can add your own vector data and retrieve it using this sentinelhub class. When you select the layer for visualisation in Geopedia, the table ID is displayed in the url as
    http://www.geopedia.world/#T<theme_id>_L<layer_id>_x<x_pop_web>_y<y_pop_web>_s_b,

    where you are interested in layer_id.

    As an example, if you look for Corine Land Cover 2006, you will see that the layer ID is 268
    http://www.geopedia.world/#T235_L268_x587418.562371579_y5677666.023994604_s11_b17

    Inputting this to GeopediaFeatureIterator will 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 GetCapabilities
    http://service.geopedia.world/wms/QP?SERVICE=wms&REQUEST=GetCapabilities

    You will see listed all entries with corresponding ttl ID (e.g. ttl2275). I suggest you use eo-learn's AddGeopediaFeature task 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.


Reply