mapscript.layerObj¶
- class mapscript.layerObj(map: Optional[mapscript.mapObj] = None)¶
概述
LayerObj具有以下关系:
属性
bandsitem
TODO 添加文档
bindvals
TODO 添加文档
classgroup
TODO 添加文档
classitem
TODO 添加文档
cluster
TODO 添加文档
compositer
TODO 添加文档
connection
TODO 添加文档
connectionoptions
TODO 添加文档
connectiontype
TODO 添加文档
data
TODO 添加文档
debug
TODO 添加文档
dump
TODO 添加文档
encoding
TODO 添加文档
extent
TODO 添加文档
filteritem
TODO 添加文档
footer
TODO 添加文档
group
TODO 添加文档
header
TODO 添加文档
index
TODO 添加文档
labelcache
TODO 添加文档
labelitem
TODO 添加文档
labelmaxscaledenom
TODO 添加文档
labelminscaledenom
TODO 添加文档
labelrequires
TODO 添加文档
map
TODO 添加文档
mask
TODO 添加文档
maxclasses
TODO 添加文档
maxfeatures
TODO 添加文档
maxgeowidth
TODO 添加文档
maxscaledenom
TODO 添加文档
metadata
TODO 添加文档
minfeaturesize
TODO 添加文档
mingeowidth
TODO 添加文档
minscaledenom
TODO 添加文档
name
TODO 添加文档
numclasses
TODO 添加文档
numitems
TODO 添加文档
numjoins
TODO 添加文档
numprocessing
TODO 添加文档
offsite
TODO 添加文档
plugin_library
TODO 添加文档
plugin_library_original
TODO 添加文档
postlabelcache
TODO 添加文档
refcount
TODO 添加文档
rendermode
TODO 添加文档
requires
TODO 添加文档
sizeunits
TODO 添加文档
startindex
TODO 添加文档
status
TODO 添加文档
styleitem
TODO 添加文档
symbolscaledenom
TODO 添加文档
template
TODO 添加文档
thisown
会员旗
tileindex
TODO 添加文档
tileitem
TODO 添加文档
tilesrs
TODO 添加文档
tolerance
TODO 添加文档
toleranceunits
TODO 添加文档
transform
TODO 添加文档
type
TODO 添加文档
units
TODO 添加文档
utfdata
TODO 添加文档
utfitem
TODO 添加文档
utfitemindex
TODO 添加文档
validation
TODO 添加文档
方法
- __init__(map: Optional[mapscript.mapObj] = None)[源代码]¶
- addFeature(shape: mapscript.shapeObj) int [源代码]¶
- clone() mapscript.layerObj [源代码]¶
- draw(map: mapscript.mapObj, image: mapscript.imageObj) int [源代码]¶
- drawQuery(map: mapscript.mapObj, image: mapscript.imageObj) int [源代码]¶
- getClassIndex(map: mapscript.mapObj, shape: mapscript.shapeObj, classgroup: Optional[int] = None, numclasses: int = 0) int [源代码]¶
- getExtent() mapscript.rectObj [源代码]¶
- getItemDefinitions()[源代码]¶
仅适用于PythonMapScript
返回项目(字段)名称及其类型(如果可用)。字段类型使用GML元数据指定,可以是以下类型之一:
Integer|Long|Real|Character|Date|Boolean
- getItemType(layerObj self, int i) char * [源代码]¶
I:整型
返回请求项的字段类型。必须打开一个层才能检索项定义。
传入属性索引以检索类型。层的NumItems属性包含可用项数,第一个项的索引为零。
- getResult(i: int) mapscript.resultObj [源代码]¶
- getResults() mapscript.resultCacheObj [源代码]¶
- getResultsBounds() mapscript.rectObj [源代码]¶
- getShape(record: mapscript.resultObj) mapscript.shapeObj [源代码]¶
- getWMSFeatureInfoURL(map: mapObj, click_x: int, click_y: int, feature_count: int, info_format: char) char [源代码]¶
- nextShape() mapscript.shapeObj [源代码]¶
- queryByFeatures(map: mapscript.mapObj, slayer: int) int [源代码]¶
- queryByIndex(map: mapscript.mapObj, tileindex: int, shapeindex: int, bAddToQuery: int = 0) int [源代码]¶
- queryByRect(map: mapscript.mapObj, rect: mapscript.rectObj) int [源代码]¶
- queryByShape(map: mapscript.mapObj, shape: mapscript.shapeObj) int [源代码]¶
- removeClass(index: int) mapscript.classObj [源代码]¶
- setExtent(minx: double = - 1.0, miny: double = - 1.0, maxx: double = - 1.0, maxy: double = - 1.0) int [源代码]¶
- whichShapes(rect: mapscript.rectObj) int [源代码]¶