1 #include "csf.h"
2 #include "csfimpl.h"
3 
4 /* get projection type
5  * MgetProjection returns the projection type of the map.
6  * In version 2, projections are simplified. We only discern between
7  * a projection with y increasing (PT_YINCT2B) and decreasing (PT_YDECT2B)
8  * from top to bottom.
9  * The old constants are mapped to these two.
10  * returns PT_YINCT2B or PT_YDECT2B
RgetNrRows(const MAP * map)11  */
12 CSF_PT MgetProjection(
13 	const MAP *map) /* map handle */
14 {
15 	return (map->main.projection) ? PT_YDECT2B : PT_YINCT2B;
16 }
17