a_coords_utm_to_latlon(&dem_northeast_utm, &dem_northeast);
a_coords_utm_to_latlon(&dem_southwest_utm, &dem_southwest);
+ } else {
+ // Unknown horiz_units - this shouldn't normally happen
+ // Thus can't work out positions to use
+ return;
}
if ( (max_lat > dem_northeast.lat && min_lat > dem_northeast.lat) ||
box_height -= box_y;
// catch box at borders
if(box_width < 0 || box_height < 0)
- continue; // skip this. this is out of our viewport anyway. FIXME: why?
+ // skip this as is out of the viewport (e.g. zoomed in so this point is way off screen)
+ continue;
gboolean below_minimum = FALSE;
if(vdl->type == DEM_TYPE_HEIGHT) {
}
{
- if(box_width < 0 || box_height < 0) // FIXME: why does this happen?
- continue;
-
if(vdl->type == DEM_TYPE_GRADIENT) {
if( elev == VIK_DEM_INVALID_ELEVATION ) {
/* don't draw it */
(intlon >= 0) ? 'E' : 'W',
ABS(intlon) );
- static DownloadMapOptions options = { FALSE, FALSE, NULL, 0, a_check_map_file, NULL, NULL };
+ static DownloadFileOptions options = { FALSE, FALSE, NULL, 0, a_check_map_file, NULL, NULL };
DownloadResult_t result = a_http_download_get_url ( SRTM_HTTP_SITE, src_fn, p->dest, &options, NULL );
switch ( result ) {
case DOWNLOAD_CONTENT_ERROR: