Projects FarmmapsBulkSatDownload and FarmmapsDataDownload fully updated and tested

Added some extra Tasks to /FarmmapsApi/Services/GeneralService.cs
Added class SatelliteStatistics.cs to /FarmmapsApi/Models
This commit is contained in:
2021-05-26 10:16:29 +02:00
parent c673f8ddc4
commit 1bc326cfd2
14 changed files with 738 additions and 479 deletions

View File

@@ -1,18 +1,24 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace FarmmapsBulkSatDownload.Models
{
public class BulkSatDownloadInput
{
public bool UseCreatedCropfield { get; set; }
public string fieldName { get; set; }
public string DownloadFolder { get; set; }
public string cropName { get; set; }
public int cropYear { get; set; }
public int fieldID { get; set; }
public List<string> SatelliteBands { get; set; }
public DateTime lastdownloadedimagedate { get; set; }
public JObject GeometryJson { get; set; }
//public string fieldName { get { return string.Format($"{cropName}_fld{fieldID}"); } }
public string cropfielditemcode { get; set; }
public string downloadFolder { get; set; }
public string fileNameStats { get; set; }
public DB database { get; set; }
public string schemaname { get; set; }
public string cropfieldtable { get; set; }
public string satelllitetable { get; set; }
}
}

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using Npgsql;
namespace FarmmapsApi.Services
namespace FarmmapsBulkSatDownload.Models
{
public class DB
{

View File

@@ -6,7 +6,7 @@ namespace FarmmapsBulkSatDownload.Models
{
public class GroenmonitorTable
{
//public string parceltablename; //PO20190605: parceltablename added as a field (=column) in the GroenmonitorTable. The GroenmonitorTable contains data from multiple parceltables
//double? makes a member nullable
public int parcelid;
public string date;
public string source;

View File

@@ -1,11 +1,10 @@
namespace FarmmapsBulkSatDownload
using System.Collections.Generic;
using FarmmapsApi.Models;
namespace FarmmapsBulkSatDownload
{
public class Settings
{
public string CropfieldItemCode { get; set; }
public string SatelliteTaskCode { get; set; }
public string VanDerSatTaskCode { get; set; }
public string WatBalTaskCode { get; set; }
public List<Item> cropFieldItems { get; set; }
}
}
}