管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-09-23 ee1dff45595e094d7874718b960adf959283b993
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
 
namespace ExportMap.Controllers
{
    public class TerraController : ApiController
    {
        // http://localhost/ExportMap/terra/dem/layer.json
        [Route("terra/{path}")]
        [HttpGet]
        public string GetLayerJson(string path)
        {
            return "layer.json";
        }
 
        // http://localhost/ExportMap/terra/dem/3/1/2.terrain
        [Route("terra/{path}/{z}/{x}/{y}")]
        [HttpGet]
        public string GetTerrain(string path, int z, int x, int y)
        {
            return ".terrain";
        }
 
        /*[Route("api/order/{id:int=3}/ordertype")]
        [HttpGet]
        public IHttpActionResult GetById(int id)
        {
            return Ok<string>("Success" + id);
        }
 
        [AcceptVerbs("GET", "POST")]
        public IHttpActionResult GetById(int id)
        {
            return Ok<string>("Success" + id);
        }*/
    }
}