Functions
vik_dem_new_from_file ()
VikDEM *
vik_dem_new_from_file (const gchar *file
);
vik_dem_free ()
void
vik_dem_free (VikDEM *dem
);
Types and Values
VIK_DEM_INVALID_ELEVATION
#define VIK_DEM_INVALID_ELEVATION -32768
VIK_DEM_HORIZ_UTM_METERS
#define VIK_DEM_HORIZ_UTM_METERS 2
VIK_DEM_HORIZ_LL_ARCSECONDS
#define VIK_DEM_HORIZ_LL_ARCSECONDS 3
VIK_DEM_VERT_DECIMETERS
#define VIK_DEM_VERT_DECIMETERS 2
VIK_DEM_VERT_METERS
#define VIK_DEM_VERT_METERS 1 /* wrong in 250k? */
VikDEM
typedef struct {
guint n_columns;
GPtrArray *columns;
guint8 horiz_units;
guint8 orig_vert_units; /* original, always converted to meters when loading. */
gdouble east_scale; /* gap between samples */
gdouble north_scale;
gdouble min_east, min_north, max_east, max_north;
guint8 utm_zone;
gchar utm_letter;
} VikDEM;
VikDEMColumn
typedef struct {
/* east-west coordinate for ALL items in the column */
gdouble east_west;
/* coordinate of northern and southern boundaries */
gdouble south;
// gdouble north;
guint n_points;
gint16 *points;
} VikDEMColumn;