logo separator

[mkgmap-dev] [PATCH v4] contours

From Clinton Gladstone clinton.gladstone at googlemail.com on Sat Jul 11 23:55:36 BST 2009

On Jul 10, 2009, at 19:01, Christian Gawron wrote:

> Clinton Gladstone schrieb:
>> I was able to successfully compile a small area using ASTER tiles.  
>> The
>> resulting map looked correct.

Hi Christian,

I did more testing using the complete ASTER tile ASTGTM_N49E008_dem.tif.

I received a lot of index out of bounds exceptions in methods markEdge  
and traceByStepping. In all cases iy and p.iy were -1. Since I didn't  
understand the context of the complete source code, I just added  
checks to ensure that  array "visited" was not accessed for these  
values. This allowed the contour lines to be compiled.

Do these errors result from bad ASTER data? You may wish to consider  
updating your patch to handle this condition.

Cheers.



More information about the mkgmap-dev mailing list