Dear all,
I would need your help in solving a problem.
Using your sample code for retrieving true-color images (or NDVI etc.) using Sentinel2 (L1C and/or L2A) , I can usually get a correct PNG image of an area that I query using the Polygon syntax, that I get from the relative geoJSON file.
For some polygonal area requested, the images returned are always black, independently from the period asked – while in your Playground are visible (with the same constellation) and moreover are very near other areas whose images I get without problems.
For instance, the following GeoJSON areas could be always retrieved with Sentinel (1 & 2):
- {“type”:“FeatureCollection”,“features”:[{“type”:“Feature”,“properties”:{“color”:“#3388ff”,“opacity”:1,“fillColor”:null,“fillOpacity”:0.2,“weight”:3,“dashArray”:null},“geometry”:{“type”:“Polygon”,“coordinates”:[[[10.550512,43.32638],[10.551357,43.325414],[10.55291,43.326183],[10.552379,43.327014],[10.550512,43.32638]]]}}]}
- {“type”:“FeatureCollection”,“features”:[{“type”:“Feature”,“properties”:{“color”:“#3388ff”,“opacity”:1,“fillColor”:null,“fillOpacity”:0.2,“weight”:3,“dashArray”:null},“geometry”:{“type”:“Polygon”,“coordinates”:[[[10.582393,43.34299],[10.582259,43.339783],[10.582924,43.33951],[10.583906,43.339432],[10.585032,43.339482],[10.585188,43.340352],[10.584571,43.341398],[10.584356,43.342182],[10.584195,43.342455],[10.582881,43.343076],[10.582393,43.34299]]]}}]}
While the following areas returns always BLACK PNG (and so it is not possible to compute NDVI and other indexes):
- {“type”:“FeatureCollection”,“features”:[{“type”:“Feature”,“properties”:{“color”:“#3388ff”,“opacity”:1,“fillColor”:null,“fillOpacity”:0.2,“weight”:3,“dashArray”:null},“geometry”:{“type”:“Polygon”,“coordinates”:[[[10.608603,43.351045],[10.610052,43.35172],[10.611484,43.354697],[10.611581,43.356054],[10.608094,43.355492],[10.606163,43.352777],[10.607439,43.352372],[10.608603,43.351045]]]}}]}
- {“type”:“FeatureCollection”,“features”:[{“type”:“Feature”,“properties”:{“color”:“#3388ff”,“opacity”:1,“fillColor”:null,“fillOpacity”:0.2,“weight”:3,“dashArray”:null},“geometry”:{“type”:“Polygon”,“coordinates”:[[[16.26513,40.598892],[16.265452,40.599495],[16.265699,40.599413],[16.265731,40.599519],[16.265967,40.599478],[16.265935,40.598875],[16.265956,40.597849],[16.265988,40.597254],[16.26572,40.597303],[16.265441,40.597344],[16.265237,40.597385],[16.265237,40.597784],[16.265259,40.597988],[16.265377,40.598949],[16.265216,40.598892],[16.26513,40.598892]]]}}]}
Could you help me understand where is the problem?