URI

<geometry_uri>/3d/loft[.<format>]

Supported methods

GETPOSTHEAD

Parent resource

geometry

Child resources

geometryLoftResult

Introduction

    基于二维面对象对指定线进行放样。对该资源发送POST请求,则可以Creates a放样结果资源。

Supported methods:

  • GET:Returns a form for the POST request.
  • POST:Creates a放样结果资源。
  • HEAD:检查loftresource exists, or if there is permission to accessloft资源。

Supported output formats:RJSON、JSON、HTML、XML。

GIS Services Resource Hierarchy

HTTP Request Methods

对如下 URI 执行 HTTP 请求,以 rjson 输出格式为例加以说明,其中,supermapiserver 是服务器名。

http://supermapiserver:8090/iserver/services/spatialAnalysis-BIM/restjsr/spatialanalyst/geometry/3d/loft.json

GET 请求

Returns a form for the POST request.

POST 请求

Creates a放样结果资源。

Request parameters

Parameters in the request body are as follows:

名称 类型 含义
loftRegion Geometry [Required parameter]放样线的横截面几何对象(二维)
loftLine GeoLine3D [Required parameter]待放样的三维线对象
lonlat Boolean [Required parameter]是否为经纬度坐标
chamfer int 平滑程度
resultSetting GeometrySpatialAnalystResultSetting 放样结果设置,即模型对象放样结果设置

Response structure

Normal response code(s): 201. The response parameters are as follows:  

字段 类型 说明
postResultType postResultType POST 请求的结果类型,枚举说明 POST 请求对目标资源的影响,即处理结果是什么样的。
newResourceID String 分析结果资源的 ID。
succeed boolean 分析是否成功。
newResourceLocation String 创建的新资源的 URI。

Example of response

对loft资源:http://supermapiserver:8090/iserver/services/spatialAnalysis-BIM/restjsr/spatialanalyst/geometry/3d/loft.json,执行 POST 请求,请求参数如下:

{

"loftRegion":{"type":"CIRCLE", "radius":"500", "center":{"x":120.2, "y":40.2}},

"loftLine":{"type":"LINE3D", "parts":[2], "points":[{"x":120.21, "y":40.21, "z":5}, {"x":121.21, "y":41.21, "z":5}]},

 "chamfer":"50",

 "lonlat":"TRUE"

}

The returned resource description in rjson format is shown below:

{

"postResultType":"CreateChild",

"newResourceID":"cdf",

"succeed":true,

"newResourceLocation":"http://supermapiserver:8090/iserver/services/spatialAnalysis-BIM/restjsr/spatialanalyst/geometry/3d/loft/cdf"

}

HEAD 请求

Returns the same HTTP response headers as a GET request, but without the response body. This allows retrieving meta-information from the response headers without transporting the entire content. The meta-information includes the media type,字符编码,压缩编码,实体内容长度等。

A HEAD request can be used to check ifloft资源是否存在,或者客户端是否有权限访问loft资源。通过对加.<format>的 URI 执行 HEAD 请求,还可以快速判断loft资源是否支持<format>格式的表述。

See