| | |
| | | { |
| | | public class AiController : ApiController |
| | | { |
| | | private string getSourcePath() |
| | | private string getDataCache() |
| | | { |
| | | return ConfigurationManager.AppSettings["geoJsonPath"]; |
| | | return ConfigurationManager.AppSettings["dataCache"]; |
| | | } |
| | | |
| | | [HttpPost] |
| | |
| | | } |
| | | |
| | | //Thread.Sleep(10000); |
| | | String target = Path.Combine(args.data_dir, "results"); |
| | | String target = Path.Combine(getDataCache(), args.data_dir, "results"); |
| | | if (!Directory.Exists(target)) Directory.CreateDirectory(target); |
| | | |
| | | String source = getSourcePath(); |
| | | String source = Path.Combine(getDataCache(), "1722828277901", "results"); |
| | | string[] files = Directory.GetFiles(source, "*.geojson"); |
| | | foreach (string file in files) |
| | | { |