4 #define VIK_DEM_INVALID_ELEVATION -32768
7 #define VIK_DEM_HORIZ_UTM_METERS 2
8 #define VIK_DEM_HORIZ_LL_ARCSECONDS 3
10 #define VIK_DEM_VERT_DECIMETERS 2
12 #define VIK_DEM_VERT_METERS 1 /* wrong in 250k? */
20 guint8 orig_vert_units
; /* original, always converted to meters when loading. */
21 gdouble east_scale
; /* gap between samples */
24 gdouble min_east
, min_north
, max_east
, max_north
;
31 /* east-west coordinate for ALL items in the column */
34 /* coordinate of northern and southern boundaries */
43 VikDEM
*vik_dem_new_from_file(const gchar
*file
);
44 void vik_dem_free ( VikDEM
*dem
);
45 gint16
vik_dem_get_xy ( VikDEM
*dem
, guint x
, guint y
);
47 gint16
vik_dem_get_east_north ( VikDEM
*dem
, gdouble east
, gdouble north
);
49 void vik_dem_east_north_to_xy ( VikDEM
*dem
, gdouble east
, gdouble north
, guint
*col
, guint
*row
);