mapscript.mapObj

class mapscript.mapObj(*args)

Overview

The mapObj has the following relationships:

../../../_images/mapObj_layerObj.png ../../../_images/mapObj_legendObj.png ../../../_images/mapObj_outputFormatObj.png ../../../_images/mapObj_referenceMapObj.png ../../../_images/mapObj_scalebarObj.png

Attributes

cellsize

double TODO Add documentation

config

configObj const immutable TODO Add documentation

configoptions

hashTableObj immutable TODO Add documentation

datapattern

char TODO Add documentation

debug

int TODO Add documentation

defresolution

double TODO Add documentation

extent

rectObj TODO Add documentation

fontset

fontSetObj immutable TODO Add documentation

height

int See SIZE

imagecolor

colorObj TODO Add documentation

imagetype

char immutable TODO Add documentation

labelcache

labelCacheObj immutable TODO Add documentation

layerorder

int TODO Add documentation

legend

legendObj immutable TODO Add documentation

mappath

char TODO Add documentation

maxlayers

int immutable TODO Add documentation

maxsize

int TODO Add documentation

name

char TODO Add documentation

numlayers

int immutable TODO Add documentation

numoutputformats

int immutable TODO Add documentation

outputformat

outputFormatObj immutable TODO Add documentation

querymap

queryMapObj immutable TODO Add documentation

refcount

int immutable TODO Add documentation

reference

referenceMapObj immutable TODO Add documentation

resolution

double TODO Add documentation

scalebar

scalebarObj immutable TODO Add documentation

scaledenom

double TODO Add documentation

shapepath

char TODO Add documentation

sldurl

char TODO Add documentation

status

int TODO Add documentation

symbolset

symbolSetObj immutable TODO Add documentation

templatepattern

char TODO Add documentation

thisown

The membership flag

units

enum MS_UNITS TODO Add documentation

web

webObj immutable TODO Add documentation

width

int See SIZE

Methods

OWSDispatch(req: OWSRequest) int[source]
__init__(*args)[source]
appendOutputFormat(format: outputFormatObj) int[source]
applyConfigOptions() void[source]
applyDefaultSubstitutions() void[source]
applySLD(sld: char) int[source]
applySLDURL(sld: char) int[source]
applySubstitutions(names: char) void[source]
clone() mapObj[source]
convertToString() char[source]
draw() imageObj[source]
drawLabelCache(image: imageObj) int[source]
drawLegend(scale_independent: int = 0) imageObj[source]
drawQuery() imageObj[source]
drawReferenceMap() imageObj[source]
drawScalebar() imageObj[source]
embedLegend(image: imageObj) int[source]
embedScalebar(image: imageObj) int[source]
freeQuery(qlayer: int = -1) void[source]
generateSLD(sldVersion: char = None) char[source]
getConfigOption(key: char) char[source]
getLayer()[source]
getLayerByName()[source]
getLayerOrder() PyObject[source]
getLayersDrawingOrder() intarray[source]
getNumSymbols() int[source]
getOutputFormat(i: int) outputFormatObj[source]
getOutputFormatByName(name: char) outputFormatObj[source]
getProjection() char[source]
getRotation() double[source]
getSize() PyObject[source]
getSymbolByName(name: char) int[source]
get_height()[source]

Python MapScript only Return the map height from the map size

get_width()[source]

Python MapScript only Return the map width from the map size

insertLayer()[source]
loadMapContext(szFileName: char, useUniqueNames: int = 0) int[source]
loadOWSParameters(*args) int[source]
loadQuery(filename: char) int[source]
moveLayerDown(layerindex: int) int[source]
moveLayerUp(layerindex: int) int[source]
offsetExtent(x: double, y: double) int[source]
pixelToGeoref(pixPosX: double, pixPosY: double, geoPos: pointObj) void[source]
prepareImage() imageObj[source]
prepareQuery() void[source]
processLegendTemplate(names: char, values: char, numentries: int) char[source]
processQueryTemplate(names: char, values: char, numentries: int) char[source]
processTemplate(bGenerateImages: int, names: char, values: char, numentries: int) char[source]
queryByFeatures(slayer: int) int[source]
queryByFilter(string: char) int[source]
queryByPoint(point: pointObj, mode: int, buffer: double) int[source]
queryByRect(rect: rectObj) int[source]
queryByShape(shape: shapeObj) int[source]
removeLayer(index: int) layerObj[source]
removeOutputFormat(name: char) int[source]
save(filename: char) int[source]
saveMapContext(szFileName: char) int[source]
saveQuery(filename: char, results: int = 0) int[source]
saveQueryAsGML(*args) int[source]
scaleExtent(zoomfactor: double, minscaledenom: double, maxscaledenom: double) int[source]
selectOutputFormat(imagetype: char) void[source]
setCenter(center: pointObj) int[source]
setConfigOption(key: char, value: char) void[source]
setExtent(minx: double, miny: double, maxx: double, maxy: double) int[source]
setFontSet(filename: char) int[source]
setImageType(imagetype: char) void[source]
setLayerOrder(order: PyObject) int[source]
setLayersDrawingOrder(panIndexes: int) int[source]
setOutputFormat(format: outputFormatObj) void[source]
setProjection(proj4: char) int[source]
setRotation(rotation_angle: double) int[source]
setSize(width: int, height: int) int[source]
setSymbolSet(szFileName: char) int[source]
setWKTProjection(wkt: char) int[source]
set_height(value)[source]

Python MapScript only Set the map height value of the map size

set_width(value)[source]

Python MapScript only Set the map width value of the map size

zoomPoint(zoomfactor: int, poPixPos: pointObj, width: int, height: int, poGeorefExt: rectObj, poMaxGeorefExt: rectObj) int[source]
zoomRectangle(poPixRect: rectObj, width: int, height: int, poGeorefExt: rectObj, poMaxGeorefExt: rectObj) int[source]
zoomScale(scale: double, poPixPos: pointObj, width: int, height: int, poGeorefExt: rectObj, poMaxGeorefExt: rectObj) int[source]