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

generation_number

unsigned short immutable To be incremented when the content of the object changes, so that a reprojector can be invalidated

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)[sumber]

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

getUnits() int[sumber]

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

setWKTProjection(wkt: char) int[sumber]

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