summaryrefslogtreecommitdiff
path: root/navit/map.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-06-11 18:28:48 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-06-11 18:28:48 +0000
commit6971f477337e8c622ab53fadfd52e6af8ac77b35 (patch)
tree77842a088a0f2285e11c1783d1027823518fdb3a /navit/map.c
parentfde61916b21c9b6b5bf363de7a89b92f681b49b2 (diff)
downloadnavit-6971f477337e8c622ab53fadfd52e6af8ac77b35.tar.gz
Fix:Core:Support for map editing
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2313 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/map.c')
-rw-r--r--navit/map.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/navit/map.c b/navit/map.c
index eb8d59a1c..404090d71 100644
--- a/navit/map.c
+++ b/navit/map.c
@@ -641,22 +641,9 @@ map_dump_filedesc(struct map *map, FILE *out)
{
struct map_rect *mr=map_rect_new(map, NULL);
struct item *item;
- int i,count,max=16384;
- struct coord ca[max];
- struct attr attr;
-
- while ((item = map_rect_get_item(mr))) {
- count=item_coord_get(item, ca, item->type < type_line ? 1: max);
- if (item->type < type_line)
- fprintf(out,"mg:0x%x 0x%x ", ca[0].x, ca[0].y);
- fprintf(out,"type=%s", item_to_name(item->type));
- while (item_attr_get(item, attr_any, &attr))
- fprintf(out," %s='%s'", attr_to_name(attr.type), attr_to_text(&attr, map, 1));
- fprintf(out,"\n");
- if (item->type >= type_line)
- for (i = 0 ; i < count ; i++)
- fprintf(out,"mg:0x%x 0x%x\n", ca[i].x, ca[i].y);
- }
+
+ while ((item = map_rect_get_item(mr)))
+ item_dump_filedesc(item, map, out);
map_rect_destroy(mr);
}