4e9 #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/mwdb-ged" #define BGCOLOR WHITE #define COAST_COLOR xv.egacolor[16] #define ISLAND_COLOR xv.egacolor[16] #define LAKE_COLOR LIGHTBLUE #define RIVER_COLOR LIGHTBLUE #define COUNTRY_COLOR RED #define STATE_COLOR RED #define DO_COAST 1 #define DO_ISLAND 2 #define DO_LAKE 4 #define DO_RIVER 8 #define DO_COUNTRY 16 #define DO_STATE 32 #define FONT "fixed" #define TEXT_BGCOLOR GRAY #define TEXT_COLOR WHITE #define TEXT_HEIGHT 18 #define LS_X 5 #define LS_Y (WIN_H - 5) #define CS_X (WIN_W - 107) #define CS_Y (WIN_H - 5) #define XM2X(x) (((short)((x) * scale * zoom) - cx) + WIN_W/2) #define YM2Y(y) (WIN_H/2 - ((short)((y) * scale * zoom) - cy) - TEXT_HEIGHT/2) typedef struct { float feature; float npts; } HDR; typedef struct { float lon; float lat; } PNTREC; typedef struct { double x; double y; } COORDREC; typedef struct mappoly { COORDREC *pts; unsigned short npts; struct mappoly *next; } MAPREC; typedef struct { char *name; double lat; double lon; } LOCATION; #endif . 0