1600 #ifndef MAPPLOT_H #define MAPPLOT_H #define WIN_X 110 #define WIN_Y 75 #define WIN_W 800 #define WIN_H 600 #define DATADIR "/home/mats/gis/data/wdb-ii" #define PROJECT MERCAT #define LOCATIONS \ "Stockholm:59.34:18.06:1:\ London:51.533:0.083:1:\ Rome:41.9:12.45:1:\ Moscow:55.75:37.6:1:\ L.A.:34.05:-118.25:1:\ New York:40.783:-73.966:1:\ Kingston:44.25:-76.5:1:\ Sydney:-34:151:1:\ Kuala Lumpur:3.133:101.7:1:\ Tokyo:35.666:139.75:1:\ Göteborg:57.70:11.98:8:\ Malmö:55.61:13.08:8:\ Norrköping:58.5934:16.1946:8:\ Falun:60.62:15.62:8:\ Östersund:63.17:14.68:8:\ Jönköping:57.77:14.18:8:\ Luleå:65.54:22.12:8:\ Umeå:63.83:20.29:8:\ Kiruna:67.83:20.34:8:\ Borås:57.76:12.95:16:\ Varberg:57.11:12.27:16:\ Kristianstad:56.03:14.16:16:\ Växjö:56.87:14.80:16:\ Visby:57.64:18.29:16:\ Västervik:57.72:16.47:16:\ Skara:58.40:13.45:16:\ Arvika:59.67:12.59:16:\ Karlstad:59.44:13.34:16:\ Örebro:59.24:15.29:16:\ Västerås:59.62:16.55:16:\ Uppsala:59.86:17.63:16:\ Gävle:60.65:17.17:16:\ Kalmar:56.73:16.29:16:\ Mora:60.96:14.51:16:\ Borlänge:60.43:15.51:16:\ Edsbyn:61.38:15.84:16:\ Sveg:62.02:14.19:16:\ Sundsvall:62.40:17.27:16:\ Härnösand:62.63:17.95:16:\ Storlien:63.32:12.10:16:\ Lycksele:64.59:18.66:16:\ Skellefteå:64.62:21.07:16:\ Åre:63.41:13.08:16:\ Arvidsjaur:65.60:19.27:16:\ Piteå:65.32:21.49:16:\ Boden:65.81:21.69:16:\ Jokkmokk:66.63:19.64:16:\ Gällivare:67.14:20.66:16:\ Lerum:57.76:12.26:32:\ Alingsås:57.93:12.53:32:\ Kungsbacka:57.49:12.08:32:\ Vara:58.264:12.956:32:\ Katrineholm:58.99:16.20:32:\ Söderköping:58.48:16.32:32:\ Värnamo:57.19:14.04:32:\ Lund:55.71:13.20:32" #define DO_POINTS (DO_EUROPE | DO_CIL | DO_RIV | DO_BDY) #define DO_GRID 1 #define DO_LABELS 1 #define CIL1_COLOR xv.egacolor[16] #define CIL2_COLOR xv.egacolor[16] #define CIL3_COLOR xv.egacolor[16] #define CIL4_COLOR xv.egacolor[16] #define CIL5_COLOR xv.egacolor[16] #define CIL6_COLOR xv.egacolor[16] #define CIL7_COLOR xv.egacolor[16] #define CIL8_COLOR xv.egacolor[16] #define CIL9_COLOR xv.egacolor[16] #define CIL10_COLOR xv.egacolor[16] #define CIL11_COLOR xv.egacolor[16] #define CIL12_COLOR xv.egacolor[16] #define CIL13_COLOR xv.egacolor[16] #define CIL14_COLOR xv.egacolor[16] #define CIL15_COLOR xv.egacolor[16] #define RIV1_COLOR xv.egacolor[11] #define RIV2_COLOR xv.egacolor[43] #define RIV3_COLOR xv.egacolor[43] #define RIV4_COLOR xv.egacolor[43] #define RIV5_COLOR xv.egacolor[11] #define RIV6_COLOR xv.egacolor[43] #define RIV7_COLOR xv.egacolor[43] #define RIV8_COLOR xv.egacolor[43] #define RIV9_COLOR xv.egacolor[43] #define RIV10_COLOR xv.egacolor[43] #define RIV11_COLOR xv.egacolor[43] #define RIV12_COLOR xv.egacolor[43] #define BDY1_COLOR RED #define BDY2_COLOR RED #define BDY3_COLOR RED #define PBY1_COLOR RED #define PBY2_COLOR RED #define PBY3_COLOR RED #define CIL1_WIDTH 2 #define CIL2_WIDTH 1 #define CIL3_WIDTH 1 #define CIL4_WIDTH 1 #define CIL5_WIDTH 1 #define CIL6_WIDTH 1 #define CIL7_WIDTH 1 #define CIL8_WIDTH 1 #define CIL9_WIDTH 1 #define CIL10_WIDTH 1 #define CIL11_WIDTH 1 #define CIL12_WIDTH 1 #define CIL13_WIDTH 1 #define CIL14_WIDTH 1 #define CIL15_WIDTH 1 #define RIV1_WIDTH 2 #define RIV2_WIDTH 1 #define RIV3_WIDTH 1 #define RIV4_WIDTH 1 #define RIV5_WIDTH 2 #define RIV6_WIDTH 1 #define RIV7_WIDTH 1 #define RIV8_WIDTH 1 #define RIV9_WIDTH 1 #define RIV10_WIDTH 1 #define RIV11_WIDTH 1 #define RIV12_WIDTH 1 #define BDY1_WIDTH 2 #define BDY2_WIDTH 1 #define BDY3_WIDTH 1 #define PBY1_WIDTH 2 #define PBY2_WIDTH 1 #define PBY3_WIDTH 1 #define CIL_FWZOOM 32 #define RIV_FWZOOM 16 #define BDY_FWZOOM 8 #define PBY_FWZOOM 8 #define MGCIL_FWZOOM 256 #define GRID_COLOR LIGHTGRAY #define GRID_WIDTH 1 #define GRID_DEGREES 15 #define FONT "fixed" #define TEXT_BGCOLOR GRAY #define TEXT_COLOR WHITE #define TEXT_HEIGHT 18 #define LS_X 5 #define CS_X (WIN_W - 107) #define LCS_Y (WIN_H - 5) #define GRID_FONT "fixed" #define GTEXT_COLOR BLACK #define GS_LONX 2 #define GS_LONY 10 #define GS_LATX 2 #define GS_LATY -1 #define LABEL_FONT "fixed" #define LABEL_BGCOLOR bgcolor #define LABEL_FGCOLOR BLACK #define LABEL_X 0 #define LABEL_Y 15 #define LABEL_DOTCOLOR xv.egacolor[36] /*********************** End of user configurable stuff *******************/ #define FALSE 0 #define TRUE 1 #define DO_NAMER 1 #define DO_SAMER 2 #define DO_EUROPE 4 #define DO_AFRICA 8 #define DO_ASIA 16 #define DO_CIL 32 #define DO_RIV 64 #define DO_BDY 128 #define CIL 0 #define RIV 1 #define BDY 2 #define PBY 3 #define MGCIL 4 #define XM2X(xm) (((short)((xm) * scale * zoom) - cx) + WIN_W/2) #define YM2Y(ym) (WIN_H/2 - ((short)((ym) * scale * zoom) - cy) - TEXT_HEIGHT/2) #define X2XM(x) ((double)((x) + cx - WIN_W/2) / (scale * zoom)) #define Y2YM(y) ((double)((WIN_H - TEXT_HEIGHT)/2 - (y) + cy) / (scale * zoom)) typedef struct location { char *name; double lat, lon; double xm, ym; int showzoom; struct location *next; } LOCATION; #define MAXPOINTS 50000 typedef struct { float xm, ym; } POINT; typedef struct maprec { char rank; POINT *pts; unsigned short npts; float minlat, maxlat, minlon, maxlon; struct maprec *next; } MAPREC; typedef struct { int type; MAPREC *recs; } MAP; typedef struct extmap { unsigned long color; int width; MAPREC *recs; struct extmap *next; } EXTMAP; extern long (*fortrans[])(double, double, double *, double *); #endif . 0