[PATCH] More tolerant about spaces in GPS coordinates.

Patrick Valsecchi patrick at thus.ch
Wed Feb 4 01:28:59 PST 2015


On 02/03/2015 04:41 PM, Dirk Hohndel wrote:
> On Tue, Feb 03, 2015 at 04:32:40PM +0100, Patrick Valsecchi wrote:
>> Hi,
>>
>> This is a tentative to make subsurface a bit more flexible when parsing GPS
>> coordinates. I like to geo-reference my dives, but copy and pasting the
>> coordinates from web sites was quite a pain (needed a lot of manual
>> correction).
>>
>> Please have a look and comment. I'm quite tempted to go wild and do another
>> rewrite without using regular expressions... would be more flexible and less
>> code, IMHO.
> Absolutely. By all means, please rewrite it without regular expression if
> that makes it more flexible.
>
> Given where we are in the testing cycle, I won't apply this fix to master.
> I'm hoping to cut 4.4 in the next day or two and there's no way this will
> get enough testing.

OK, here is a total rewrite of the GPS coordinates parsing including UTs.
It is a lot more flexible on the format and supports all the formats of 
the previous parser (AFAIK).

I share your opinion on not including it in 4.4.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-More-tolerant-when-parsing-GPS-coordinates.patch
Type: text/x-patch
Size: 14889 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150204/073a4e2c/attachment.bin>


More information about the subsurface mailing list