forked from FarmMaps/FarmMapsApiClient
		
	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:
		@@ -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; }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
 | 
			
		||||
using System.Text;
 | 
			
		||||
using Npgsql;
 | 
			
		||||
 | 
			
		||||
namespace FarmmapsApi.Services
 | 
			
		||||
namespace FarmmapsBulkSatDownload.Models
 | 
			
		||||
{
 | 
			
		||||
    public class DB
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
@@ -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; }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user