[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Maposmatic-dev] [PATCH] Bug fix: check for wkt!=None in ocitysmap2/
From: |
Thomas Petazzoni |
Subject: |
Re: [Maposmatic-dev] [PATCH] Bug fix: check for wkt!=None in ocitysmap2/__init__.py:_get_geographic_info() |
Date: |
Mon, 7 May 2012 19:45:08 +0200 |
Le Sun, 6 May 2012 16:16:41 +0200,
David MENTRE <address@hidden> a écrit :
> In ocitysmap2/__init__.py:_get_geographic_info(), when one is looking
> in the database, the returned "records" can be "[(None,)]". In that
> case wkt obtains value None, which breaks the
> "shapely.wkt.loads(wkt)" call. We add a protection against that.
>
> Signed-off-by: David MENTRE <address@hidden>
Applied, thanks!
Thomas
--
Thomas Petazzoni http://thomas.enix.org
MapOSMatic http://www.maposmatic.org
Logiciels Libres à Toulouse http://www.toulibre.org
Embedded Linux http://www.free-electrons.com