GetFeature Class

.G3DMapDoc#GetFeature(option)

Fx构造函数

# new GetFeature(option)

查询三维服务中要素类图层的属性信息

参数:
名称 类型 属性 默认值 描述
option Object

属性键值对,地图属性字段。

gdbp String <optional>
null
docName String <optional>
null
layerindex String <optional>
0
geometryType String <optional>
null

几何类型(point3D,rect3D等)

geometry Object <optional>
null

几何类型的图形参数,现在只支持点x,y,z,distance

where String <optional>
null

查询条件(例如:id = 12)

structs Object <optional>

指定查询结果的结构,json规范(例如:structs={ IncludeAttribute:true | false, IncludeGeometry:true | false, IncludeWebGraphic :true |false})

page Number <optional>
0

返回的要素分页的页数,默认返回第0页

pageCount Number <optional>
20

要素结果集每页的记录数量,默认为20条/页

objectIds String <optional>
null

要查询的要素oid(多个请用','分隔)

orderField String <optional>
null

排序字段名称

rtnLabel Boolean <optional>
false

是否计算Label点

isAsc Boolean <optional>
false

按照字段进行排列时,是否升序排列

format String <optional>
json

回结果的格式,缺省xml(json / xml)

查看源代码 service/Igserver/G3D/G3DMapDoc.js, line 339

Example
var mapdoc = new Zondy.Catalog.G3DMapDoc({
                ip: "192.168.176.40",
                port: "6163",
                //gdbp: "GDBP://MapGisLocal/深圳数据库/sfcls/深圳南山",
                docName: "shenzhenZT",
                layerindex:2
            });
     mapdoc.GetFeature(function(res){
                console.log('GetFeature');
                console.log(res)
            },false,false,function (error) {
                console.log(error)
            },false);