Synthesize shortnames in lmx

View: New views
2 Messages — Rating Filter:   Alert me  

Synthesize shortnames in lmx

by Christian Bühler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello again,

as I already dug a little into the source, I think I can as well
contribute a litte more :-)

In Ovi Maps (formerly Nokia Maps), only the name of the landmark is
displayed. So I think it makes sense to take the description for it when
using the -s switch.

Regards,
Christian Bühler

[lmx_shortname.patch]

Index: lmx.c
===================================================================
RCS file: /cvsroot/gpsbabel/gpsbabel/lmx.c,v
retrieving revision 1.5
diff -r1.5 lmx.c
80c80
< lmx_write_xml(4, "lm:name", wpt->shortname);
---
> lmx_write_xml(4, "lm:name", global_opts.synthesize_shortnames ? wpt->description : wpt->shortname);


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Gpsbabel-code mailing list  http://www.gpsbabel.org
Gpsbabel-code@...
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code

Re: Synthesize shortnames in lmx

by Robert Lipe-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanx.  Applied.

If you could look at the LMX doc (rendered at http://www.gpsbabel.org/htmldoc-development/fmt_lmx.html), source in xmldoc/formats/fmt_lmx.xml) and share your knowledge of Ovi vs Nokia, that would be helpful.

RJL

2009/9/27 Christian Bühler <christian@...>
Hello again,

as I already dug a little into the source, I think I can as well
contribute a litte more :-)

In Ovi Maps (formerly Nokia Maps), only the name of the landmark is
displayed. So I think it makes sense to take the description for it when
using the -s switch.

Regards,
Christian Bühler

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Gpsbabel-code mailing list  http://www.gpsbabel.org
Gpsbabel-code@...
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gpsbabel-code mailing list  http://www.gpsbabel.org
Gpsbabel-code@...
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code