You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
(59) |
Sep
(43) |
Oct
(95) |
Nov
(135) |
Dec
(108) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(229) |
Feb
(141) |
Mar
(59) |
Apr
(70) |
May
(64) |
Jun
(87) |
Jul
(57) |
Aug
(108) |
Sep
(74) |
Oct
(203) |
Nov
(141) |
Dec
(108) |
| 2009 |
Jan
(114) |
Feb
(91) |
Mar
(101) |
Apr
(69) |
May
(54) |
Jun
(82) |
Jul
(49) |
Aug
(109) |
Sep
(81) |
Oct
(93) |
Nov
(100) |
Dec
(79) |
| 2010 |
Jan
(46) |
Feb
(36) |
Mar
(135) |
Apr
(103) |
May
(116) |
Jun
(130) |
Jul
(52) |
Aug
(31) |
Sep
(46) |
Oct
(48) |
Nov
(98) |
Dec
(110) |
| 2011 |
Jan
(234) |
Feb
(184) |
Mar
(150) |
Apr
(43) |
May
(53) |
Jun
(52) |
Jul
(112) |
Aug
(72) |
Sep
(79) |
Oct
(23) |
Nov
(6) |
Dec
(30) |
| 2012 |
Jan
(39) |
Feb
(37) |
Mar
(49) |
Apr
(60) |
May
(63) |
Jun
(38) |
Jul
(33) |
Aug
(24) |
Sep
(20) |
Oct
(14) |
Nov
(23) |
Dec
(50) |
| 2013 |
Jan
(30) |
Feb
(32) |
Mar
(27) |
Apr
(41) |
May
(59) |
Jun
(21) |
Jul
(10) |
Aug
(73) |
Sep
(23) |
Oct
(60) |
Nov
(14) |
Dec
(15) |
| 2014 |
Jan
(4) |
Feb
(8) |
Mar
(11) |
Apr
(6) |
May
(27) |
Jun
(4) |
Jul
(29) |
Aug
(62) |
Sep
(11) |
Oct
(17) |
Nov
(58) |
Dec
(9) |
| 2015 |
Jan
(23) |
Feb
(3) |
Mar
(26) |
Apr
(47) |
May
(8) |
Jun
(28) |
Jul
(10) |
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <md...@us...> - 2013-02-16 22:41:30
|
Revision: 5380
http://navit.svn.sourceforge.net/navit/?rev=5380&view=rev
Author: mdankov
Date: 2013-02-16 22:41:22 +0000 (Sat, 16 Feb 2013)
Log Message:
-----------
Add:maptool:Experimental feature to not include excessive administrative sublevels to admin centres. For example, Moscow actually is not in Tverskoy district of itself.
Modified Paths:
--------------
trunk/navit/navit/maptool/boundaries.c
trunk/navit/navit/maptool/maptool.h
trunk/navit/navit/maptool/osm.c
Modified: trunk/navit/navit/maptool/boundaries.c
===================================================================
--- trunk/navit/navit/maptool/boundaries.c 2013-02-16 13:00:58 UTC (rev 5379)
+++ trunk/navit/navit/maptool/boundaries.c 2013-02-16 22:41:22 UTC (rev 5380)
@@ -97,10 +97,21 @@
osm_warning("relation",item_bin_get_relationid(ib),0,"Country Boundary doesn't contain an ISO3166-1 tag\n");
}
while ((member=item_bin_get_attr(ib, attr_osm_member, member))) {
- long long wayid;
+ long long osm_id;
int read=0;
- if (sscanf(member,"2:"LONGLONG_FMT":%n",&wayid,&read) >= 1) {
- char *rolestr=member+read;
+ int member_type;
+ char *rolestr;
+
+ if (sscanf(member,"%d:"LONGLONG_FMT":%n",&member_type,&osm_id,&read) < 2)
+ continue;
+
+ rolestr=member+read;
+
+ if(member_type==1) {
+ if(!strcmp(rolestr,"admin_centre") || !strcmp(rolestr,"admin_center"))
+ boundary->admin_centre=osm_id;
+ }
+ if(member_type==2) {
enum geom_poly_segment_type role;
if (!strcmp(rolestr,"outer") || !strcmp(rolestr,"exclave"))
role=geom_poly_segment_type_way_outer;
@@ -110,10 +121,10 @@
role=geom_poly_segment_type_way_unknown;
else {
osm_warning("relation",item_bin_get_relationid(ib),0,"Unknown role %s in member ",rolestr);
- osm_warning("way",wayid,1,"\n");
+ osm_warning("way",osm_id,1,"\n");
role=geom_poly_segment_type_none;
}
- relations_add_func(relations, relations_func, boundary, (gpointer)role, 2, wayid);
+ relations_add_func(relations, relations_func, boundary, (gpointer)role, 2, osm_id);
}
}
boundary->ib=item_bin_dup(ib);
Modified: trunk/navit/navit/maptool/maptool.h
===================================================================
--- trunk/navit/navit/maptool/maptool.h 2013-02-16 13:00:58 UTC (rev 5379)
+++ trunk/navit/navit/maptool/maptool.h 2013-02-16 22:41:22 UTC (rev 5380)
@@ -125,6 +125,7 @@
GList *segments,*sorted_segments;
GList *children;
struct rect r;
+ osmid admin_centre;
};
char *osm_tag_value(struct item_bin *ib, char *key);
Modified: trunk/navit/navit/maptool/osm.c
===================================================================
--- trunk/navit/navit/maptool/osm.c 2013-02-16 13:00:58 UTC (rev 5379)
+++ trunk/navit/navit/maptool/osm.c 2013-02-16 22:41:22 UTC (rev 5380)
@@ -1820,7 +1820,7 @@
{
GList *l,*matches=boundary_find_matches(bl, c);
struct boundary *match=NULL;
-
+
l=matches;
while (l) {
struct boundary *b=l->data;
@@ -1834,17 +1834,27 @@
}
l=g_list_next(l);
}
+
if (match) {
if (match && match->country && match->country->admin_levels) {
+ char *nodeid=item_bin_get_attr(ib, attr_osm_nodeid, NULL);
+ long long node_id;
+ int end=strlen(match->country->admin_levels)+3;
+ int a;
+ int max_adm_level=end;
+
+ if(nodeid)
+ if(sscanf(nodeid,LONGLONG_FMT,&node_id)<1)
+ node_id=0;
+
l=matches;
while (l) {
struct boundary *b=l->data;
char *admin_level=osm_tag_value(b->ib, "admin_level");
char *postal=osm_tag_value(b->ib, "postal_code");
if (admin_level) {
- int a=atoi(admin_level);
- int end=strlen(match->country->admin_levels)+3;
char *name;
+ a=atoi(admin_level);
if (a > 2 && a < end) {
enum attr_type attr_type=attr_none;
switch(match->country->admin_levels[a-3]) {
@@ -1869,9 +1879,21 @@
attrs[0].type=attr_town_postal;
attrs[0].u.str=postal;
}
+ if(b->admin_centre && b->admin_centre==node_id) {
+ if(!max_adm_level || max_adm_level<a)
+ max_adm_level=a;
+ }
+
l=g_list_next(l);
}
+
+ /* Administrative centres are not to be contained in their own districts. */
+ if(experimental && max_adm_level>0)
+ for(a=end-1;a>max_adm_level;a--)
+ attrs[a-2].type=type_none;
}
+
+
return match->country;
} else
return NULL;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2013-02-16 13:01:06
|
Revision: 5379
http://navit.svn.sourceforge.net/navit/?rev=5379&view=rev
Author: martin-s
Date: 2013-02-16 13:00:58 +0000 (Sat, 16 Feb 2013)
Log Message:
-----------
Add:Core:Allow text coordinates to be in utm,utmref or gk projection
Modified Paths:
--------------
trunk/navit/navit/coord.c
Modified: trunk/navit/navit/coord.c
===================================================================
--- trunk/navit/navit/coord.c 2013-02-15 22:17:01 UTC (rev 5378)
+++ trunk/navit/navit/coord.c 2013-02-16 13:00:58 UTC (rev 5379)
@@ -168,7 +168,7 @@
const char *str=c_str;
int args,ret = 0;
struct coord_geo g;
- struct coord c;
+ struct coord c,offset;
enum projection str_pro=projection_none;
dbg(1,"enter('%s',%d,%p)\n", c_str, pro, c_ret);
@@ -188,8 +188,11 @@
else if (!strcmp(proj, "geo"))
str_pro = projection_none;
else {
- dbg(0, "Unknown projection: %s\n", proj);
- goto out;
+ str_pro = projection_from_name(proj,&offset);
+ if (str_pro == projection_none) {
+ dbg(0, "Unknown projection: %s\n", proj);
+ goto out;
+ }
}
}
if (! s) {
@@ -240,6 +243,18 @@
}
dbg(3,"str='%s' x=%f ns=%c y=%f ew=%c c=%d\n", str, lng, ns, lat, ew, ret);
dbg(3,"rest='%s'\n", str+ret);
+ } else if (str_pro == projection_utm || str_pro == projection_gk) {
+ double x,y;
+ args=sscanf(str, "%lf %lf%n", &x, &y, &ret);
+ if (args < 2)
+ goto out;
+ c.x=x+offset.x;
+ c.y=y+offset.y;
+ if (str_pro != pro) {
+ transform_to_geo(str_pro, &c, &g);
+ transform_from_geo(pro, &g, &c);
+ }
+ *c_ret=c;
} else {
double lng, lat;
args=sscanf(str, "%lf %lf%n", &lng, &lat, &ret);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2013-02-15 22:17:11
|
Revision: 5378
http://navit.svn.sourceforge.net/navit/?rev=5378&view=rev
Author: martin-s
Date: 2013-02-15 22:17:01 +0000 (Fri, 15 Feb 2013)
Log Message:
-----------
Add:Core:Changed draw_image_warp api
Modified Paths:
--------------
trunk/navit/navit/graphics/android/graphics_android.c
trunk/navit/navit/graphics/gd/graphics_gd.c
trunk/navit/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c
trunk/navit/navit/graphics/null/graphics_null.c
trunk/navit/navit/graphics/opengl/graphics_opengl.c
trunk/navit/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp
trunk/navit/navit/graphics/sdl/graphics_sdl.c
trunk/navit/navit/graphics.c
trunk/navit/navit/graphics.h
Modified: trunk/navit/navit/graphics/android/graphics_android.c
===================================================================
--- trunk/navit/navit/graphics/android/graphics_android.c 2013-02-15 22:16:02 UTC (rev 5377)
+++ trunk/navit/navit/graphics/android/graphics_android.c 2013-02-15 22:17:01 UTC (rev 5378)
@@ -337,11 +337,6 @@
}
static void
-draw_image_warp(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, char *data)
-{
-}
-
-static void
draw_restore(struct graphics_priv *gr, struct point *p, int w, int h)
{
}
@@ -425,7 +420,7 @@
draw_circle,
draw_text,
draw_image,
- draw_image_warp,
+ NULL,
draw_restore,
draw_drag,
font_new,
Modified: trunk/navit/navit/graphics/gd/graphics_gd.c
===================================================================
--- trunk/navit/navit/graphics/gd/graphics_gd.c 2013-02-15 22:16:02 UTC (rev 5377)
+++ trunk/navit/navit/graphics/gd/graphics_gd.c 2013-02-15 22:17:01 UTC (rev 5378)
@@ -466,11 +466,6 @@
}
static void
-draw_image_warp(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, char *data)
-{
-}
-
-static void
draw_restore(struct graphics_priv *gr, struct point *p, int w, int h)
{
}
@@ -809,7 +804,7 @@
draw_circle,
draw_text,
draw_image,
- draw_image_warp,
+ NULL,
draw_restore,
draw_drag,
NULL,
Modified: trunk/navit/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c
===================================================================
--- trunk/navit/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c 2013-02-15 22:16:02 UTC (rev 5377)
+++ trunk/navit/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c 2013-02-15 22:17:01 UTC (rev 5378)
@@ -106,6 +106,9 @@
GdkPixbuf *pixbuf;
int w;
int h;
+#ifdef HAVE_IMLIB2
+ void *image;
+#endif
};
static GHashTable *hImageData; /*hastable for uncompressed image data*/
@@ -120,6 +123,14 @@
if (priv == &image_error)
return;
+#ifdef HAVE_IMLIB2
+ if (priv->image) {
+ imlib_context_set_image(priv->image);
+ imlib_free_image();
+ }
+
+#endif
+
if (priv->pixbuf)
g_object_unref(priv->pixbuf);
g_free(priv);
@@ -502,19 +513,44 @@
#ifdef HAVE_IMLIB2
static void
-draw_image_warp(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, char *data)
+draw_image_warp(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, struct graphics_image_priv *img)
{
- void *image;
int w,h;
- dbg(1,"draw_image_warp data=%s\n", data);
- image = imlib_load_image(data);
- imlib_context_set_display(gdk_x11_drawable_get_xdisplay(gr->widget->window));
- imlib_context_set_colormap(gdk_x11_colormap_get_xcolormap(gtk_widget_get_colormap(gr->widget)));
- imlib_context_set_visual(gdk_x11_visual_get_xvisual(gtk_widget_get_visual(gr->widget)));
- imlib_context_set_drawable(gdk_x11_drawable_get_xid(gr->drawable));
- imlib_context_set_image(image);
- w = imlib_image_get_width();
- h = imlib_image_get_height();
+ static struct graphics_priv *imlib_gr;
+ dbg(1,"draw_image_warp data=%p\n", img);
+ if (imlib_gr != gr) {
+ imlib_context_set_display(gdk_x11_drawable_get_xdisplay(gr->widget->window));
+ imlib_context_set_colormap(gdk_x11_colormap_get_xcolormap(gtk_widget_get_colormap(gr->widget)));
+ imlib_context_set_visual(gdk_x11_visual_get_xvisual(gtk_widget_get_visual(gr->widget)));
+ imlib_context_set_drawable(gdk_x11_drawable_get_xid(gr->drawable));
+ imlib_gr=gr;
+ }
+ w = img->w;
+ h = img->h;
+ if (!img->image) {
+ int x,y;
+#if 0
+ if (!gdk_pixbuf_get_has_alpha(img->pixbuf)) {
+ img->pixbuf=gdk_pixbuf_add_alpha(img->pixbuf, FALSE, 0, 0, 0);
+ }
+#endif
+ img->image=imlib_create_image(w, h);
+ imlib_context_set_image(img->image);
+ if (gdk_pixbuf_get_colorspace(img->pixbuf) != GDK_COLORSPACE_RGB || gdk_pixbuf_get_has_alpha(img->pixbuf) || gdk_pixbuf_get_n_channels(img->pixbuf) != 3 || gdk_pixbuf_get_bits_per_sample(img->pixbuf) != 8) {
+ dbg(0,"implement me\n");
+ } else {
+ for (y=0 ; y < h ; y++) {
+ unsigned int *dst=imlib_image_get_data()+y*w;
+ unsigned char *src=gdk_pixbuf_get_pixels(img->pixbuf)+y*gdk_pixbuf_get_rowstride(img->pixbuf);
+ for (x=0 ; x < w ; x++) {
+ *dst++=0xff000000|(src[0] << 16)|(src[1] << 8)|src[2];
+ src+=3;
+ }
+ }
+ }
+
+ } else
+ imlib_context_set_image(img->image);
if (count == 3) {
/* 0 1
2 */
@@ -531,7 +567,6 @@
*/
imlib_render_image_on_drawable_skewed(0, 0, w, h, p[0].x-w/2, p[0].y-h/2, w, 0, 0, h);
}
- imlib_free_image();
}
#endif
Modified: trunk/navit/navit/graphics/null/graphics_null.c
===================================================================
--- trunk/navit/navit/graphics/null/graphics_null.c 2013-02-15 22:16:02 UTC (rev 5377)
+++ trunk/navit/navit/graphics/null/graphics_null.c 2013-02-15 22:17:01 UTC (rev 5378)
@@ -151,11 +151,6 @@
}
static void
-draw_image_warp(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, char *data)
-{
-}
-
-static void
draw_restore(struct graphics_priv *gr, struct point *p, int w, int h)
{
}
@@ -234,7 +229,7 @@
draw_circle,
draw_text,
draw_image,
- draw_image_warp,
+ NULL,
draw_restore,
draw_drag,
font_new,
Modified: trunk/navit/navit/graphics/opengl/graphics_opengl.c
===================================================================
--- trunk/navit/navit/graphics/opengl/graphics_opengl.c 2013-02-15 22:16:02 UTC (rev 5377)
+++ trunk/navit/navit/graphics/opengl/graphics_opengl.c 2013-02-15 22:17:01 UTC (rev 5378)
@@ -1078,12 +1078,6 @@
}
static void
-draw_image_warp(struct graphics_priv *gr, struct graphics_gc_priv *fg,
- struct point *p, int count, char *data)
-{
-}
-
-static void
draw_restore(struct graphics_priv *gr, struct point *p, int w, int h)
{
}
@@ -1425,7 +1419,7 @@
NULL,
draw_text,
draw_image,
- draw_image_warp,
+ NULL,
draw_restore,
draw_drag,
NULL,
Modified: trunk/navit/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp
===================================================================
--- trunk/navit/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp 2013-02-15 22:16:02 UTC (rev 5377)
+++ trunk/navit/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp 2013-02-15 22:17:01 UTC (rev 5378)
@@ -502,15 +502,6 @@
//# Comment:
//# Authors: Martin Schaller (04/2008)
//##############################################################################################################
-static void draw_image_warp(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, char *data)
-{
-}
-
-//##############################################################################################################
-//# Description:
-//# Comment:
-//# Authors: Martin Schaller (04/2008)
-//##############################################################################################################
static void draw_restore(struct graphics_priv *gr, struct point *p, int w, int h)
{
}
@@ -767,7 +758,7 @@
draw_circle,
draw_text,
draw_image,
- draw_image_warp,
+ NULL,
draw_restore,
draw_drag,
font_new,
Modified: trunk/navit/navit/graphics/sdl/graphics_sdl.c
===================================================================
--- trunk/navit/navit/graphics/sdl/graphics_sdl.c 2013-02-15 22:16:02 UTC (rev 5377)
+++ trunk/navit/navit/graphics/sdl/graphics_sdl.c 2013-02-15 22:17:01 UTC (rev 5378)
@@ -1152,12 +1152,6 @@
}
static void
-draw_image_warp(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, char *data)
-{
- /* TODO */
-}
-
-static void
draw_restore(struct graphics_priv *gr, struct point *p, int w, int h)
{
#ifdef DEBUG
@@ -1308,7 +1302,7 @@
NULL /*draw_circle*/,
draw_text,
draw_image,
- draw_image_warp,
+ NULL,
draw_restore,
draw_drag,
NULL,
Modified: trunk/navit/navit/graphics.c
===================================================================
--- trunk/navit/navit/graphics.c 2013-02-15 22:16:02 UTC (rev 5377)
+++ trunk/navit/navit/graphics.c 2013-02-15 22:17:01 UTC (rev 5378)
@@ -1986,9 +1986,11 @@
break;
case element_image:
dbg(1,"image: '%s'\n", di->label);
- if (gra->meth.draw_image_warp)
- gra->meth.draw_image_warp(gra->priv, gra->gc[0]->priv, pa, count, di->label);
- else
+ if (gra->meth.draw_image_warp) {
+ img=graphics_image_new_scaled_rotated(gra, di->label, -1, -1, 0);
+ if (img)
+ gra->meth.draw_image_warp(gra->priv, gra->gc[0]->priv, pa, count, img->priv);
+ } else
dbg(0,"draw_image_warp not supported by graphics driver drawing '%s'\n", di->label);
break;
case element_arrows:
Modified: trunk/navit/navit/graphics.h
===================================================================
--- trunk/navit/navit/graphics.h 2013-02-15 22:16:02 UTC (rev 5377)
+++ trunk/navit/navit/graphics.h 2013-02-15 22:17:01 UTC (rev 5378)
@@ -56,7 +56,7 @@
void (*draw_circle)(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int r);
void (*draw_text)(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct graphics_gc_priv *bg, struct graphics_font_priv *font, char *text, struct point *p, int dx, int dy);
void (*draw_image)(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, struct graphics_image_priv *img);
- void (*draw_image_warp)(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, char *data);
+ void (*draw_image_warp)(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, struct graphics_image_priv *img);
void (*draw_restore)(struct graphics_priv *gr, struct point *p, int w, int h);
void (*draw_drag)(struct graphics_priv *gr, struct point *p);
struct graphics_font_priv *(*font_new)(struct graphics_priv *gr, struct graphics_font_methods *meth, char *font, int size, int flags);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2013-02-15 22:16:10
|
Revision: 5377
http://navit.svn.sourceforge.net/navit/?rev=5377&view=rev
Author: martin-s
Date: 2013-02-15 22:16:02 +0000 (Fri, 15 Feb 2013)
Log Message:
-----------
Fix:Build:Add imlib2 check to cmake
Modified Paths:
--------------
trunk/navit/CMakeLists.txt
trunk/navit/config.h.cmake
trunk/navit/navit/graphics/gtk_drawing_area/CMakeLists.txt
Modified: trunk/navit/CMakeLists.txt
===================================================================
--- trunk/navit/CMakeLists.txt 2013-02-10 08:51:44 UTC (rev 5376)
+++ trunk/navit/CMakeLists.txt 2013-02-15 22:16:02 UTC (rev 5377)
@@ -134,6 +134,10 @@
pkg_check_modules(LIBOSSO libosso)
pkg_check_modules(LIBGPS19 libgps>=2.90)
pkg_check_modules(LIBGARMIN libgarmin)
+ pkg_check_modules(IMLIB2 imlib2)
+ if(IMLIB2_FOUND)
+ set(HAVE_IMLIB2 1)
+ endif(IMLIB2_FOUND)
endif(PKG_CONFIG_FOUND)
#Simple checks
CHECK_INCLUDE_FILES(wordexp.h HAVE_WORDEXP)
Modified: trunk/navit/config.h.cmake
===================================================================
--- trunk/navit/config.h.cmake 2013-02-10 08:51:44 UTC (rev 5376)
+++ trunk/navit/config.h.cmake 2013-02-15 22:16:02 UTC (rev 5377)
@@ -90,3 +90,5 @@
#cmakedefine USE_OPENGLES2 1
#cmakedefine HAVE_SHMEM 1
+
+#cmakedefine HAVE_IMLIB2 1
Modified: trunk/navit/navit/graphics/gtk_drawing_area/CMakeLists.txt
===================================================================
--- trunk/navit/navit/graphics/gtk_drawing_area/CMakeLists.txt 2013-02-10 08:51:44 UTC (rev 5376)
+++ trunk/navit/navit/graphics/gtk_drawing_area/CMakeLists.txt 2013-02-15 22:16:02 UTC (rev 5377)
@@ -1,2 +1,3 @@
+set(graphics_gtk_drawing_area_LIBS ${IMLIB2_LDFLAGS} ${GTK2_LIBRARIES})
module_add_library(graphics_gtk_drawing_area graphics_gtk_drawing_area.c)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-10 08:51:52
|
Revision: 5376
http://navit.svn.sourceforge.net/navit/?rev=5376&view=rev
Author: mdankov
Date: 2013-02-10 08:51:44 +0000 (Sun, 10 Feb 2013)
Log Message:
-----------
Fix:maptool:Allow osm nodeid to corss 2^31 boundary.
Modified Paths:
--------------
trunk/navit/navit/maptool/maptool.h
trunk/navit/navit/maptool/osm.c
Modified: trunk/navit/navit/maptool/maptool.h
===================================================================
--- trunk/navit/navit/maptool/maptool.h 2013-02-09 23:41:58 UTC (rev 5375)
+++ trunk/navit/navit/maptool/maptool.h 2013-02-10 08:51:44 UTC (rev 5376)
@@ -102,7 +102,7 @@
};
struct node_item {
- int id;
+ unsigned int id;
char ref_node;
char ref_way;
char ref_ref;
@@ -114,7 +114,7 @@
struct country_table;
-typedef long int osmid;
+typedef unsigned long int osmid;
/* boundaries.c */
Modified: trunk/navit/navit/maptool/osm.c
===================================================================
--- trunk/navit/navit/maptool/osm.c 2013-02-09 23:41:58 UTC (rev 5375)
+++ trunk/navit/navit/maptool/osm.c 2013-02-10 08:51:44 UTC (rev 5376)
@@ -41,7 +41,7 @@
extern int doway2poi;
static int in_way, in_node, in_relation;
-static int nodeid,wayid;
+osmid nodeid,wayid;
long long current_id;
static GHashTable *attr_hash,*country_table_hash,*attr_hash;
@@ -1442,7 +1442,7 @@
void
osm_add_way(osmid id)
{
- static int wayid_last;
+ static osmid wayid_last;
in_way=1;
wayid=id;
@@ -1456,7 +1456,7 @@
debug_attr_buffer[0]='\0';
osmid_attr_value=id;
if (wayid < wayid_last && !way_hash) {
- fprintf(stderr,"INFO: Ways out of sequence (new %d vs old %d), adding hash\n", wayid, wayid_last);
+ fprintf(stderr,"INFO: Ways out of sequence (new %lu vs old %lu), adding hash\n", wayid, wayid_last);
way_hash=g_hash_table_new(NULL, NULL);
}
wayid_last=wayid;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-09 23:42:05
|
Revision: 5375
http://navit.svn.sourceforge.net/navit/?rev=5375&view=rev
Author: mdankov
Date: 2013-02-09 23:41:58 +0000 (Sat, 09 Feb 2013)
Log Message:
-----------
Add:gui_internal:Display state and municipality names in town search.
Modified Paths:
--------------
trunk/navit/navit/gui/internal/gui_internal.c
trunk/navit/navit/gui/internal/gui_internal_search.c
Modified: trunk/navit/navit/gui/internal/gui_internal.c
===================================================================
--- trunk/navit/navit/gui/internal/gui_internal.c 2013-02-09 23:40:27 UTC (rev 5374)
+++ trunk/navit/navit/gui/internal/gui_internal.c 2013-02-09 23:41:58 UTC (rev 5375)
@@ -1388,7 +1388,7 @@
flags=4|8|16|32|64|128;
break;
case 3:
- flags=1|8|16|32|64|128|2048;
+ flags=1|4|8|16|32|64|128|2048;
flags &= this->flags_town;
break;
case 4:
Modified: trunk/navit/navit/gui/internal/gui_internal_search.c
===================================================================
--- trunk/navit/navit/gui/internal/gui_internal_search.c 2013-02-09 23:40:27 UTC (rev 5374)
+++ trunk/navit/navit/gui/internal/gui_internal_search.c 2013-02-09 23:41:58 UTC (rev 5375)
@@ -114,33 +114,46 @@
}
static char *
-district_str(struct search_list_result *res, int level)
+get_string_from_attr_list(struct attr **attrs, enum attr_type type, char *dflt)
{
- char *ret=NULL;
- if (res->town->common.district_name)
- ret=res->town->common.district_name;
+ struct attr attr;
+ if(attr_generic_get_attr(attrs,NULL,type,&attr,NULL))
+ return attr.u.str;
+ else
+ return dflt;
+}
+
+static char *
+district_str(struct search_list_result *res, int level, enum attr_type district, char *dflt)
+{
+ char *ret=dflt;
+
+ ret=get_string_from_attr_list(res->town->common.attrs, district, ret);
if (level == 1)
return ret;
- if (res->street->common.district_name)
- ret=res->street->common.district_name;
+
+ ret=get_string_from_attr_list(res->street->common.attrs, district, ret);
+
if (level == 2)
return ret;
- if (res->house_number->common.district_name)
- ret=res->house_number->common.district_name;
+
+ ret=get_string_from_attr_list(res->house_number->common.attrs, district, ret);
+
return ret;
}
static char *
town_str(struct search_list_result *res, int level, int flags)
{
- char *town=res->town->common.town_name;
- char *district=district_str(res, level);
+ char *town=district_str(res, level,attr_town_name,"");
+ char *district=district_str(res, level,attr_district_name,NULL);
char *postal=postal_str(res, level);
char *postal_sep=" ";
char *district_begin=" (";
char *district_end=")";
char *county_sep = ", Co. ";
char *county = res->town->common.county_name;
+
if (!postal)
postal_sep=postal="";
if (!district || (flags & 1))
@@ -148,6 +161,26 @@
if (!county)
county_sep=county="";
+ if(level==1 ) {
+ if(flags & 2) {
+ int n=0;
+ char *s[10]={NULL};
+
+ s[n]=district_str(res, level, attr_state_name, NULL);
+ if(s[n])
+ n++;
+ s[n]=district_str(res, level, attr_county_name, NULL);
+ if(s[n])
+ n++;
+ s[n]=district_str(res, level, attr_municipality_name, NULL);
+ if(s[n])
+ n++;
+
+ return g_strjoinv(", ",s);
+ }
+ county=county_sep="";
+ }
+
return g_strdup_printf("%s%s%s%s%s%s%s%s", postal, postal_sep, town, district_begin, district, district_end, county_sep, county);
}
@@ -242,6 +275,7 @@
item=&res->town->common.item;
name=res->town->common.town_name;
text=town_str(res, 1, 0);
+ text2=town_str(res, 1, 2);
}
if (! strcmp(wm_name,"Street")) {
name=res->street->name;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-09 23:40:34
|
Revision: 5374
http://navit.svn.sourceforge.net/navit/?rev=5374&view=rev
Author: mdankov
Date: 2013-02-09 23:40:27 +0000 (Sat, 09 Feb 2013)
Log Message:
-----------
Add:core:Pull more attributes into the search results list.
Modified Paths:
--------------
trunk/navit/navit/search.c
trunk/navit/navit/search.h
Modified: trunk/navit/navit/search.c
===================================================================
--- trunk/navit/navit/search.c 2013-02-08 21:08:35 UTC (rev 5373)
+++ trunk/navit/navit/search.c 2013-02-09 23:40:27 UTC (rev 5374)
@@ -418,41 +418,80 @@
}
static void
+search_list_common_addattr(struct attr* attr,struct search_list_common *common)
+{
+
+ common->attrs=attr_generic_prepend_attr(common->attrs,attr);
+ switch(attr->type) {
+ case attr_town_name:
+ common->town_name=common->attrs[0]->u.str;
+ break;
+ case attr_county_name:
+ common->county_name=common->attrs[0]->u.str;
+ break;
+ case attr_district_name:
+ common->district_name=common->attrs[0]->u.str;
+ break;
+ case attr_postal:
+ common->postal=common->attrs[0]->u.str;
+ break;
+ case attr_town_postal:
+ if(!common->postal)
+ common->postal=common->attrs[0]->u.str;
+ break;
+ case attr_postal_mask:
+ common->postal_mask=common->attrs[0]->u.str;
+ break;
+ default:
+ break;
+ }
+}
+
+static void
search_list_common_new(struct item *item, struct search_list_common *common)
{
struct attr attr;
- if (item_attr_get(item, attr_town_name, &attr))
- common->town_name=map_convert_string(item->map, attr.u.str);
- else
- common->town_name=NULL;
- if (item_attr_get(item, attr_county_name, &attr))
- common->county_name=map_convert_string(item->map, attr.u.str);
- else
- common->county_name=NULL;
- if (item_attr_get(item, attr_district_name, &attr))
- common->district_name=map_convert_string(item->map, attr.u.str);
- else
- common->district_name=NULL;
- if (item_attr_get(item, attr_postal, &attr))
- common->postal=map_convert_string(item->map, attr.u.str);
- else if (item_attr_get(item, attr_town_postal, &attr))
- common->postal=map_convert_string(item->map, attr.u.str);
- else
- common->postal=NULL;
- if (item_attr_get(item, attr_postal_mask, &attr))
- common->postal_mask=map_convert_string(item->map, attr.u.str);
- else
- common->postal_mask=NULL;
+ int i;
+ enum attr_type common_attrs[]={
+ attr_state_name,
+ attr_county_name,
+ attr_municipality_name,
+ attr_town_name,
+ attr_district_name,
+ attr_postal,
+ attr_town_postal,
+ attr_postal_mask,
+ attr_none
+ };
+
+ common->town_name=NULL;
+ common->district_name=NULL;
+ common->county_name=NULL;
+ common->postal=NULL;
+ common->postal_mask=NULL;
+ common->attrs=NULL;
+
+ for(i=0;common_attrs[i];i++) {
+ if (item_attr_get(item, common_attrs[i], &attr)) {
+ struct attr at;
+ at.type=attr.type;
+ at.u.str=map_convert_string(item->map, attr.u.str);
+ search_list_common_addattr(&at,common);
+ map_convert_free(at.u.str);
+ }
+ }
}
static void
search_list_common_dup(struct search_list_common *src, struct search_list_common *dst)
{
- dst->town_name=map_convert_dup(src->town_name);
- dst->district_name=map_convert_dup(src->district_name);
- dst->county_name=map_convert_dup(src->county_name);
- dst->postal=map_convert_dup(src->postal);
- dst->postal_mask=map_convert_dup(src->postal_mask);
+ int i;
+
+ if(dst->attrs) {
+ for(i=0;dst->attrs[i];i++)
+ search_list_common_addattr(src->attrs[i],dst);
+ }
+
if (src->c) {
dst->c=g_new(struct pcoord, 1);
*dst->c=*src->c;
@@ -463,19 +502,16 @@
static void
search_list_common_destroy(struct search_list_common *common)
{
- map_convert_free(common->town_name);
- map_convert_free(common->district_name);
- map_convert_free(common->county_name);
- map_convert_free(common->postal);
- map_convert_free(common->postal_mask);
- if (common->c)
- g_free(common->c);
+ g_free(common->c);
+ attr_list_free(common->attrs);
+
common->town_name=NULL;
common->district_name=NULL;
common->county_name=NULL;
common->postal=NULL;
common->postal_mask=NULL;
common->c=NULL;
+ common->attrs=NULL;
}
static struct search_list_country *
Modified: trunk/navit/navit/search.h
===================================================================
--- trunk/navit/navit/search.h 2013-02-08 21:08:35 UTC (rev 5373)
+++ trunk/navit/navit/search.h 2013-02-09 23:40:27 UTC (rev 5374)
@@ -33,6 +33,7 @@
char *postal;
char *postal_mask;
char *county_name;
+ struct attr **attrs;
};
struct search_list_country {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-08 21:08:42
|
Revision: 5373
http://navit.svn.sourceforge.net/navit/?rev=5373&view=rev
Author: mdankov
Date: 2013-02-08 21:08:35 +0000 (Fri, 08 Feb 2013)
Log Message:
-----------
Add:maptool:Process Russian administrative subdivisions.
Modified Paths:
--------------
trunk/navit/navit/maptool/osm.c
Modified: trunk/navit/navit/maptool/osm.c
===================================================================
--- trunk/navit/navit/maptool/osm.c 2013-02-08 21:06:37 UTC (rev 5372)
+++ trunk/navit/navit/maptool/osm.c 2013-02-08 21:08:35 UTC (rev 5373)
@@ -309,7 +309,7 @@
{ 634,"Qatar"},
{ 638,"Réunion"},
{ 642,"România,Romania,RO"},
- { 643,"Россия,Российская Федерация,Russia,Russian Federation"},
+ { 643,"Россия,Российская Федерация,Russia,Russian Federation","3s5c7m"},
{ 646,"Rwanda"},
{ 652,"Saint Barthélemy"},
{ 654,"Saint Helena, Ascension and Tristan da Cunha"},
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-08 21:06:45
|
Revision: 5372
http://navit.svn.sourceforge.net/navit/?rev=5372&view=rev
Author: mdankov
Date: 2013-02-08 21:06:37 +0000 (Fri, 08 Feb 2013)
Log Message:
-----------
Fix:maptool:Remove duplicate of attribute used as key.
Modified Paths:
--------------
trunk/navit/navit/maptool/itembin.c
Modified: trunk/navit/navit/maptool/itembin.c
===================================================================
--- trunk/navit/navit/maptool/itembin.c 2013-02-07 22:03:10 UTC (rev 5371)
+++ trunk/navit/navit/maptool/itembin.c 2013-02-08 21:06:37 UTC (rev 5372)
@@ -487,10 +487,11 @@
tile(&r,NULL,tilename,maxdepth,overlap,NULL);
}
- /* insert attr_tile_name attribute before the attribute used as alphabetical ekey (of type type) */
+ /* insert attr_tile_name attribute before the attribute used as alphabetical key (of type type) */
if(maxdepth) {
struct attr_bin *a=item_bin_get_attr_bin(ib, type, NULL);
char *s=g_strdup((char*)(a+1));
+ item_bin_remove_attr(ib,a);
item_bin_add_attr_string(ib, attr_tile_name, tilename);
item_bin_add_attr_string(ib, type, s);
g_free(s);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-07 22:03:16
|
Revision: 5371
http://navit.svn.sourceforge.net/navit/?rev=5371&view=rev
Author: mdankov
Date: 2013-02-07 22:03:10 +0000 (Thu, 07 Feb 2013)
Log Message:
-----------
Add:maptool:Enable Spain town index for experimental maptool runs.
Modified Paths:
--------------
trunk/navit/navit/maptool/boundaries.c
Modified: trunk/navit/navit/maptool/boundaries.c
===================================================================
--- trunk/navit/navit/maptool/boundaries.c 2013-02-07 21:56:41 UTC (rev 5370)
+++ trunk/navit/navit/maptool/boundaries.c 2013-02-07 22:03:10 UTC (rev 5371)
@@ -83,7 +83,7 @@
iso=osm_tag_value(ib, "iso3166-1:alpha2");
/* disable spain for now since it creates a too large index */
- if (admin_level && !strcmp(admin_level, "2") && (!iso || strcasecmp(iso,"es"))) {
+ if (admin_level && !strcmp(admin_level, "2") && (!iso || experimental || strcasecmp(iso,"es"))) {
if (iso) {
struct country_table *country=country_from_iso2(iso);
if (!country)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-07 21:56:48
|
Revision: 5370
http://navit.svn.sourceforge.net/navit/?rev=5370&view=rev
Author: mdankov
Date: 2013-02-07 21:56:41 +0000 (Thu, 07 Feb 2013)
Log Message:
-----------
Add:maptool:Merge recent expiremental changes to mainstream.
Modified Paths:
--------------
trunk/navit/navit/maptool/itembin.c
trunk/navit/navit/maptool/osm.c
Modified: trunk/navit/navit/maptool/itembin.c
===================================================================
--- trunk/navit/navit/maptool/itembin.c 2013-02-07 20:37:29 UTC (rev 5369)
+++ trunk/navit/navit/maptool/itembin.c 2013-02-07 21:56:41 UTC (rev 5370)
@@ -477,7 +477,7 @@
char tilename[32]="";
if (!word)
return;
- if(experimental && maxdepth && ib->clen>0) {
+ if(maxdepth && ib->clen>0) {
struct rect r;
struct coord *c=(struct coord *)(ib+1);
r.l=c[0];
@@ -487,8 +487,8 @@
tile(&r,NULL,tilename,maxdepth,overlap,NULL);
}
- /* insert attr_tile_name attribute before the attribute used as alphabetical key (of type type) */
- if(experimental && maxdepth) {
+ /* insert attr_tile_name attribute before the attribute used as alphabetical ekey (of type type) */
+ if(maxdepth) {
struct attr_bin *a=item_bin_get_attr_bin(ib, type, NULL);
char *s=g_strdup((char*)(a+1));
item_bin_add_attr_string(ib, attr_tile_name, tilename);
@@ -521,16 +521,15 @@
struct attr_bin *attr1,*attr2;
char *s1,*s2;
int ret;
- if(experimental) {
- attr1=item_bin_get_attr_bin(ib1, attr_tile_name, NULL);
- attr2=item_bin_get_attr_bin(ib2, attr_tile_name, NULL);
- if(attr1&&attr2) {
- s1=(char *)(attr1+1);
- s2=(char *)(attr2+1);
- ret=strcmp(s1,s2);
- if(ret)
- return ret;
- }
+
+ attr1=item_bin_get_attr_bin(ib1, attr_tile_name, NULL);
+ attr2=item_bin_get_attr_bin(ib2, attr_tile_name, NULL);
+ if(attr1&&attr2) {
+ s1=(char *)(attr1+1);
+ s2=(char *)(attr2+1);
+ ret=strcmp(s1,s2);
+ if(ret)
+ return ret;
}
#if 0
dbg_assert(ib1->clen==2);
@@ -552,15 +551,14 @@
if (ret)
return ret;
}
- if(experimental) {
- s1=linguistics_casefold(s1);
- s2=linguistics_casefold(s2);
- }
+
+ s1=linguistics_casefold(s1);
+ s2=linguistics_casefold(s2);
+
ret=strcmp(s1, s2);
- if(experimental) {
- g_free(s1);
- g_free(s2);
- }
+ g_free(s1);
+ g_free(s2);
+
if (!ret) {
int match1=0,match2=0;
match1=(attr1->type == attr_town_name_match || attr1->type == attr_district_name_match);
Modified: trunk/navit/navit/maptool/osm.c
===================================================================
--- trunk/navit/navit/maptool/osm.c 2013-02-07 20:37:29 UTC (rev 5369)
+++ trunk/navit/navit/maptool/osm.c 2013-02-07 21:56:41 UTC (rev 5370)
@@ -1576,7 +1576,7 @@
} else if (!strcmp(k,"admin_level")) {
admin_level=atoi(v);
} else if (!strcmp(k,"boundary")) {
- if (!strcmp(v,"administrative") || (experimental && !strcmp(v,"postal_code"))) {
+ if (!strcmp(v,"administrative") || !strcmp(v,"postal_code")) {
boundary=1;
}
} else if (!strcmp(k,"ISO3166-1")) {
@@ -1835,7 +1835,7 @@
l=g_list_next(l);
}
if (match) {
- if (match && match->country && match->country->admin_levels && experimental) {
+ if (match && match->country && match->country->admin_levels) {
l=matches;
while (l) {
struct boundary *b=l->data;
@@ -1953,7 +1953,7 @@
if (attrs[i].type != attr_none)
item_bin_add_attr(ib, &attrs[i]);
}
- item_bin_write_match(ib, attr_town_name, attr_town_name_match, experimental?5:0, result->file);
+ item_bin_write_match(ib, attr_town_name, attr_town_name_match, 5, result->file);
}
}
}
@@ -2724,12 +2724,7 @@
struct country_table *co;
for (i = 0 ; i < sizeof(country_table)/sizeof(struct country_table) ; i++) {
co=&country_table[i];
- if (!experimental && co->size) {
- char tilename[32]="";
- snprintf(filename,sizeof(filename),"country_%d.tmp", co->countryid);
- tile(&co->r, "", tilename, max, overlap, NULL);
- index_country_add(zip_info,co->countryid,NULL,NULL,tilename,filename, co->size, zip_get_index(zip_info));
- } else if(co->size) {
+ if(co->size) {
FILE *in;
char countrypart[32];
char partsuffix[32];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-07 20:37:36
|
Revision: 5369
http://navit.svn.sourceforge.net/navit/?rev=5369&view=rev
Author: mdankov
Date: 2013-02-07 20:37:29 +0000 (Thu, 07 Feb 2013)
Log Message:
-----------
Fix:map_binfile:Improve readability of map_parse_country_binfile().
Modified Paths:
--------------
trunk/navit/navit/map/binfile/binfile.c
Modified: trunk/navit/navit/map/binfile/binfile.c
===================================================================
--- trunk/navit/navit/map/binfile/binfile.c 2013-02-06 21:52:35 UTC (rev 5368)
+++ trunk/navit/navit/map/binfile/binfile.c 2013-02-07 20:37:29 UTC (rev 5369)
@@ -1691,33 +1691,37 @@
map_parse_country_binfile(struct map_rect_priv *mr)
{
struct attr at;
- if (binfile_attr_get(mr->item.priv_data, attr_country_id, &at)) {
- if (at.u.num == mr->country_id)
- {
- if (binfile_attr_get(mr->item.priv_data, attr_zipfile_ref, &at))
- {
- if(mr->msp) {
- struct attr *attr=&mr->msp->search;
- if(attr->type==attr_town_name || attr->type==attr_district_name || attr->type==attr_town_or_district_name) {
- struct attr af, al;
- if(binfile_attr_get(mr->item.priv_data, attr_first_key, &af)) {
- if(case_cmp(af.u.str,attr->u.str,1)>0) {
- dbg(1,"Skipping index item with first_key='%s'\n", af.u.str);
- return;
- }
- }
- if(binfile_attr_get(mr->item.priv_data, attr_last_key, &al)) {
- if(case_cmp(al.u.str,attr->u.str,1)<0) {
- dbg(1,"Skipping index item with first_key='%s', last_key='%s'\n", af.u.str, al.u.str);
- return;
- }
- };
- }
- }
- push_zipfile_tile(mr, at.u.num, 0, 0, 0);
+
+ if (!binfile_attr_get(mr->item.priv_data, attr_country_id, &at))
+ return;
+
+ if( at.u.num != mr->country_id)
+ return;
+
+ if (!binfile_attr_get(mr->item.priv_data, attr_zipfile_ref, &at))
+ return;
+
+ if(mr->msp)
+ {
+ struct attr *search=&mr->msp->search;
+ if(search->type==attr_town_name || search->type==attr_district_name || search->type==attr_town_or_district_name) {
+ struct attr af, al;
+ if(binfile_attr_get(mr->item.priv_data, attr_first_key, &af)) {
+ if(case_cmp(af.u.str,search->u.str,1)>0) {
+ dbg(1,"Skipping index item with first_key='%s'\n", af.u.str);
+ return;
+ }
}
+ if(binfile_attr_get(mr->item.priv_data, attr_last_key, &al)) {
+ if(case_cmp(al.u.str,search->u.str,1)<0) {
+ dbg(1,"Skipping index item with first_key='%s', last_key='%s'\n", af.u.str, al.u.str);
+ return;
+ }
+ }
}
- }
+ }
+
+ push_zipfile_tile(mr, at.u.num, 0, 0, 0);
}
static int
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-06 21:52:42
|
Revision: 5368
http://navit.svn.sourceforge.net/navit/?rev=5368&view=rev
Author: mdankov
Date: 2013-02-06 21:52:35 +0000 (Wed, 06 Feb 2013)
Log Message:
-----------
Add:map_binfile:Utilize maptool experimental feature to speed up the town search.
Modified Paths:
--------------
trunk/navit/navit/map/binfile/binfile.c
Modified: trunk/navit/navit/map/binfile/binfile.c
===================================================================
--- trunk/navit/navit/map/binfile/binfile.c 2013-02-06 21:44:34 UTC (rev 5367)
+++ trunk/navit/navit/map/binfile/binfile.c 2013-02-06 21:52:35 UTC (rev 5368)
@@ -148,6 +148,7 @@
char *url;
struct attr attrs[8];
int status;
+ struct map_search_priv *msp;
#ifdef DEBUG_SIZE
int size;
#endif
@@ -176,6 +177,7 @@
static void map_binfile_close(struct map_priv *m);
static int map_binfile_open(struct map_priv *m);
static void map_binfile_destroy(struct map_priv *m);
+static int case_cmp(char *name, char *match, int partial);
static void lfh_to_cpu(struct zip_lfh *lfh) {
dbg_assert(lfh != NULL);
@@ -1694,6 +1696,24 @@
{
if (binfile_attr_get(mr->item.priv_data, attr_zipfile_ref, &at))
{
+ if(mr->msp) {
+ struct attr *attr=&mr->msp->search;
+ if(attr->type==attr_town_name || attr->type==attr_district_name || attr->type==attr_town_or_district_name) {
+ struct attr af, al;
+ if(binfile_attr_get(mr->item.priv_data, attr_first_key, &af)) {
+ if(case_cmp(af.u.str,attr->u.str,1)>0) {
+ dbg(1,"Skipping index item with first_key='%s'\n", af.u.str);
+ return;
+ }
+ }
+ if(binfile_attr_get(mr->item.priv_data, attr_last_key, &al)) {
+ if(case_cmp(al.u.str,attr->u.str,1)<0) {
+ dbg(1,"Skipping index item with first_key='%s', last_key='%s'\n", af.u.str, al.u.str);
+ return;
+ }
+ };
+ }
+ }
push_zipfile_tile(mr, at.u.num, 0, 0, 0);
}
}
@@ -1999,6 +2019,7 @@
if (!map_rec)
break;
map_rec->country_id = item->id_lo;
+ map_rec->msp = msp;
msp->mr = map_rec;
return msp;
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-06 21:44:41
|
Revision: 5367
http://navit.svn.sourceforge.net/navit/?rev=5367&view=rev
Author: mdankov
Date: 2013-02-06 21:44:34 +0000 (Wed, 06 Feb 2013)
Log Message:
-----------
Fix:core:Do not replace Cyrillic I-short with Cyrillic I as seems to be more misleading than helpful.
Modified Paths:
--------------
trunk/navit/navit/linguistics.c
Modified: trunk/navit/navit/linguistics.c
===================================================================
--- trunk/navit/navit/linguistics.c 2013-02-06 21:33:35 UTC (rev 5366)
+++ trunk/navit/navit/linguistics.c 2013-02-06 21:44:34 UTC (rev 5367)
@@ -231,7 +231,6 @@
/* Cyrillic capital */
{"Ё","Е"},
-{"Й","И"},
{"І","I"},
{"Ї","I"},
{"Ў","У"},
@@ -246,7 +245,6 @@
/* Cyrillic small */
{"ё","е"},
-{"й","и"},
{"і","i"},
{"ї","i"},
{"ў","у"},
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-06 21:33:42
|
Revision: 5366
http://navit.svn.sourceforge.net/navit/?rev=5366&view=rev
Author: mdankov
Date: 2013-02-06 21:33:35 +0000 (Wed, 06 Feb 2013)
Log Message:
-----------
Fix:maptool:Fix country index ordering in maptool experimental feature. Make less debug noise in add_aux_tile.
Modified Paths:
--------------
trunk/navit/navit/maptool/itembin.c
trunk/navit/navit/maptool/tile.c
Modified: trunk/navit/navit/maptool/itembin.c
===================================================================
--- trunk/navit/navit/maptool/itembin.c 2013-02-03 20:57:03 UTC (rev 5365)
+++ trunk/navit/navit/maptool/itembin.c 2013-02-06 21:33:35 UTC (rev 5366)
@@ -486,8 +486,14 @@
bbox_extend(&c[i], &r);
tile(&r,NULL,tilename,maxdepth,overlap,NULL);
}
+
+ /* insert attr_tile_name attribute before the attribute used as alphabetical key (of type type) */
if(experimental && maxdepth) {
+ struct attr_bin *a=item_bin_get_attr_bin(ib, type, NULL);
+ char *s=g_strdup((char*)(a+1));
item_bin_add_attr_string(ib, attr_tile_name, tilename);
+ item_bin_add_attr_string(ib, type, s);
+ g_free(s);
len=ib->len;
}
do {
Modified: trunk/navit/navit/maptool/tile.c
===================================================================
--- trunk/navit/navit/maptool/tile.c 2013-02-03 20:57:03 UTC (rev 5365)
+++ trunk/navit/navit/maptool/tile.c 2013-02-06 21:33:35 UTC (rev 5366)
@@ -357,7 +357,6 @@
while (l) {
at=l->data;
if (!strcmp(at->name, name)) {
- fprintf(stderr,"exists %s vs %s\n",at->name, name);
return -1;
}
l=g_list_next(l);
@@ -367,6 +366,7 @@
at->filename=g_strdup(filename);
at->size=size;
aux_tile_list=g_list_append(aux_tile_list, at);
+ fprintf(stderr,"Adding %s as %s\n",filename, name);
return zip_add_member(zip_info);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-03 20:57:10
|
Revision: 5365
http://navit.svn.sourceforge.net/navit/?rev=5365&view=rev
Author: mdankov
Date: 2013-02-03 20:57:03 +0000 (Sun, 03 Feb 2013)
Log Message:
-----------
Add:osd_core:Allow changing osd text element label attribute from the command interface.
Modified Paths:
--------------
trunk/navit/navit/osd/core/osd_core.c
Modified: trunk/navit/navit/osd/core/osd_core.c
===================================================================
--- trunk/navit/navit/osd/core/osd_core.c 2013-02-03 20:33:23 UTC (rev 5364)
+++ trunk/navit/navit/osd/core/osd_core.c 2013-02-03 20:57:03 UTC (rev 5365)
@@ -3043,6 +3043,38 @@
}
+int
+osd_text_set_attr(struct osd_priv_common *opc, struct attr* attr)
+{
+ struct osd_text *this_ = (struct osd_text *)opc->data;
+
+ if(NULL==attr || NULL==this_) {
+ return 0;
+ }
+ if(attr->type == attr_label) {
+ struct navit *nav=opc->osd_item.navit;
+
+ if(this_->text)
+ g_free(this_->text);
+
+ if(attr->u.str)
+ this_->text = g_strdup(attr->u.str);
+ else
+ this_->text=g_strdup("");
+
+ osd_text_prepare(opc,nav);
+
+ if(navit_get_blocked(nav)&1)
+ return 1;
+
+ osd_text_draw(opc,nav,NULL);
+ navit_draw(opc->osd_item.navit);
+ return 1;
+ }
+ return 0;
+}
+
+
static struct osd_priv *
osd_text_new(struct navit *nav, struct osd_methods *meth,
struct attr **attrs)
@@ -3060,6 +3092,7 @@
opc->osd_item.font_size = 200;
opc->osd_item.meth.draw = osd_draw_cast(osd_text_draw);
meth->set_attr = (void (*)(struct osd_priv *osd, struct attr* attr))set_std_osd_attr;
+ opc->spec_set_attr_func = osd_text_set_attr;
osd_set_std_attr(attrs, &opc->osd_item, 2);
this->active = -1;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-02-03 20:33:30
|
Revision: 5364
http://navit.svn.sourceforge.net/navit/?rev=5364&view=rev
Author: mdankov
Date: 2013-02-03 20:33:23 +0000 (Sun, 03 Feb 2013)
Log Message:
-----------
Add:maptool:Experimental option to split country indexes
Modified Paths:
--------------
trunk/navit/navit/attr_def.h
trunk/navit/navit/maptool/itembin.c
trunk/navit/navit/maptool/maptool.c
trunk/navit/navit/maptool/maptool.h
trunk/navit/navit/maptool/osm.c
Modified: trunk/navit/navit/attr_def.h
===================================================================
--- trunk/navit/navit/attr_def.h 2013-01-31 17:04:05 UTC (rev 5363)
+++ trunk/navit/navit/attr_def.h 2013-02-03 20:33:23 UTC (rev 5364)
@@ -359,6 +359,9 @@
ATTR(on_map_click)
ATTR(route_depth)
ATTR(ref)
+ATTR(tile_name)
+ATTR(first_key)
+ATTR(last_key)
ATTR2(0x0003ffff,type_string_end)
ATTR2(0x00040000,type_special_begin)
ATTR(order)
Modified: trunk/navit/navit/maptool/itembin.c
===================================================================
--- trunk/navit/navit/maptool/itembin.c 2013-01-31 17:04:05 UTC (rev 5363)
+++ trunk/navit/navit/maptool/itembin.c 2013-02-03 20:33:23 UTC (rev 5364)
@@ -470,12 +470,26 @@
void
-item_bin_write_match(struct item_bin *ib, enum attr_type type, enum attr_type match, FILE *out)
+item_bin_write_match(struct item_bin *ib, enum attr_type type, enum attr_type match, int maxdepth, FILE *out)
{
char *word=item_bin_get_attr(ib, type, NULL);
int i,words=0,len=ib->len;
+ char tilename[32]="";
if (!word)
return;
+ if(experimental && maxdepth && ib->clen>0) {
+ struct rect r;
+ struct coord *c=(struct coord *)(ib+1);
+ r.l=c[0];
+ r.h=c[0];
+ for (i = 1 ; i < ib->clen/2 ; i++)
+ bbox_extend(&c[i], &r);
+ tile(&r,NULL,tilename,maxdepth,overlap,NULL);
+ }
+ if(experimental && maxdepth) {
+ item_bin_add_attr_string(ib, attr_tile_name, tilename);
+ len=ib->len;
+ }
do {
if (linguistics_search(word)) {
for (i = 0 ; i < 3 ; i++) {
@@ -501,6 +515,17 @@
struct attr_bin *attr1,*attr2;
char *s1,*s2;
int ret;
+ if(experimental) {
+ attr1=item_bin_get_attr_bin(ib1, attr_tile_name, NULL);
+ attr2=item_bin_get_attr_bin(ib2, attr_tile_name, NULL);
+ if(attr1&&attr2) {
+ s1=(char *)(attr1+1);
+ s2=(char *)(attr2+1);
+ ret=strcmp(s1,s2);
+ if(ret)
+ return ret;
+ }
+ }
#if 0
dbg_assert(ib1->clen==2);
dbg_assert(ib2->clen==2);
@@ -521,7 +546,15 @@
if (ret)
return ret;
}
+ if(experimental) {
+ s1=linguistics_casefold(s1);
+ s2=linguistics_casefold(s2);
+ }
ret=strcmp(s1, s2);
+ if(experimental) {
+ g_free(s1);
+ g_free(s2);
+ }
if (!ret) {
int match1=0,match2=0;
match1=(attr1->type == attr_town_name_match || attr1->type == attr_district_name_match);
Modified: trunk/navit/navit/maptool/maptool.c
===================================================================
--- trunk/navit/navit/maptool/maptool.c 2013-01-31 17:04:05 UTC (rev 5363)
+++ trunk/navit/navit/maptool/maptool.c 2013-02-03 20:33:23 UTC (rev 5364)
@@ -175,6 +175,7 @@
fprintf(f,"-w (--dedupe-ways) : ensure no duplicate ways or nodes. useful when using several input files\n");
fprintf(f,"-W (--ways-only) : process only ways\n");
fprintf(f,"-U (--unknown-country) : add objects with unknown country to index\n");
+ fprintf(f,"-x (--index-size) : set maximum country index size in bytes\n");
fprintf(f,"-z (--compression-level) <level> : set the compression level\n");
fprintf(f,"Internal options (undocumented):\n");
fprintf(f,"-b (--binfile)\n");
@@ -215,6 +216,7 @@
int node_table_loaded;
int countries_loaded;
int tilesdir_loaded;
+ int max_index_size;
};
static int
@@ -255,13 +257,14 @@
{"ways-only", 0, 0, 'W'},
{"slice-size", 1, 0, 'S'},
{"unknown-country", 0, 0, 'U'},
+ {"index-size", 0, 0, 'x'},
{0, 0, 0, 0}
};
c = getopt_long (argc, argv, "5:6B:DEMNO:PS:Wa:bc"
#ifdef HAVE_POSTGRESQL
"d:"
#endif
- "e:hi:knm:p:r:s:t:wu:z:U", long_options, option_index);
+ "e:hi:knm:p:r:s:t:wu:z:Ux:", long_options, option_index);
if (c == -1)
return 1;
switch (c) {
@@ -388,6 +391,9 @@
case 'u':
p->url=optarg;
break;
+ case 'x':
+ p->max_index_size=atoi(optarg);
+ break;
#ifdef HAVE_ZLIB
case 'z':
p->compression_level=atoi(optarg);
@@ -714,7 +720,7 @@
unsigned char md5_data[16];
zipnum=zip_get_zipnum(zip_info);
add_aux_tiles("auxtiles.txt", zip_info);
- write_countrydir(zip_info);
+ write_countrydir(zip_info,p->max_index_size);
zip_set_zipnum(zip_info, zipnum);
write_aux_tiles(zip_info);
zip_write_index(zip_info);
@@ -789,6 +795,8 @@
int suffix_start=0;
int option_index=0;
main_init(argv[0]);
+
+ linguistics_init();
#ifndef HAVE_GLIB
_g_slice_thread_init_nomessage();
@@ -804,6 +812,7 @@
p.process_ways=1;
p.process_relations=1;
p.timestamp=current_to_iso8601();
+ p.max_index_size=65536;
#ifdef HAVE_SBRK
start_brk=(long)sbrk(0);
Modified: trunk/navit/navit/maptool/maptool.h
===================================================================
--- trunk/navit/navit/maptool/maptool.h 2013-01-31 17:04:05 UTC (rev 5363)
+++ trunk/navit/navit/maptool/maptool.h 2013-02-03 20:33:23 UTC (rev 5364)
@@ -220,7 +220,7 @@
void item_bin_dump(struct item_bin *ib, FILE *out);
void dump_itembin(struct item_bin *ib);
void item_bin_set_type_by_population(struct item_bin *ib, int population);
-void item_bin_write_match(struct item_bin *ib, enum attr_type type, enum attr_type match, FILE *out);
+void item_bin_write_match(struct item_bin *ib, enum attr_type type, enum attr_type match, int maxdepth, FILE *out);
int item_bin_sort_file(char *in_file, char *out_file, struct rect *r, int *size);
/* itembin_buffer.c */
@@ -302,7 +302,7 @@
FILE *resolve_ways_file(FILE *in, char *suffix, char *filename);
void process_way2poi(FILE *in, FILE *out, int type);
int map_find_intersections(FILE *in, FILE *out, FILE *out_index, FILE *out_graph, FILE *out_coastline, int final);
-void write_countrydir(struct zip_info *zip_info);
+void write_countrydir(struct zip_info *zip_info, int max_index_size);
void osm_process_towns(FILE *in, FILE *boundaries, FILE *ways);
void load_countries(void);
void remove_countryfiles(void);
Modified: trunk/navit/navit/maptool/osm.c
===================================================================
--- trunk/navit/navit/maptool/osm.c 2013-01-31 17:04:05 UTC (rev 5363)
+++ trunk/navit/navit/maptool/osm.c 2013-02-03 20:33:23 UTC (rev 5364)
@@ -122,6 +122,7 @@
FILE *file;
int size;
struct rect r;
+ int nparts;
} country_table[] = {
{ 4,"Afghanistan"},
{ 8,"Albania"},
@@ -1952,7 +1953,7 @@
if (attrs[i].type != attr_none)
item_bin_add_attr(ib, &attrs[i]);
}
- item_bin_write_match(ib, attr_town_name, attr_town_name_match, result->file);
+ item_bin_write_match(ib, attr_town_name, attr_town_name_match, experimental?5:0, result->file);
}
}
}
@@ -2690,36 +2691,130 @@
}
static void
-index_country_add(struct zip_info *info, int country_id, int zipnum)
+index_country_add(struct zip_info *info, int country_id, char*first_key, char *last_key, char *tile, char *filename, int size, FILE *out)
{
struct item_bin *item_bin=init_item(type_countryindex);
+ int num=0, zip_num;
+ char tilename[32];
+
+ do {
+ snprintf(tilename,sizeof(tilename),"%ss%d", tile, num);
+ num++;
+ zip_num=add_aux_tile(info, tilename, filename, size);
+ } while (zip_num == -1);
+
item_bin_add_attr_int(item_bin, attr_country_id, country_id);
- item_bin_add_attr_int(item_bin, attr_zipfile_ref, zipnum);
- item_bin_write(item_bin, zip_get_index(info));
+
+ if(first_key)
+ item_bin_add_attr_string(item_bin, attr_first_key, first_key);
+
+ if(last_key)
+ item_bin_add_attr_string(item_bin, attr_last_key, last_key);
+
+ item_bin_add_attr_int(item_bin, attr_zipfile_ref, zip_num);
+ item_bin_write(item_bin, out);
}
void
-write_countrydir(struct zip_info *zip_info)
+write_countrydir(struct zip_info *zip_info, int max_index_size)
{
- int i,zipnum,num;
+ int i;
int max=11;
- char tilename[32];
char filename[32];
- char suffix[32];
struct country_table *co;
for (i = 0 ; i < sizeof(country_table)/sizeof(struct country_table) ; i++) {
co=&country_table[i];
- if (co->size) {
- num=0;
- do {
- tilename[0]='\0';
- sprintf(suffix,"s%d", num);
- num++;
- tile(&co->r, suffix, tilename, max, overlap, NULL);
- sprintf(filename,"country_%d.tmp", co->countryid);
- zipnum=add_aux_tile(zip_info, tilename, filename, co->size);
- } while (zipnum == -1);
- index_country_add(zip_info,co->countryid,zipnum);
+ if (!experimental && co->size) {
+ char tilename[32]="";
+ snprintf(filename,sizeof(filename),"country_%d.tmp", co->countryid);
+ tile(&co->r, "", tilename, max, overlap, NULL);
+ index_country_add(zip_info,co->countryid,NULL,NULL,tilename,filename, co->size, zip_get_index(zip_info));
+ } else if(co->size) {
+ FILE *in;
+ char countrypart[32];
+ char partsuffix[32];
+ FILE *out=NULL;
+ char *outname=NULL;
+ int partsize;
+ char buffer[50000];
+ struct item_bin *ib=(struct item_bin*)buffer;
+ int ibsize;
+ char tileco[32]="";
+ char tileprev[32]="";
+ char tilecur[32]="";
+ char *countryindexname;
+ FILE *countryindex;
+ char key[1024]="",first_key[1024]="",last_key[1024]="";
+
+ tile(&co->r, "", tileco, max, overlap, NULL);
+
+ snprintf(filename,sizeof(filename),"country_%d.tmp", co->countryid);
+ in=fopen(filename,"rb");
+
+ snprintf(countrypart,sizeof(countrypart),"country_%d_p",co->countryid);
+
+ countryindex=tempfile("0",countrypart,1);
+ countryindexname=tempfile_name("0",countrypart);
+
+ partsize=0;
+
+ while(1) {
+ int r=item_bin_read(ib,in);
+ struct attr_bin *a;
+ ibsize=r>0?(ib->len+1)*4 : 0;
+ if(ibsize) {
+ g_strlcpy(tileprev,tilecur,sizeof(tileprev));
+ a=item_bin_get_attr_bin(ib, attr_tile_name, NULL);
+ if(a) {
+ g_strlcpy(tilecur,(char *)(a+1),sizeof(tilecur));
+ item_bin_remove_attr(ib,a+1);
+ }
+ else
+ tilecur[0]=0;
+
+ a=item_bin_get_attr_bin_last(ib);
+ if(a && ATTR_IS_STRING(a->type))
+ g_strlcpy(key,(char *)(a+1),sizeof(key));
+ }
+
+ /* If output file is already opened, and:
+ - we have reached end of input file, or
+ - adding new tile would make index part too big, or
+ - item just read belongs to a different tile than the previous one,
+ then close existing output file, put reference to the country index tile.*/
+ if(out && (!r || (partsize && ((partsize+ibsize)>max_index_size)) || strcmp(tileprev,tilecur)) ) {
+ partsize=ftell(out);
+ fclose(out);
+ out=NULL;
+ index_country_add(zip_info,co->countryid,first_key,last_key,strlen(tileco)>strlen(tileprev)?tileco:tileprev,outname,partsize,countryindex);
+ g_free(outname);
+ outname=NULL;
+ g_strlcpy(first_key,key,sizeof(first_key));
+ }
+
+ /* No items left, finish this country index. */
+ if(!r)
+ break;
+
+ /* Open new output file. */
+ if(!out) {
+ co->nparts++;
+ snprintf(partsuffix,sizeof(partsuffix),"%d",co->nparts);
+ out=tempfile(partsuffix,countrypart,1);
+ outname=tempfile_name(partsuffix,countrypart);
+ partsize=0;
+ }
+
+ item_bin_write(ib,out);
+ partsize+=ibsize;
+ g_strlcpy(last_key,key,sizeof(last_key));
+ }
+
+ partsize=ftell(countryindex);
+ if(partsize)
+ index_country_add(zip_info,co->countryid,NULL,NULL,tileco,countryindexname, partsize, zip_get_index(zip_info));
+ fclose(countryindex);
+ g_free(countryindexname);
}
}
}
@@ -2761,7 +2856,7 @@
void
remove_countryfiles(void)
{
- int i;
+ int i,j;
char filename[32];
struct country_table *co;
@@ -2771,6 +2866,12 @@
sprintf(filename,"country_%d.tmp", co->countryid);
unlink(filename);
}
+ for(j=0; j<=co->nparts;j++) {
+ char partsuffix[32];
+ sprintf(filename,"country_%d_p", co->countryid);
+ sprintf(partsuffix,"%d",j);
+ tempfile_unlink(partsuffix,filename);
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2013-01-31 17:04:11
|
Revision: 5363
http://navit.svn.sourceforge.net/navit/?rev=5363&view=rev
Author: martin-s
Date: 2013-01-31 17:04:05 +0000 (Thu, 31 Jan 2013)
Log Message:
-----------
Fix:Core:Free attribute after adding it to avoid leakage
Modified Paths:
--------------
trunk/navit/navit/command.c
Modified: trunk/navit/navit/command.c
===================================================================
--- trunk/navit/navit/command.c 2013-01-31 16:40:31 UTC (rev 5362)
+++ trunk/navit/navit/command.c 2013-01-31 17:04:05 UTC (rev 5363)
@@ -645,6 +645,7 @@
}
} else if (!strcmp(function,"add_attr")) {
command_object_add_attr(ctx, &res->attr, list[0]);
+ result_free(list[0]);
} else if (!strcmp(function,"remove_attr")) {
command_object_remove_attr(ctx, &res->attr, list[0]);
} else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2013-01-31 16:40:37
|
Revision: 5362
http://navit.svn.sourceforge.net/navit/?rev=5362&view=rev
Author: martin-s
Date: 2013-01-31 16:40:31 +0000 (Thu, 31 Jan 2013)
Log Message:
-----------
Fix:Core:Made new command work again
Modified Paths:
--------------
trunk/navit/navit/command.c
Modified: trunk/navit/navit/command.c
===================================================================
--- trunk/navit/navit/command.c 2013-01-31 14:56:36 UTC (rev 5361)
+++ trunk/navit/navit/command.c 2013-01-31 16:40:31 UTC (rev 5362)
@@ -509,11 +509,12 @@
op++;
}
if ((op[0] >= 'a' && op[0] <= 'z') || (op[0] >= 'A' && op[0] <= 'Z') || op[0] == '_') {
+ const char *s=op;
for (;;) {
while ((op[0] >= 'a' && op[0] <= 'z') || (op[0] >= 'A' && op[0] <= 'Z') || (op[0] >= '0' && op[0] <= '9') || op[0] == '_') {
op++;
}
- if (res->varlen == 3 && !strncmp(res->var,"new",3) && op[0] == ' ') {
+ if (op-s == 3 && !strncmp(s,"new",3) && op[0] == ' ') {
op++;
} else
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2013-01-31 14:56:42
|
Revision: 5361
http://navit.svn.sourceforge.net/navit/?rev=5361&view=rev
Author: martin-s
Date: 2013-01-31 14:56:36 +0000 (Thu, 31 Jan 2013)
Log Message:
-----------
Fix:Core:Make buffer large enough, remove obsolete debug code
Modified Paths:
--------------
trunk/navit/navit/start_real.c
trunk/navit/navit/xmlconfig.c
Modified: trunk/navit/navit/start_real.c
===================================================================
--- trunk/navit/navit/start_real.c 2013-01-31 13:47:57 UTC (rev 5360)
+++ trunk/navit/navit/start_real.c 2013-01-31 14:56:36 UTC (rev 5361)
@@ -82,21 +82,15 @@
main_argc=argc;
main_argv=argv;
- dbg(0,"at 1\n");
#ifdef HAVE_GLIB
event_glib_init();
#else
_g_slice_thread_init_nomessage();
#endif
- dbg(0,"at 2\n");
atom_init();
- dbg(0,"at 3\n");
main_init(argv[0]);
- dbg(0,"at 4\n");
main_init_nls();
- dbg(0,"at 5\n");
debug_init(argv[0]);
- dbg(0,"at 6\n");
cp = getenv("NAVIT_LOGFILE");
if (cp) {
@@ -107,23 +101,15 @@
debug_set_logfile("/Storage Card/navit.log");
}
#endif
- dbg(0,"at 7\n");
file_init();
- dbg(0,"at 8\n");
#ifndef USE_PLUGINS
builtin_init();
#endif
- dbg(0,"at 9\n");
route_init();
- dbg(0,"at 10\n");
navigation_init();
- dbg(0,"at 11\n");
tracking_init();
- dbg(0,"at 12\n");
search_init();
- dbg(0,"at 13\n");
linguistics_init();
- dbg(0,"at 14\n");
config_file=NULL;
#ifdef HAVE_GETOPT_H
opterr=0; //don't bomb out on errors.
@@ -173,7 +159,6 @@
if (optind < argc) config_file = argv[optind];
}
- dbg(0,"at 15\n");
// if config file is explicitely given only look for it, otherwise try std paths
if (config_file) {
list = g_list_append(list,g_strdup(config_file));
@@ -193,7 +178,6 @@
list = g_list_append(list,g_strdup("/etc/navit/navit.xml"));
#endif
}
- dbg(0,"at 16\n");
li = list;
for (;;) {
if (li == NULL) {
@@ -211,13 +195,12 @@
li = g_list_next(li);
}
- dbg(0,"at 17 %s\n",config_file);
+ dbg(0,"Loading %s\n",config_file);
if (!config_load(config_file, &error)) {
dbg(0, _("Error parsing config file '%s': %s\n"), config_file, error ? error->message : "");
} else {
dbg(0, _("Using config file '%s'\n"), config_file);
}
- dbg(0,"at 18\n");
while (li) {
g_free(li->data);
li = g_list_next(li);
Modified: trunk/navit/navit/xmlconfig.c
===================================================================
--- trunk/navit/navit/xmlconfig.c 2013-01-31 13:47:57 UTC (rev 5360)
+++ trunk/navit/navit/xmlconfig.c 2013-01-31 14:56:36 UTC (rev 5361)
@@ -343,7 +343,7 @@
};
static void initStatic(void) {
- elements=g_new0(struct element_func,40); //39 is a number of elements + ending NULL element
+ elements=g_new0(struct element_func,41); //40 is a number of elements + ending NULL element
elements[0].name="config";
elements[0].parent=NULL;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2013-01-31 13:48:04
|
Revision: 5360
http://navit.svn.sourceforge.net/navit/?rev=5360&view=rev
Author: martin-s
Date: 2013-01-31 13:47:57 +0000 (Thu, 31 Jan 2013)
Log Message:
-----------
Add:Core:Converted osd to new object scheme
Modified Paths:
--------------
trunk/navit/navit/osd.c
trunk/navit/navit/osd.h
trunk/navit/navit/xmlconfig.c
trunk/navit/navit/xmlconfig.h
Modified: trunk/navit/navit/osd.c
===================================================================
--- trunk/navit/navit/osd.c 2013-01-30 21:56:16 UTC (rev 5359)
+++ trunk/navit/navit/osd.c 2013-01-31 13:47:57 UTC (rev 5360)
@@ -21,6 +21,7 @@
#include "debug.h"
#include "plugin.h"
#include "item.h"
+#include "xmlconfig.h"
#include "color.h"
#include "point.h"
#include "navit.h"
@@ -31,9 +32,9 @@
struct osd {
+ NAVIT_OBJECT
struct osd_methods meth;
struct osd_priv *priv;
- struct attr** osd_attrs;
};
struct osd *
@@ -50,23 +51,22 @@
return NULL;
o=g_new0(struct osd, 1);
o->priv=new(parent->u.navit, &o->meth, attrs);
-
- o->osd_attrs = attr_list_dup(attrs);
-
+ if (o->priv) {
+ o->func=&osd_func;
+ navit_object_ref((struct navit_object *)o);
+ o->attrs=attr_list_dup(attrs);
+ } else {
+ g_free(o);
+ o=NULL;
+ }
return o;
}
int
-osd_get_attr(struct osd *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
-{
- return attr_generic_get_attr(this_->osd_attrs, NULL, type, attr, NULL);
-}
-
-int
osd_set_attr(struct osd *osd, struct attr* attr)
{
- osd->osd_attrs=attr_generic_set_attr(osd->osd_attrs,attr);
if(osd && osd->meth.set_attr) {
+ navit_object_set_attr((struct navit_object *)osd, attr);
osd->meth.set_attr(osd->priv, attr);
return 1;
}
@@ -74,6 +74,15 @@
}
void
+osd_destroy(struct osd *osd)
+{
+ if (osd && osd->meth.destroy) {
+ osd->meth.destroy(osd->priv);
+ }
+ g_free(osd);
+}
+
+void
osd_wrap_point(struct point *p, struct navit *nav)
{
if (p->x < 0)
@@ -368,3 +377,19 @@
if (flags & 8)
graphics_draw_lines(item->gr, item->graphic_fg_text, p, 2);
}
+
+struct object_func osd_func = {
+ attr_osd,
+ (object_func_new)osd_new,
+ (object_func_get_attr)navit_object_get_attr,
+ (object_func_iter_new)navit_object_attr_iter_new,
+ (object_func_iter_destroy)navit_object_attr_iter_destroy,
+ (object_func_set_attr)osd_set_attr,
+ (object_func_add_attr)NULL,
+ (object_func_remove_attr)NULL,
+ (object_func_init)NULL,
+ (object_func_destroy)osd_destroy,
+ (object_func_dup)NULL,
+ (object_func_ref)navit_object_ref,
+ (object_func_unref)navit_object_unref,
+};
Modified: trunk/navit/navit/osd.h
===================================================================
--- trunk/navit/navit/osd.h 2013-01-30 21:56:16 UTC (rev 5359)
+++ trunk/navit/navit/osd.h 2013-01-31 13:47:57 UTC (rev 5360)
@@ -26,6 +26,7 @@
struct osd_methods {
void (*osd_destroy)(struct osd_priv *osd);
void (*set_attr)(struct osd_priv *osd, struct attr* attr);
+ void (*destroy)(struct osd_priv *osd);
};
#define osd_draw_cast(x) (void (*)(struct osd_priv *osd, struct navit *navit, struct vehicle *v))(x)
Modified: trunk/navit/navit/xmlconfig.c
===================================================================
--- trunk/navit/navit/xmlconfig.c 2013-01-30 21:56:16 UTC (rev 5359)
+++ trunk/navit/navit/xmlconfig.c 2013-01-31 13:47:57 UTC (rev 5360)
@@ -257,7 +257,6 @@
{ attr_itemgra, NEW(itemgra_new), NULL, NULL, NULL, NULL, ADD(itemgra_add_attr)},
{ attr_log, NEW(log_new)},
{ attr_navigation, NEW(navigation_new), GET(navigation_get_attr)},
- { attr_osd, NEW(osd_new), GET(osd_get_attr), NULL, NULL, SET(osd_set_attr) },
{ attr_plugins, NEW(plugins_new), NULL, NULL, NULL, NULL, NULL, NULL, INIT(plugins_init)},
{ attr_plugin, NEW(plugin_new)},
{ attr_polygon, NEW(polygon_new), NULL, NULL, NULL, NULL, ADD(element_add_attr)},
@@ -287,6 +286,8 @@
return &mapset_func;
case attr_navit:
return &navit_func;
+ case attr_osd:
+ return &osd_func;
case attr_trackingo:
return &tracking_func;
case attr_vehicle:
@@ -1317,3 +1318,10 @@
callback_list_call_attr_2(obj->attrs[0]->u.callback_list, attr->type, attr->u.data, -1);
return 1;
}
+
+void
+navit_object_destroy(struct navit_object *obj)
+{
+ attr_list_free(obj->attrs);
+ g_free(obj);
+}
Modified: trunk/navit/navit/xmlconfig.h
===================================================================
--- trunk/navit/navit/xmlconfig.h 2013-01-30 21:56:16 UTC (rev 5359)
+++ trunk/navit/navit/xmlconfig.h 2013-01-31 13:47:57 UTC (rev 5360)
@@ -54,9 +54,9 @@
void *(*unref)(void *);
};
-extern struct object_func map_func, mapset_func, navit_func, tracking_func, vehicle_func, maps_func, layout_func, vehicleprofile_func, layer_func, config_func;
+extern struct object_func map_func, mapset_func, navit_func, osd_func, tracking_func, vehicle_func, maps_func, layout_func, vehicleprofile_func, layer_func, config_func;
-#define HAS_OBJECT_FUNC(x) ((x) == attr_map || (x) == attr_mapset || (x) == attr_navit || (x) == attr_trackingo || (x) == attr_vehicle || (x) == attr_maps || (x) == attr_layout || (x) == attr_vehicleprofile || (x) == attr_layer || (x) == attr_config)
+#define HAS_OBJECT_FUNC(x) ((x) == attr_map || (x) == attr_mapset || (x) == attr_navit || (x) == attr_osd || (x) == attr_trackingo || (x) == attr_vehicle || (x) == attr_maps || (x) == attr_layout || (x) == attr_vehicleprofile || (x) == attr_layer || (x) == attr_config)
#define NAVIT_OBJECT struct object_func *func; int refcount; struct attr **attrs;
struct navit_object {
@@ -71,6 +71,7 @@
int navit_object_set_attr(struct navit_object *obj, struct attr *attr);
int navit_object_add_attr(struct navit_object *obj, struct attr *attr);
int navit_object_remove_attr(struct navit_object *obj, struct attr *attr);
+void navit_object_destroy(struct navit_object *obj);
typedef GError xmlerror;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2013-01-30 21:56:22
|
Revision: 5359
http://navit.svn.sourceforge.net/navit/?rev=5359&view=rev
Author: martin-s
Date: 2013-01-30 21:56:16 +0000 (Wed, 30 Jan 2013)
Log Message:
-----------
Add:Core:Temporary debug code
Modified Paths:
--------------
trunk/navit/navit/start_real.c
Modified: trunk/navit/navit/start_real.c
===================================================================
--- trunk/navit/navit/start_real.c 2013-01-28 21:55:18 UTC (rev 5358)
+++ trunk/navit/navit/start_real.c 2013-01-30 21:56:16 UTC (rev 5359)
@@ -82,16 +82,21 @@
main_argc=argc;
main_argv=argv;
-
+ dbg(0,"at 1\n");
#ifdef HAVE_GLIB
event_glib_init();
#else
_g_slice_thread_init_nomessage();
#endif
+ dbg(0,"at 2\n");
atom_init();
+ dbg(0,"at 3\n");
main_init(argv[0]);
+ dbg(0,"at 4\n");
main_init_nls();
+ dbg(0,"at 5\n");
debug_init(argv[0]);
+ dbg(0,"at 6\n");
cp = getenv("NAVIT_LOGFILE");
if (cp) {
@@ -102,15 +107,23 @@
debug_set_logfile("/Storage Card/navit.log");
}
#endif
+ dbg(0,"at 7\n");
file_init();
+ dbg(0,"at 8\n");
#ifndef USE_PLUGINS
builtin_init();
#endif
+ dbg(0,"at 9\n");
route_init();
+ dbg(0,"at 10\n");
navigation_init();
+ dbg(0,"at 11\n");
tracking_init();
+ dbg(0,"at 12\n");
search_init();
+ dbg(0,"at 13\n");
linguistics_init();
+ dbg(0,"at 14\n");
config_file=NULL;
#ifdef HAVE_GETOPT_H
opterr=0; //don't bomb out on errors.
@@ -160,6 +173,7 @@
if (optind < argc) config_file = argv[optind];
}
+ dbg(0,"at 15\n");
// if config file is explicitely given only look for it, otherwise try std paths
if (config_file) {
list = g_list_append(list,g_strdup(config_file));
@@ -179,6 +193,7 @@
list = g_list_append(list,g_strdup("/etc/navit/navit.xml"));
#endif
}
+ dbg(0,"at 16\n");
li = list;
for (;;) {
if (li == NULL) {
@@ -196,11 +211,13 @@
li = g_list_next(li);
}
+ dbg(0,"at 17 %s\n",config_file);
if (!config_load(config_file, &error)) {
dbg(0, _("Error parsing config file '%s': %s\n"), config_file, error ? error->message : "");
} else {
dbg(0, _("Using config file '%s'\n"), config_file);
}
+ dbg(0,"at 18\n");
while (li) {
g_free(li->data);
li = g_list_next(li);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2013-01-28 21:55:24
|
Revision: 5358
http://navit.svn.sourceforge.net/navit/?rev=5358&view=rev
Author: martin-s
Date: 2013-01-28 21:55:18 +0000 (Mon, 28 Jan 2013)
Log Message:
-----------
Add:osd_core:Support command attribute for compass
Modified Paths:
--------------
trunk/navit/navit/osd/core/osd_core.c
Modified: trunk/navit/navit/osd/core/osd_core.c
===================================================================
--- trunk/navit/navit/osd/core/osd_core.c 2013-01-25 22:58:58 UTC (rev 5357)
+++ trunk/navit/navit/osd/core/osd_core.c 2013-01-28 21:55:18 UTC (rev 5358)
@@ -94,6 +94,7 @@
struct compass {
int width;
struct graphics_gc *green;
+ struct callback *click_cb;
};
static void
@@ -1391,6 +1392,8 @@
graphics_gc_set_linewidth(opc->osd_item.graphic_fg_white, this->width);
navit_add_callback(nav, callback_new_attr_1(callback_cast(osd_compass_draw), attr_position_coord_geo, opc));
+ if (opc->osd_item.command)
+ navit_add_callback(nav, this->click_cb = callback_new_attr_1(callback_cast (osd_std_click), attr_button, &opc->osd_item));
osd_compass_draw(opc, nav, NULL);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2013-01-25 22:59:07
|
Revision: 5357
http://navit.svn.sourceforge.net/navit/?rev=5357&view=rev
Author: mdankov
Date: 2013-01-25 22:58:58 +0000 (Fri, 25 Jan 2013)
Log Message:
-----------
Fix:maptool:Enlarge itembin static buffer to hold US polygon which currently exceeds 1MB.
Modified Paths:
--------------
trunk/navit/navit/maptool/itembin_buffer.c
Modified: trunk/navit/navit/maptool/itembin_buffer.c
===================================================================
--- trunk/navit/navit/maptool/itembin_buffer.c 2013-01-25 21:49:36 UTC (rev 5356)
+++ trunk/navit/navit/maptool/itembin_buffer.c 2013-01-25 22:58:58 UTC (rev 5357)
@@ -22,7 +22,7 @@
#include "debug.h"
-static char buffer[800000];
+static char buffer[2000000];
struct item_bin *item_bin=(struct item_bin *)(void *)buffer;
static struct node_item *node_item=(struct node_item *)(void *)buffer;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2013-01-25 21:49:44
|
Revision: 5356
http://navit.svn.sourceforge.net/navit/?rev=5356&view=rev
Author: martin-s
Date: 2013-01-25 21:49:36 +0000 (Fri, 25 Jan 2013)
Log Message:
-----------
Add:NLS:German translations
Modified Paths:
--------------
trunk/navit/po/de.po.in
Modified: trunk/navit/po/de.po.in
===================================================================
--- trunk/navit/po/de.po.in 2013-01-25 21:18:43 UTC (rev 5355)
+++ trunk/navit/po/de.po.in 2013-01-25 21:49:36 UTC (rev 5356)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: navit 0.5.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-05-23 20:16+0200\n"
+"POT-Creation-Date: 2013-01-25 23:17+0100\n"
"PO-Revision-Date: 2010-06-01 22:09+0000\n"
"Last-Translator: Achim Behrens <Unknown>\n"
"Language-Team: Martin Schaller <mar...@so...>\n"
@@ -419,6 +419,10 @@
msgid "Bolivia"
msgstr "Bolivien"
+#. 535
+msgid "Bonaire, Sint Eustatius and Saba"
+msgstr "Bonaire, Sint Eustatius und Saba"
+
#. 076
msgid "Brazil"
msgstr "Brasilien"
@@ -507,6 +511,10 @@
msgid "Cape Verde"
msgstr "Kap Verde"
+#. 531
+msgid "Curacao"
+msgstr "Curaçao"
+
#. 162
msgid "Christmas Island"
msgstr "Weihnachtsinsel"
@@ -1124,6 +1132,10 @@
msgid "Suriname"
msgstr "Suriname"
+#. 728
+msgid "South Sudan"
+msgstr "Südsudan"
+
#. 678
msgid "Sao Tome and Principe"
msgstr "São Tomé und Príncipe"
@@ -1132,6 +1144,10 @@
msgid "El Salvador"
msgstr "El Salvador"
+#. 534
+msgid "Sint Maarten (Dutch part)"
+msgstr "Sint Maarten (niederl. Teil)"
+
#. 760
msgid "Syrian Arab Republic"
msgstr "Syrien, Arabische Republik"
@@ -1292,10 +1308,18 @@
"navit usage:\n"
"navit [options] [configfile]\n"
"\t-c <file>: use <file> as config file\n"
-"\t-d <n>: set the global debug output level to <n> (0-3).\n"
+"\t-d <n>: set the global debug output level to <n> (0-3). Overrides setting "
+"from config file.\n"
"\t-h: print this usage info and exit.\n"
"\t-v: Print the version and exit.\n"
msgstr ""
+"navit Benutzung:\n"
+"navit [Optionen] [Konfigdatei]\n"
+"\t-c <file>: <file> als Konfigdatei benutzen\n"
+"\t-d <n>: Den globalen Debug-Level auf <n> (0-3) setzen. Überschreibt die Einstellung "
+"aus der Konfigurationsdatei.\n"
+"\t-h: Diesen Text ausgeben und das Programm beenden.\n"
+"\t-v: Die Version ausgeben und das Programm beenden.\n"
#. We have not found an existing config file from all possibilities
msgid "No config file navit.xml, navit.xml.local found\n"
@@ -1309,8 +1333,10 @@
msgid "Using config file '%s'\n"
msgstr "Benutze Konfigurations-Datei '%s'\n"
-msgid "Internal initialization failed, exiting\n"
-msgstr "Interne Initialisierung fehlgeschlagen, Programm wird beendet\n"
+msgid ""
+"Internal initialization failed, exiting. Check previous error messages.\n"
+msgstr ""
+"Interne Initialisierung fehlgeschlagen, Programm wird beendet. Frühere Fehler beachten.\n"
msgid "unknown street"
msgstr "unbekannte Straße"
@@ -1318,8 +1344,7 @@
msgid "Failed to write bookmarks file"
msgstr "Lesezeichen-Datei konnte nicht geschrieben werden"
-#. Strings from navit_shipped.xml
-msgid "Map Point"
+msgid "Map point"
msgstr "Kartenpunkt"
msgid "Car"
@@ -1509,31 +1534,16 @@
msgid "Route 0000km 0+00:00 ETA"
msgstr "Route 0000km 0+00:00 ETA"
-msgid "Back to map"
-msgstr "Zurück zur Karte"
-
-msgid "Main Menu"
-msgstr "Hauptmenü"
-
msgid "Help"
msgstr "Hilfe"
-msgid "Back"
-msgstr "Zurück"
+#, c-format
+msgid "Waypoint %s"
+msgstr "Wegpunkt %s"
-msgid "Add Bookmark"
-msgstr "Lesezeichen hinzufügen"
+msgid "Select waypoint to insert the new one before"
+msgstr "Auswählen, wovor der Wegpunkt eingefügt werden soll"
-#. Adds the Bookmark folders
-msgid "Add Bookmark folder"
-msgstr "Lesezeichen-Ordner hinzufügen"
-
-msgid "Rename"
-msgstr "Umbennenen"
-
-msgid "POIs"
-msgstr "Interessante Kartenpunkte"
-
msgid "View in Browser"
msgstr "Im Browser anzeigen"
@@ -1549,9 +1559,15 @@
msgid "View Attributes"
msgstr "Attribute anzeigen"
+msgid "Visit before..."
+msgstr "Als Wegpunkt setzen vor..."
+
msgid "Set as position (and deactivate vehicle)"
msgstr "Als Position setzen (und Fahrzeug deaktivieren)"
+msgid "POIs"
+msgstr "Interessante Kartenpunkte"
+
msgid "View on map"
msgstr "Auf der Karte zeigen"
@@ -1562,7 +1578,7 @@
msgstr "Ergebnisse in Karte anzeigen"
msgid "Cut Bookmark"
-msgstr "Lesezeichen entfernen"
+msgstr "Lesezeichen ausschneiden"
msgid "Copy Bookmark"
msgstr "Lesezeichen kopieren"
@@ -1576,6 +1592,9 @@
msgid "Delete Bookmark"
msgstr "Lesezeichen entfernen"
+msgid "Delete waypoint"
+msgstr "Wegpunkt löschen"
+
msgid "Bookmarks"
msgstr "Lesezeichen"
@@ -1585,12 +1604,16 @@
msgid "Save waypoints"
msgstr "Wegpunkte abspeichern"
-msgid "Replace Waypoints"
-msgstr "Wegpunkte ersetzen"
+msgid "Replace with waypoints"
+msgstr "Durch Wegpunkte ersetzen"
msgid "Delete Folder"
msgstr "Ordner löschen"
+#. Adds the Bookmark folders
+msgid "Add Bookmark folder"
+msgstr "Lesezeichen-Ordner hinzufügen"
+
#. Pastes the Bookmark
msgid "Paste bookmark"
msgstr "Lesezeichen einfügen"
@@ -1599,18 +1622,6 @@
msgid "Bookmark %s"
msgstr "Lesezeichen %s"
-msgid "Former Destinations"
-msgstr "Vorherige Ziele"
-
-msgid "- No former destinations available -"
-msgstr "- Keine vorherigen Ziele -"
-
-msgid "House number"
-msgstr "Hausnummer"
-
-msgid "Layout"
-msgstr "Erscheinungsbild"
-
#, c-format
msgid "Download %s"
msgstr "%s herunterladen"
@@ -1627,9 +1638,6 @@
msgid "Download completely"
msgstr "Komplett herunterladen"
-msgid "Maps"
-msgstr "Karten"
-
msgid "Show Satellite Status"
msgstr "Satellitenstatus anzeigen"
@@ -1668,6 +1676,44 @@
msgid "Show NMEA data"
msgstr "NMEA Daten anzeigen"
+msgid "Add Bookmark"
+msgstr "Lesezeichen hinzufügen"
+
+msgid "Rename"
+msgstr "Umbennenen"
+
+msgid "About Navit"
+msgstr "Über Navit"
+
+#. Authors
+msgid "By"
+msgstr "Von"
+
+#. Contributors
+msgid "And all the Navit Team"
+msgstr "Und das ganze Navit Team"
+
+msgid "members and contributors."
+msgstr "Mitglieder und Mitarbeiter"
+
+msgid "Waypoints"
+msgstr "Wegpunkte"
+
+msgid "Enter Coordinates"
+msgstr "Koordinaten eingeben"
+
+#.
+#. w=gui_internal_box_new(this, gravity_left_top|orientation_vertical|flags_expand|flags_fill)
+#. gui_internal_widget_append(wb, w)
+#.
+#. we=gui_internal_box_new(this, gravity_left_center|orientation_horizontal|flags_fill)
+#. gui_internal_widget_append(w, we)
+msgid "Longitude Latitude"
+msgstr "Längengrad Breitengrad"
+
+msgid "Enter coordinates, for example:"
+msgstr "Koordinaten eingeben, z.B.:"
+
msgid "Vehicle"
msgstr "Fahrzeug"
@@ -1686,38 +1732,48 @@
msgid "Plan with Waypoints"
msgstr "Planung mit Wegpunkten"
-msgid "Message"
-msgstr "Benachrichtigung"
+msgid "Maps"
+msgstr "Karten"
-msgid "Next"
-msgstr "Vor"
+msgid "Layout"
+msgstr "Erscheinungsbild"
-msgid "Prev"
-msgstr "Zurück"
+msgid "Height Profile"
+msgstr "Höhenprofil"
msgid "Route Description"
msgstr "Wegbeschreibung"
-msgid "Height Profile"
-msgstr "Höhenprofil"
-
msgid "Show Locale"
msgstr "Lokalisierung anzeigen"
-msgid "About Navit"
-msgstr "Über Navit"
+msgid "Former Destinations"
+msgstr "Vorherige Ziele"
-#. Authors
-msgid "By"
-msgstr "Von"
+msgid "- No former destinations available -"
+msgstr "- Keine vorherigen Ziele -"
-#. Contributors
-msgid "And all the Navit Team"
-msgstr "Und das ganze Navit Team"
+msgid "Message"
+msgstr "Benachrichtigung"
-msgid "members and contributors."
-msgstr "Mitglieder und Mitarbeiter"
+msgid "Back"
+msgstr "Zurück"
+msgid "Back to map"
+msgstr "Zurück zur Karte"
+
+msgid "Main Menu"
+msgstr "Hauptmenü"
+
+msgid "House number"
+msgstr "Hausnummer"
+
+msgid "Next"
+msgstr "Vor"
+
+msgid "Prev"
+msgstr "Zurück"
+
msgid "Return to route!"
msgstr "Zurück zur Route!"
@@ -1729,6 +1785,10 @@
msgid "Please decrease your speed"
msgstr "Bitte Geschwindigkeit verringern"
+#. Strings from navit_shipped.xml
+msgid "Map Point"
+msgstr "Kartenpunkt"
+
msgid "Vehicle Position"
msgstr "Fahrzeugposition"
@@ -1800,12 +1860,21 @@
"Nächsten Wegpunkt\n"
"entfernen"
+msgid "Satellite Status"
+msgstr "Satellitenstatus"
+
+msgid "NMEA Data"
+msgstr "NMEA Daten"
+
msgid "car_shortest"
msgstr "Auto kürzeste"
msgid "car_avoid_tolls"
msgstr "Auto ohne Maut"
+msgid "car_pedantic"
+msgstr "Auto pedantisch"
+
msgid "horse"
msgstr "Pferd"
@@ -1833,3 +1902,9 @@
#.
msgid "Truck"
msgstr "LKW"
+
+#~ msgid "Internal initialization failed, exiting\n"
+#~ msgstr "Interne Initialisierung fehlgeschlagen, Programm wird beendet\n"
+
+#~ msgid "Replace Waypoints"
+#~ msgstr "Wegpunkte ersetzen"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|