forked from FarmMaps/FarmMapsApiClient
solved issue where sometimes satelliteItem contains only 2 layers
Normally 3 layers 0: ndvi, 1: wdvi, 2: natural. In some cases only 2 layers: 0: wdvi, 1: natural. Which caused error when requesting statistics. This happened for example for cropfieldItem.Code ‘e08d71bd92334dbab9e645ad6e72da63’
This commit is contained in:
@@ -44,7 +44,6 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"cropfielditemcode": null, //BulkSatDownloadApplication returns a Settings.json file with cropfielditems.Code. After first run, you can copy-paste that here to speed up
|
||||
"downloadFolder": "C:\\workdir\\groenmonitor\\",
|
||||
"fileNameStats": "BulkSatDownload.csv",
|
||||
"database": null,
|
||||
@@ -54,7 +53,7 @@
|
||||
},
|
||||
{
|
||||
"fieldName": "5641", // FarmMaps minimum needs are: fieldName, cropYear & geometryJson
|
||||
"cropYear": 2021,
|
||||
"cropYear": 2021, //For testing a year for which we know no satellite data available, program shouldn't crash
|
||||
"fieldID": 5641,
|
||||
"SatelliteBands": [ "wdvi", "ndvi" ], // ["ndvi"] or ["wdvi"] or both: [ "wdvi", "ndvi" ]
|
||||
"lastdownloadedimagedate": "2021-01-01", //downloads images from this date till end of the year
|
||||
@@ -97,15 +96,13 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"cropfielditemcode": null, //BulkSatDownloadApplication returns a Settings.json file with cropfielditems.Code. After first run, you can copy-paste that here to speed up
|
||||
"downloadFolder": "C:\\workdir\\groenmonitor\\",
|
||||
"fileNameStats": "BulkSatDownload.csv",
|
||||
"database": null,
|
||||
"schemaname": null,
|
||||
"cropfieldtable": null,
|
||||
"satelllitetable": null
|
||||
}
|
||||
,
|
||||
},
|
||||
{
|
||||
"fieldName": "5641", // FarmMaps minimum needs are: fieldName, cropYear & geometryJson
|
||||
"cropYear": 2020,
|
||||
@@ -151,7 +148,110 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"cropfielditemcode": null, //BulkSatDownloadApplication returns a Settings.json file with cropfielditems.Code. After first run, you can copy-paste that here to speed up
|
||||
"downloadFolder": "C:\\workdir\\groenmonitor\\",
|
||||
"fileNameStats": "BulkSatDownload.csv",
|
||||
"database": null,
|
||||
"schemaname": null,
|
||||
"cropfieldtable": null,
|
||||
"satelllitetable": null
|
||||
},
|
||||
{
|
||||
"fieldName": "5641", // FarmMaps minimum needs are: fieldName, cropYear & geometryJson
|
||||
"cropYear": 2019,
|
||||
"fieldID": 5641,
|
||||
"SatelliteBands": [ "wdvi", "ndvi" ], // ["ndvi"] or ["wdvi"] or both: [ "wdvi", "ndvi" ]
|
||||
"lastdownloadedimagedate": "2019-01-01", //downloads images from this date till end of the year
|
||||
"geometryJson": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
[
|
||||
[ 3.37837807779104, 51.3231095796538 ],
|
||||
[ 3.38065689232502, 51.3212527499355 ],
|
||||
[ 3.38022924592256, 51.3210683536359 ],
|
||||
[ 3.37980548452565, 51.3208801127141 ],
|
||||
[ 3.37959556105776, 51.3207540143696 ],
|
||||
[ 3.3793691292654, 51.3205959677371 ],
|
||||
[ 3.37822219207335, 51.3215667913007 ],
|
||||
[ 3.37816999925795, 51.3216109809456 ],
|
||||
[ 3.37646704574705, 51.3208025481261 ],
|
||||
[ 3.37646695791282, 51.3208025061493 ],
|
||||
[ 3.37608401443192, 51.3206231652693 ],
|
||||
[ 3.37607169507628, 51.3206173959751 ],
|
||||
[ 3.37606021048754, 51.320612017601 ],
|
||||
[ 3.37582728410659, 51.3205029306946 ],
|
||||
[ 3.37580409779263, 51.3206502985963 ],
|
||||
[ 3.37575872019649, 51.3207993094705 ],
|
||||
[ 3.37575476634361, 51.3208122883487 ],
|
||||
[ 3.37571181656268, 51.3208797459348 ],
|
||||
[ 3.3756624532907, 51.3209415238446 ],
|
||||
[ 3.37557609963811, 51.3210110142077 ],
|
||||
[ 3.37541089899821, 51.3211055871218 ],
|
||||
[ 3.37477516102591, 51.3214102985009 ],
|
||||
[ 3.37473173914127, 51.3214311108204 ],
|
||||
[ 3.37455904622072, 51.3215138815012 ],
|
||||
[ 3.37415098054777, 51.3217199232877 ],
|
||||
[ 3.37313700916272, 51.3222422862785 ],
|
||||
[ 3.37748824689601, 51.3242852920348 ],
|
||||
[ 3.37749760805371, 51.3242713084009 ],
|
||||
[ 3.37811903757028, 51.3233437635596 ],
|
||||
[ 3.37818758851947, 51.3232647797363 ],
|
||||
[ 3.37823803668144, 51.3232236798646 ],
|
||||
[ 3.37837807779104, 51.3231095796538 ]
|
||||
]
|
||||
]
|
||||
},
|
||||
"downloadFolder": "C:\\workdir\\groenmonitor\\",
|
||||
"fileNameStats": "BulkSatDownload.csv",
|
||||
"database": null,
|
||||
"schemaname": null,
|
||||
"cropfieldtable": null,
|
||||
"satelllitetable": null
|
||||
},
|
||||
{
|
||||
"fieldName": "5641", // FarmMaps minimum needs are: fieldName, cropYear & geometryJson
|
||||
"cropYear": 2018, //little to no images for 2018
|
||||
"fieldID": 5641,
|
||||
"SatelliteBands": [ "wdvi", "ndvi" ], // ["ndvi"] or ["wdvi"] or both: [ "wdvi", "ndvi" ]
|
||||
"lastdownloadedimagedate": "2018-01-01", //downloads images from this date till end of the year
|
||||
"geometryJson": {
|
||||
"type": "Polygon",
|
||||
"coordinates": [
|
||||
[
|
||||
[ 3.37837807779104, 51.3231095796538 ],
|
||||
[ 3.38065689232502, 51.3212527499355 ],
|
||||
[ 3.38022924592256, 51.3210683536359 ],
|
||||
[ 3.37980548452565, 51.3208801127141 ],
|
||||
[ 3.37959556105776, 51.3207540143696 ],
|
||||
[ 3.3793691292654, 51.3205959677371 ],
|
||||
[ 3.37822219207335, 51.3215667913007 ],
|
||||
[ 3.37816999925795, 51.3216109809456 ],
|
||||
[ 3.37646704574705, 51.3208025481261 ],
|
||||
[ 3.37646695791282, 51.3208025061493 ],
|
||||
[ 3.37608401443192, 51.3206231652693 ],
|
||||
[ 3.37607169507628, 51.3206173959751 ],
|
||||
[ 3.37606021048754, 51.320612017601 ],
|
||||
[ 3.37582728410659, 51.3205029306946 ],
|
||||
[ 3.37580409779263, 51.3206502985963 ],
|
||||
[ 3.37575872019649, 51.3207993094705 ],
|
||||
[ 3.37575476634361, 51.3208122883487 ],
|
||||
[ 3.37571181656268, 51.3208797459348 ],
|
||||
[ 3.3756624532907, 51.3209415238446 ],
|
||||
[ 3.37557609963811, 51.3210110142077 ],
|
||||
[ 3.37541089899821, 51.3211055871218 ],
|
||||
[ 3.37477516102591, 51.3214102985009 ],
|
||||
[ 3.37473173914127, 51.3214311108204 ],
|
||||
[ 3.37455904622072, 51.3215138815012 ],
|
||||
[ 3.37415098054777, 51.3217199232877 ],
|
||||
[ 3.37313700916272, 51.3222422862785 ],
|
||||
[ 3.37748824689601, 51.3242852920348 ],
|
||||
[ 3.37749760805371, 51.3242713084009 ],
|
||||
[ 3.37811903757028, 51.3233437635596 ],
|
||||
[ 3.37818758851947, 51.3232647797363 ],
|
||||
[ 3.37823803668144, 51.3232236798646 ],
|
||||
[ 3.37837807779104, 51.3231095796538 ]
|
||||
]
|
||||
]
|
||||
},
|
||||
"downloadFolder": "C:\\workdir\\groenmonitor\\",
|
||||
"fileNameStats": "BulkSatDownload.csv",
|
||||
"database": null,
|
||||
|
Reference in New Issue
Block a user