forked from FarmMaps/FarmMapsApiClient
small update for finding shape taskmap
This commit is contained in:
parent
915df2ac6b
commit
7c5bbf0fbe
@ -167,7 +167,7 @@ namespace FarmmapsApi.Services
|
|||||||
else if (outputType== "shape") {
|
else if (outputType== "shape") {
|
||||||
taskMapItem = await FindChildItemAsync(tiffItem.ParentCode,
|
taskMapItem = await FindChildItemAsync(tiffItem.ParentCode,
|
||||||
|
|
||||||
SHAPE_PROCESSED_ITEMTYPE, itemName);
|
SHAPE_PROCESSED_ITEMTYPE, outputType);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -178,7 +178,7 @@ namespace FarmmapsApi.Services
|
|||||||
|
|
||||||
if (taskMapItem == null)
|
if (taskMapItem == null)
|
||||||
{
|
{
|
||||||
_logger.LogError("Could not find the shape/isoxml taskmap as a child item under the input");
|
_logger.LogError("Could not find the shape/isoxml taskmap as a child item under the cropfield");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,7 +218,7 @@ namespace FarmmapsApi.Services
|
|||||||
dataItem = uploadedFilesChildren.FirstOrDefault(func);
|
dataItem = uploadedFilesChildren.FirstOrDefault(func);
|
||||||
if (dataItem != null || tries == maxTries) {
|
if (dataItem != null || tries == maxTries) {
|
||||||
source.Cancel();
|
source.Cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
tries++;
|
tries++;
|
||||||
});
|
});
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
//},
|
//},
|
||||||
|
|
||||||
{
|
{
|
||||||
"UseCreatedCropfield": true,
|
"UseCreatedCropfield": false,
|
||||||
"file": "", // keep emptpy to use satellite image
|
"file": "", // keep emptpy to use satellite image
|
||||||
"inputVariable": "wdvi",
|
"inputVariable": "wdvi",
|
||||||
"InputLayerName": "wdvi",
|
"InputLayerName": "wdvi",
|
||||||
|
@ -1,53 +1,53 @@
|
|||||||
[
|
[
|
||||||
|
|
||||||
{
|
{
|
||||||
"File": "PlantingSampleDataLutumANDec.zip",
|
"File": "PlantingSampleDataLutum.zip",
|
||||||
"InputLayerName": "EC0-60",
|
//"InputLayerName": "EC0-60",
|
||||||
"OutputFileName": "2021.05.11_vraPoten_SampleDataMultipleLayers",
|
"OutputFileName": "2021.06.09_vraPoten_SampleData",
|
||||||
"FieldName": "lutum",
|
"FieldName": "lutum",
|
||||||
"PlantingYear": 2021,
|
"PlantingYear": 2021,
|
||||||
"MeanDensity": "30",
|
"MeanDensity": "30",
|
||||||
"Variation": "20",
|
"Variation": "20",
|
||||||
"UseShadow": false,
|
"UseShadow": false,
|
||||||
"CountPerArea": true, // don't forget to change ddi if isoxml is created
|
"CountPerArea": true, // don't forget to change ddi if isoxml is created
|
||||||
"geometryJson": {
|
"geometryJson": {
|
||||||
"type": "Polygon",
|
"type": "Polygon",
|
||||||
"coordinates": [
|
"coordinates": [
|
||||||
[
|
[
|
||||||
[ 5.66886041703652044, 52.52929999060298627 ],
|
[ 5.66886041703652044, 52.52929999060298627 ],
|
||||||
[ 5.6716230923214912, 52.52946316399909676 ],
|
[ 5.6716230923214912, 52.52946316399909676 ],
|
||||||
[ 5.67185376229668581, 52.5280565894154563 ],
|
[ 5.67185376229668581, 52.5280565894154563 ],
|
||||||
[ 5.66903207841337231, 52.52790646510525363 ],
|
[ 5.66903207841337231, 52.52790646510525363 ],
|
||||||
[ 5.66886041703652044, 52.52929999060298627 ]
|
[ 5.66886041703652044, 52.52929999060298627 ]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"GenerateTaskmap": true,
|
"GenerateTaskmap": true,
|
||||||
"OutputType": "isoxml", // "shape" or "isoxml" if isoxml also add ddiCode
|
"OutputType": "shape", // "shape" or "isoxml" if isoxml also add ddiCode
|
||||||
"Precision": "2",
|
"Precision": "2",
|
||||||
"MaximumClasses": "5",
|
"MaximumClasses": "5",
|
||||||
"DdiCode": "0016",
|
"DdiCode": "0016", // DDI 0011 for count per area; DDI 0016 for distance (CM)
|
||||||
"CellWidth": "3",
|
"CellWidth": "3",
|
||||||
"CellHeight": "10",
|
"CellHeight": "10",
|
||||||
"Centered": "true",
|
"Centered": "true",
|
||||||
"StartPoint": {
|
"StartPoint": {
|
||||||
"type": "Point",
|
"type": "Point",
|
||||||
//"coordinates": [ 5.66886041703652044, 52.52929999060298627 ] // 1
|
//"coordinates": [ 5.66886041703652044, 52.52929999060298627 ] // 1
|
||||||
//"coordinates": [ 5.6716230923214912, 52.52946316399909676 ] // 2
|
//"coordinates": [ 5.6716230923214912, 52.52946316399909676 ] // 2
|
||||||
//"coordinates": [ 5.67185376229668581, 52.5280565894154563 ] // 3
|
//"coordinates": [ 5.67185376229668581, 52.5280565894154563 ] // 3
|
||||||
"coordinates": [ 5.66903207841337231, 52.52790646510525363 ] // 4
|
"coordinates": [ 5.66903207841337231, 52.52790646510525363 ] // 4
|
||||||
},
|
},
|
||||||
"EndPoint": {
|
"EndPoint": {
|
||||||
"type": "Point",
|
"type": "Point",
|
||||||
"coordinates": [ 5.66886041703652044, 52.52929999060298627 ] // 1
|
"coordinates": [ 5.66886041703652044, 52.52929999060298627 ] // 1
|
||||||
//"coordinates": [ 5.6716230923214912, 52.52946316399909676 ] // 2
|
//"coordinates": [ 5.6716230923214912, 52.52946316399909676 ] // 2
|
||||||
//"coordinates": [ 5.67185376229668581, 52.5280565894154563 ] // 3
|
//"coordinates": [ 5.67185376229668581, 52.5280565894154563 ] // 3
|
||||||
//"coordinates": [ 5.66903207841337231, 52.52790646510525363 ] // 4
|
//"coordinates": [ 5.66903207841337231, 52.52790646510525363 ] // 4
|
||||||
} // if no angle
|
} // if no angle
|
||||||
|
|
||||||
//"Angle": "317.0" // if no endpoint
|
//"Angle": "317.0" // if no endpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user