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:
Attributes
generation_numberunsigned short immutable To be incremented when the content of the object changes, so that a reprojector can be invalidated
numargsint immutable Actual number of projection args
thisownThe membership flag
wellknownprojectionint One of
wkp_none 0,wkp_lonlat 1, orwkp_gmerc 2Methods
- __init__(proj4: char)[исходный код]¶
Create new instance of projectionObj. Input parameter proj4 is a PROJ definition string such as „init=EPSG:4269“
- getUnits() int[исходный код]¶
Returns the units of a projection object. Returns -1 on error.
- setWKTProjection(wkt: char) int[исходный код]¶
Update the projectionObj using an OGC WKT definition Returns
MS_SUCCESSorMS_FAILURE
