Skip to main content

Hey there,


I already have existing .shp-files for my region of interest.

What I wanna do now is to make a data request to get .tiff-files.


Which methods/classes does one use for this purpose?

Are there any examples maybe?


Greetings

You will have to convert SHP files to GeoJSON, find some examples on how to do it here.


Once done, you can use this example to get tiff:

docs.sentinel-hub.com
d3714e73b38a87afa3c31502a6696052a7395163.png


Examples for S2L1C



Use these CURL and Postman examples to access Sentinel-2 L1C data with Sentinel Hub Processing API.








Thank you for your answer!

The conversion into .geojson was quite easy - just a few lines using geopandas.
But the examples for the next step look like command line python use I guess?
Since, I’m working within the spyder IDE, I dont really know, how to apply the shown examples =/


Make a dictionary called request e.g. request = {“input”:{ etc containing all the relevant detiails and then use requests e.g.:


requests.post('https://services.sentinel-hub.com/api/v1/process', headers=sen_headers,  json=request)

Hi,

As an alternative to @simon.smart’s valid recommendation: if you are working in Python, you could use the sentinelhub-py package. I find that it makes Python workflows much easier and is well documented.


Reply