logo separator

[mkgmap-dev] mkgmap dropping ways on multipolygon boundary "outer"

From Felix Hartmann extremecarver at googlemail.com on Mon Dec 28 01:33:56 GMT 2009


On 28.12.2009 00:04, Mark Burton wrote:
> Felix,
>
>    
>> Thanks for that patch... It does remove the bug, but all relations seem
>> to get dropped by using this patch too. So not an ideal solution -:)
>>
>> BTW before using this patch, relations like cycleroutes would even show
>> up when all ways were dropped due to multipolygon outer...
>>      
> OK - try this new version:
>
> diff --git a/src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java b/src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java
> index e2f3c64..0ff5659 100644
> --- a/src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java
> +++ b/src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java
> @@ -35,7 +35,7 @@ public class MultiPolygonRelation extends Relation {
>                  String value = pairs.getValue();
>
>                          if (value != null&&  pairs.getKey() instanceof Way) {
> -                               Way way = (Way) pairs.getKey();
> +                               Way way = ((Way)pairs.getKey()).duplicate();
>                                  if (value.equals("outer")){
>                                          outers.add(way);
>                                  } else if (value.equals("inner")){
>    
Yip, that patch works great. (using only this patch, without the earlier 
patch; if I add earlier patch too I loose the relations again)
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>    



More information about the mkgmap-dev mailing list