mapscript.layerObj¶
- class mapscript.layerObj(map: Optional[mapscript.mapObj] = None)¶
概述
LayerObj具有以下关系:
属性
bandsitemTODO 添加文档
bindvalsTODO 添加文档
classgroupTODO 添加文档
classitemTODO 添加文档
clusterTODO 添加文档
compositerTODO 添加文档
connectionTODO 添加文档
connectionoptionsTODO 添加文档
connectiontypeTODO 添加文档
dataTODO 添加文档
debugTODO 添加文档
dumpTODO 添加文档
encodingTODO 添加文档
extentTODO 添加文档
filteritemTODO 添加文档
footerTODO 添加文档
groupTODO 添加文档
headerTODO 添加文档
indexTODO 添加文档
labelcacheTODO 添加文档
labelitemTODO 添加文档
labelmaxscaledenomTODO 添加文档
labelminscaledenomTODO 添加文档
labelrequiresTODO 添加文档
mapTODO 添加文档
maskTODO 添加文档
maxclassesTODO 添加文档
maxfeaturesTODO 添加文档
maxgeowidthTODO 添加文档
maxscaledenomTODO 添加文档
metadataTODO 添加文档
minfeaturesizeTODO 添加文档
mingeowidthTODO 添加文档
minscaledenomTODO 添加文档
nameTODO 添加文档
numclassesTODO 添加文档
numitemsTODO 添加文档
numjoinsTODO 添加文档
numprocessingTODO 添加文档
offsiteTODO 添加文档
plugin_libraryTODO 添加文档
plugin_library_originalTODO 添加文档
postlabelcacheTODO 添加文档
refcountTODO 添加文档
rendermodeTODO 添加文档
requiresTODO 添加文档
sizeunitsTODO 添加文档
startindexTODO 添加文档
statusTODO 添加文档
styleitemTODO 添加文档
symbolscaledenomTODO 添加文档
templateTODO 添加文档
thisown会员旗
tileindexTODO 添加文档
tileitemTODO 添加文档
tilesrsTODO 添加文档
toleranceTODO 添加文档
toleranceunitsTODO 添加文档
transformTODO 添加文档
typeTODO 添加文档
unitsTODO 添加文档
utfdataTODO 添加文档
utfitemTODO 添加文档
utfitemindexTODO 添加文档
validationTODO 添加文档
方法
- __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[源代码]¶
