64 if (Map_info_in == NULL) {
67 if (Map_info_in->
nline < 1) {
83 if (New_resolution < 1) {
94 if (Map_info_out == NULL) {
102 map_info_out_tmp = *Map_info_in;
114 if (size_x % New_resolution != 0) {
117 if (size_y % New_resolution != 0) {
121 map_info_out_tmp.
nline = size_x / New_resolution;
122 map_info_out_tmp.
nsample = size_y / New_resolution;
140 center_offset = (Map_info_in->
resolution - New_resolution) / (
double)2.0;
141 map_info_out_tmp.
som.
ulc.
x -= center_offset;
142 map_info_out_tmp.
som.
ulc.
y -= center_offset;
143 map_info_out_tmp.
som.
lrc.
x += center_offset;
144 map_info_out_tmp.
som.
lrc.
y += center_offset;
185 *Map_info_out = map_info_out_tmp;
#define MTKT_MAPINFO_INIT
MTKt_status MtkSomXYToLatLon(int path, double som_x, double som_y, double *lat_dd, double *lon_dd)
Convert SOM X, SOM Y to decimal degrees latitude and longitude.
MTKt_status MtkPathToProjParam(int path, int resolution_meters, MTKt_MisrProjParam *pp)
Get projection parameters.
#define MTK_ERR_CODE_MSG_JUMP(code, msg)
#define MTK_ERR_COND_JUMP(code)
MTKt_status MtkChangeMapResolution(const MTKt_MapInfo *Map_info_in, int New_resolution, MTKt_MapInfo *Map_info_out)
Change resolution of an MTKt_MapInfo structure.