|
|
|
@ -737,7 +737,7 @@ void osm_waynodes_check () {
|
|
|
|
|
|
|
|
|
|
|
|
for (hid = 0; hid < osm_hidmax; hid++) {
|
|
|
|
for (hid = 0; hid < osm_hidmax; hid++) {
|
|
|
|
sprintf (text, _("checking for waynodes in hid %d"), hid);
|
|
|
|
sprintf (text, _("checking for waynodes in hid %d"), hid);
|
|
|
|
app_status (text, 0);
|
|
|
|
app_status (-1, text, 0.0);
|
|
|
|
ohash = osm_hashnodes_load (hid, 1);
|
|
|
|
ohash = osm_hashnodes_load (hid, 1);
|
|
|
|
for (i = 0; i < ohash->hash_cnt; i++) {
|
|
|
|
for (i = 0; i < ohash->hash_cnt; i++) {
|
|
|
|
if ((i%1024) == 0) main_wnd_loop (i, ohash->hash_cnt);
|
|
|
|
if ((i%1024) == 0) main_wnd_loop (i, ohash->hash_cnt);
|
|
|
|
@ -1605,7 +1605,7 @@ void osm_processdata (xmlTextReaderPtr reader) {
|
|
|
|
osm.oway->type -= MWAY_MAX;
|
|
|
|
osm.oway->type -= MWAY_MAX;
|
|
|
|
osm_area_cnt++;
|
|
|
|
osm_area_cnt++;
|
|
|
|
|
|
|
|
|
|
|
|
osm_area_save (osm.oway, &osm.area);
|
|
|
|
if (osm.oway->type != MAREA_ignore) osm_area_save (osm.oway, &osm.area);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
osm_ways_cnt++;
|
|
|
|
osm_ways_cnt++;
|
|
|
|
@ -1724,7 +1724,7 @@ void osm_processdata (xmlTextReaderPtr reader) {
|
|
|
|
else if (strcmp ((char*) v, (char*) "steps") == 0) osm.oway->type = MWAY_footway;
|
|
|
|
else if (strcmp ((char*) v, (char*) "steps") == 0) osm.oway->type = MWAY_footway;
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
osm.oway->type = MWAY_unknown_way;
|
|
|
|
osm.oway->type = MWAY_unknown_way;
|
|
|
|
// printf ("unknown highway:'%s'\n", v);
|
|
|
|
printf ("unknown highway:'%s'\n", v);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1922,7 +1922,7 @@ void osm_loadfile (char *fn) {
|
|
|
|
|
|
|
|
|
|
|
|
osm_init ();
|
|
|
|
osm_init ();
|
|
|
|
if (fn == NULL) return;
|
|
|
|
if (fn == NULL) return;
|
|
|
|
app_status (_("converting file"), 0);
|
|
|
|
app_status (-1, _("converting file"), 0.0);
|
|
|
|
d_printf ("osm_loadfile (%s)", fn);
|
|
|
|
d_printf ("osm_loadfile (%s)", fn);
|
|
|
|
|
|
|
|
|
|
|
|
/* check the extension of the osm file */
|
|
|
|
/* check the extension of the osm file */
|
|
|
|
@ -1984,7 +1984,7 @@ void osm_loadfile (char *fn) {
|
|
|
|
/* reset the locale setting back to the environment setting */
|
|
|
|
/* reset the locale setting back to the environment setting */
|
|
|
|
setlocale (LC_ALL, NULL);
|
|
|
|
setlocale (LC_ALL, NULL);
|
|
|
|
osm_free ();
|
|
|
|
osm_free ();
|
|
|
|
app_status (_(""), -1);
|
|
|
|
app_status (-1, _(""), 0.0);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2023,7 +2023,7 @@ void map_load_web (struct map_pos hs, struct map_pos he) {
|
|
|
|
#if defined (_LINUX_)
|
|
|
|
#if defined (_LINUX_)
|
|
|
|
osm_load_from_web_end = he;
|
|
|
|
osm_load_from_web_end = he;
|
|
|
|
osm_load_from_web_start = hs;
|
|
|
|
osm_load_from_web_start = hs;
|
|
|
|
app_status (_("refresh from OpenStreetMap.org"), 0);
|
|
|
|
app_status (-1, _("refresh from OpenStreetMap.org"), 0.0);
|
|
|
|
|
|
|
|
|
|
|
|
for (ret = 0; ret < MLWEBMAX; ret++) wl[ret].p.used = 0;
|
|
|
|
for (ret = 0; ret < MLWEBMAX; ret++) wl[ret].p.used = 0;
|
|
|
|
for (ret = 0; ret < 13; ret++) args[ret] = NULL;
|
|
|
|
for (ret = 0; ret < 13; ret++) args[ret] = NULL;
|
|
|
|
@ -2039,7 +2039,7 @@ void map_load_web (struct map_pos hs, struct map_pos he) {
|
|
|
|
ret = execwait (&wl[i].p);
|
|
|
|
ret = execwait (&wl[i].p);
|
|
|
|
if (ret == 1) {
|
|
|
|
if (ret == 1) {
|
|
|
|
osm_loadfile (wl[i].fcache);
|
|
|
|
osm_loadfile (wl[i].fcache);
|
|
|
|
app_status (_("refresh from OpenStreetMap.org"), 0);
|
|
|
|
app_status (-1, _("refresh from OpenStreetMap.org"), 0.0);
|
|
|
|
main_wnd_update ();
|
|
|
|
main_wnd_update ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|