cemsbv / pygef

Parse soil measurement data.
https://cemsbv.github.io/pygef
MIT License
31 stars 19 forks source link

Import from gpkg #252

Open mariosgeo opened 2 years ago

mariosgeo commented 2 years ago

There are now CPTs saved in gpkg format. I have a reader that user provides a box with coordains (or polygon) and it reads all cpts exist there (and plots in vtk file format, perhaps irrelevant here). It would be great if you could make your package compatible with this file. It saves a ton of time to bring each xml/gef separately (plus you don't need an xml reader anymore).

Is this something you can support?

bro_reader - Copy.txt

RDWimmers commented 1 year ago

Hey, thanks for reaching out! As you see is pyGEF currently going through some needed maintenance. Based on the REST API provide by the BRO, it is possible to obtain a dispatchCharacteristicsResponse. This response hold multiple dispatchDocument's. The approach is similar to yours, however we like to stay to the native data source of the BRO (XML).

More info on the API > https://publiek.broservices.nl/sr/cpt/v1/