/src/gdal/frmts/pcraster/libcsf/puty0.c
Line | Count | Source (jump to first uncovered line) |
1 | | #include "csf.h" |
2 | | #include "csfimpl.h" |
3 | | |
4 | | /* change the y value of upper left co-ordinate |
5 | | * RputYUL changes the y value of upper left co-ordinate. |
6 | | * Whether this is the largest or smallest y value depends on the |
7 | | * projection (See MgetProjection()). |
8 | | * returns the new y value of upper left co-ordinate or 0 |
9 | | * case of an error. |
10 | | * |
11 | | * Merrno |
12 | | * NOACCESS |
13 | | */ |
14 | | REAL8 RputYUL( |
15 | | MAP *map, /* map handle */ |
16 | | REAL8 yUL) /* new y value of upper left co-ordinate */ |
17 | 0 | { |
18 | 0 | CHECKHANDLE_GOTO(map, error); |
19 | 0 | if(! WRITE_ENABLE(map)) |
20 | 0 | { |
21 | 0 | M_ERROR(NOACCESS); |
22 | 0 | goto error; |
23 | 0 | } |
24 | 0 | map->raster.yUL = yUL; |
25 | 0 | return(yUL); |
26 | 0 | error: return(0); |
27 | 0 | } |