Turf/Controllers/AiController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Turf/Turf.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Turf/Web.config | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Turf/Controllers/AiController.cs
@@ -13,9 +13,9 @@ { public class AiController : ApiController { private string getSourcePath() private string getDataCache() { return ConfigurationManager.AppSettings["geoJsonPath"]; return ConfigurationManager.AppSettings["dataCache"]; } [HttpPost] @@ -33,10 +33,10 @@ } //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) { Turf/Turf.csproj
@@ -104,7 +104,9 @@ <Content Include="Global.asax" /> <Content Include="index.html" /> <Content Include="js\turf.min.6.5.js" /> <Content Include="Web.config" /> <Content Include="Web.config"> <SubType>Designer</SubType> </Content> </ItemGroup> <ItemGroup> <Compile Include="App_Start\WebApiConfig.cs" /> Turf/Web.config
@@ -9,8 +9,8 @@ <add key="webpages:Enabled" value="false" /> <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" /> <!-- geojson目录 --> <add key="geoJsonPath" value="D:\AI\datacache\1722828277901\results"/> <!-- 缓存目录 --> <add key="dataCache" value="D:\AI\datacache"/> </appSettings> <system.web> <compilation debug="true" targetFramework="4.5.2" />