NAME
MputProjection - change projection type of map
SYNOPSIS
#include "csf.h"
CSF_PT MputProjection
(
MAP *map,
CSF_PT p
);
PARAMETERS
-
MAP *map
-
map handle
-
CSF_PT p
-
projection type, all nonzero values are mapped to
1 (PT_YDECT2B)
Possible values for a
CSF_PT
are as follows:
* these two can be returned by or passed to a csf2 function
- PT_YINCT2B - Y increase from top to bottom.
- PT_YDECT2B - Y decrease from top to bottom.
* this one CANNOT be returned by NOR passed to a csf2 function
- PT_UNDEFINED - Just some value different from the rest.
DESCRIPTION
MputProjection type changes the projection type of a map.
In version 2, projections are simplified. We only discern between
a projection with y increasing (PT_YINCT2B=0) and decreasing (PT_YDECT2B=1)
from top to bottom.
All old constants that denote a projection with y decreasing are nonzero.
And the old constant that denote a projection with y decreasing (PT_XY) is 0.
RETURNS
the new projection (PT_YINCT2B or PT_YDECT2B) or MV_UINT2 if an
error occurred.
Possible values for a
CSF_PT
are as follows:
* these two can be returned by or passed to a csf2 function
- PT_YINCT2B - Y increase from top to bottom.
- PT_YDECT2B - Y decrease from top to bottom.
* this one CANNOT be returned by NOR passed to a csf2 function
- PT_UNDEFINED - Just some value different from the rest.
MERRNO
NOACCESS