mapscript.projectionObj

class mapscript.projectionObj(proj4: char)

The PROJECTION object MapServer’s Maps and Layers have Projection attributes, and these are C projectionObj structures, but are not directly exposed by the mapscript module

Overview

The pointObj has the following relationships:

../../../_images/pointObj_lineObj.png

Attributes

automatic

int immutable Projection object was to fetched from the layer

numargs

int immutable Actual number of projection args

thisown

The membership flag

wellknownprojection

int One of wkp_none 0, wkp_lonlat 1, or wkp_gmerc 2

Methods

__init__(proj4: char)[sorgente]

Create new instance of projectionObj. Input parameter proj4 is a PROJ definition string such as “init=EPSG:4269”

getUnits() int[sorgente]

Returns the units of a projection object. Returns -1 on error.

setWKTProjection(wkt: char) int[sorgente]

Update the projectionObj using an OGC WKT definition Returns MS_SUCCESS or MS_FAILURE