Re: [mkgmap-dev] Missing lakes

2009-08-30 Thread Tomas Straupis
Hello

  Do I understand correctly, that there are still problems with multipolygons?
  Lakes marked as inner ways of multipolygon having forest as outer
way are still not rendered. Some of those lakes appear as a hole in
forest, some have no influence on rendering (lakes are displayed as
forest regardless of being inner way of forest).

  Should I create a bug for this? Or should I just wait?

  Thank you

-- 
Tomas Straupis
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Missing lakes

2009-07-28 Thread Tomas Straupis
Hello

2009-07-28 Christian Gawron christian.gaw...@googlemail.com:
 may first guess would be that a multipolygon relation (with role=outer
 for the forrest and role=inner for the lake) is missing.

  Yes, thank you, I've added that relation and will test the map
generation tomorrow (after geofabrik publishes todays data)!

-- 
Tomas Straupis
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Missing lakes

2009-07-28 Thread Apollinaris Schoell


 I will try fixing the data (while fixing 4500 lakes in tiny
territory of Lithuania will not be a small task:). Just from my
experience adding multipolygons is quite a challenging task for
beginners, so I will have to come up with some automated way of at
least identifying such forest+water combinations (keepright?:).



sure it's work, but isn't our target to make the best gis database :)
someone else pointed out in an older thread on talk why this is  
important. imagine you need to calculate the area of the forest.

this way it's tagging for the renderer. but renderer can change



--
Tomas Straupis
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] Missing lakes

2009-07-28 Thread Nop

Hi!

Tomas Straupis schrieb:
   Cha. I just found out that it is extremely easy to add such relation
 using JOSM. I do not have to draw any new nodes/ways. Just select
 forest and lakes, create/modify relation and add corresponding
 outer/inner tags :)

I have not tried it yet, but there is a plugin that should simplify the job.

bye
Nop
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Missing lakes

2009-07-27 Thread Rudi
Hello Tomas,

I've noticed strange problem with lakes (natural=water) in a middle
of forests (landuse=forest).

Do you use a custom typ file for your map?
If yes you can define the drawing order of the polygons. In your case you
should give the lakes a higher order than the forests so that the lakes are
drawn on top of the forest.

This can result in another problem: If you have a lake with an island and
the island has a forest then the forest is invisible because the lake has a
higher priority. In this case you can define a multipolygon. See the mailing
list archive for a discussion about this topic.

I didn't test your region and I don't know why some of lakes are displayed
while others are not. Maybe lakes and forests have the same priority so the
drawing order is dependent on the order of the objects in the img file. I
strongly doubt it has something to do with the source=yahoo tag.

Regards,
Rudi


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Missing lakes

2009-07-27 Thread Tomas Straupis
Hello

2009-07-27 Rudi drahtese...@web.de:
 Do you use a custom typ file for your map?
  No, I am not. And some lakes marked the same way ARE visible on the map...

 I strongly doubt it has something to do with the source=yahoo tag.
  This was just my guess - maybe some tiny bug in code... But I've
tried adding that source tag to osm xml file directly and it had no
effect.

  I will try to get hold of some other Garmin device (maybe Oregon
and/or Nuvi) and check if it has the same problem. It should then be
clear if a problem is in Colorado or .img file.

  Another interesting detail is that if I put pointer over the
invisible lake a tip does show Lake while forest is actually
displayed.

-- 
Tomas Straupis
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Missing lakes

2009-07-27 Thread Apollinaris Schoell
the data is wrong in the first place. a lake and a forest can't be in   
the same place. the forest should be created as multipolygon with all  
the lakes as inner ways.

if you ask the software to fix bad data it will fail on some corner  
cases and will succeed in some places. but then random effects like  
order of elements or names can play a role.

bottom line better fix the data than debug the software.



On Jul 27, 2009, at 1:44 PM, Tomas Straupis wrote:

 Hello

 2009-07-27 Rudi drahtese...@web.de:
 Do you use a custom typ file for your map?
  No, I am not. And some lakes marked the same way ARE visible on the  
 map...

 I strongly doubt it has something to do with the source=yahoo tag.
  This was just my guess - maybe some tiny bug in code... But I've
 tried adding that source tag to osm xml file directly and it had no
 effect.

  I will try to get hold of some other Garmin device (maybe Oregon
 and/or Nuvi) and check if it has the same problem. It should then be
 clear if a problem is in Colorado or .img file.

  Another interesting detail is that if I put pointer over the
 invisible lake a tip does show Lake while forest is actually
 displayed.

 -- 
 Tomas Straupis
 ___
 mkgmap-dev mailing list
 mkgmap-dev@lists.mkgmap.org.uk
 http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Missing lakes

2009-07-27 Thread maning sambale
Assuming that the data is correct, I can confirm that you need to set
draw order in a typ file.

I encountered a similar issue with building and landuse polygons.  I
had to set a higher draw order so that buildings are drawn over
landuse.

On 7/28/09, Apollinaris Schoell ascho...@gmail.com wrote:
 the data is wrong in the first place. a lake and a forest can't be in
 the same place. the forest should be created as multipolygon with all
 the lakes as inner ways.

 if you ask the software to fix bad data it will fail on some corner
 cases and will succeed in some places. but then random effects like
 order of elements or names can play a role.

 bottom line better fix the data than debug the software.



 On Jul 27, 2009, at 1:44 PM, Tomas Straupis wrote:

 Hello

 2009-07-27 Rudi drahtese...@web.de:
 Do you use a custom typ file for your map?
  No, I am not. And some lakes marked the same way ARE visible on the
 map...

 I strongly doubt it has something to do with the source=yahoo tag.
  This was just my guess - maybe some tiny bug in code... But I've
 tried adding that source tag to osm xml file directly and it had no
 effect.

  I will try to get hold of some other Garmin device (maybe Oregon
 and/or Nuvi) and check if it has the same problem. It should then be
 clear if a problem is in Colorado or .img file.

  Another interesting detail is that if I put pointer over the
 invisible lake a tip does show Lake while forest is actually
 displayed.

 --
 Tomas Straupis
 ___
 mkgmap-dev mailing list
 mkgmap-dev@lists.mkgmap.org.uk
 http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

 ___
 mkgmap-dev mailing list
 mkgmap-dev@lists.mkgmap.org.uk
 http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev



-- 
cheers,
maning
--
Freedom is still the most radical idea of all -N.Branden
wiki: http://esambale.wikispaces.com/
blog: http://epsg4253.wordpress.com/
--
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Missing lakes

2009-07-27 Thread Nop

Hi!

Apollinaris Schoell schrieb:
 the data is wrong in the first place. a lake and a forest can't be in   
 the same place. the forest should be created as multipolygon with all  
 the lakes as inner ways.

I agree. The areas on the Garmin should be drawn by the drawing priority 
defined in the type file, completely disregarding any layer tags. With 
proper multipolygons, everything should look good. But if you start 
changing around drawing priorities to get lakes on top of wood, then 
probably some wooded islands in lakes will disappear where somebody 
thought wood needs to go on top of water.

Adding proper multipolygons to the data instead of relying on any 
drawing order is the only useful solution.

bye
Nop

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Missing lakes

2009-07-27 Thread Tomas Straupis
Hello

2009/7/28 Nop ekkeh...@gmx.de:
 Adding proper multipolygons to the data instead of relying on any
 drawing order is the only useful solution.

  OK. Thank you all for answers!

  I will try fixing the data (while fixing 4500 lakes in tiny
territory of Lithuania will not be a small task:). Just from my
experience adding multipolygons is quite a challenging task for
beginners, so I will have to come up with some automated way of at
least identifying such forest+water combinations (keepright?:).

-- 
Tomas Straupis
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev