WorldCereal / worldcereal-classification

This repository contains the classification module of the WorldCereal system.
https://esa-worldcereal.org/
MIT License
19 stars 2 forks source link

First version of a rdm api interaction module #125 #161

Open VincentVerelst opened 1 week ago

VincentVerelst commented 1 week ago

This is a first version of how we can construct a GeoParquet file from the RDM API, based on a user-defined AOI.

How it works:

import shapely
from worldcereal.rdm_api import query_rdm

poly = shapely.Polygon([(1.824467, 50.34406), (1.824467, 50.950124), (3.735661, 50.950124), (3.735661, 50.34406), (1.824467, 50.34406)])

gdf = query_rdm(poly)

A visualization of the output:

image

All feedback is welcome!