Re: [mkgmap-dev] Bridge type code

2021-08-14 Thread 7770
Hi.
Thanks and no worries. I dont have any urgent such need, just wanted to try my 
thought since i was very specifically looking to add bridges under the 
condition that it was part of a path: highway=path & bridge=yes.
Therefor it felt excessive to use --add-pois-to-lines=mid.

Again many thanks to all who answered.

Regards
Karl

On lördag 14 augusti 2021 kl. 12:37:25 CEST Gerd Petermann wrote:
> Hi Karl,
> 
> >is it possible to ask the line style to programmatically ...
> 
> No, so far this is not possible. In fact, the points rules are executed
> before the lines/polygon rules. It might be possible to reduce the number
> of generated points though. E.g. we might add an option to generate POI
> only for specific tags. No idea if that would reduce memory or runtime
> significantly.
> Note that we already have an option to generate only POI for each way with
> --add-pois-to-lines=mid
> 
> Gerd
> 
> 
> Von: mkgmap-dev  im Auftrag von 7770
> <7...@foskan.eu> Gesendet: Samstag, 14. August 2021 10:40
> An: mkgmap-dev@lists.mkgmap.org.uk
> Betreff: Re: [mkgmap-dev] Bridge type code
> 
> Hi.
> 
> A made a few checks using line for bridge=yes seems to be the only allowed
> because a bridge span over something. At least looks so from here:
> https://wiki.openstreetmap.org/wiki/Key:bridge
> Hece i am using 0x10107 on a line as suggested, it works well.
> Thanks all for those hints earlier!
> 
> 
> 
> If i would anyway like to use a point instead of the line,
> is it possible to ask the line style to programmatically add a point in very
> specific cases, instead of first using --add-pois-to-lines and then filter
> all extra points using the points style?
> 
> 
> Regards
> Karl
> 
> On fredag 13 augusti 2021 kl. 22:57:07 CEST Andrzej Popowski wrote:
> > Hi Karl,
> > 
> > there is no common definition for objects types on Garmin map, see
> > https://wiki.openstreetmap.org/wiki/OSM_Map_On_Garmin/POI_Types
> > 
> > Mapsource and some devices treat POI 0x6401 as a bridge, so I think it
> > is a good choice. But I prefer to use a line for a bridge.
> 
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev




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


Re: [mkgmap-dev] Bridge type code

2021-08-14 Thread Gerd Petermann
Hi Karl,

>is it possible to ask the line style to programmatically ...
No, so far this is not possible. In fact, the points rules are executed before 
the lines/polygon rules.
It might be possible to reduce the number of generated points though. E.g. we 
might add an option to generate POI only for specific tags.
No idea if that would reduce memory or runtime significantly.
Note that we already have an option to generate only POI for each way with 
--add-pois-to-lines=mid

Gerd


Von: mkgmap-dev  im Auftrag von 7770 
<7...@foskan.eu>
Gesendet: Samstag, 14. August 2021 10:40
An: mkgmap-dev@lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] Bridge type code

Hi.

A made a few checks using line for bridge=yes seems to be the only allowed
because a bridge span over something. At least looks so from here:
https://wiki.openstreetmap.org/wiki/Key:bridge
Hece i am using 0x10107 on a line as suggested, it works well.
Thanks all for those hints earlier!



If i would anyway like to use a point instead of the line,
is it possible to ask the line style to programmatically add a point in very
specific cases, instead of first using --add-pois-to-lines and then filter all
extra points using the points style?


Regards
Karl

On fredag 13 augusti 2021 kl. 22:57:07 CEST Andrzej Popowski wrote:
> Hi Karl,
>
> there is no common definition for objects types on Garmin map, see
> https://wiki.openstreetmap.org/wiki/OSM_Map_On_Garmin/POI_Types
>
> Mapsource and some devices treat POI 0x6401 as a bridge, so I think it
> is a good choice. But I prefer to use a line for a bridge.




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


Re: [mkgmap-dev] Bridge type code

2021-08-14 Thread 7770
Hi.

A made a few checks using line for bridge=yes seems to be the only allowed 
because a bridge span over something. At least looks so from here: 
https://wiki.openstreetmap.org/wiki/Key:bridge
Hece i am using 0x10107 on a line as suggested, it works well.
Thanks all for those hints earlier!



If i would anyway like to use a point instead of the line,
is it possible to ask the line style to programmatically add a point in very 
specific cases, instead of first using --add-pois-to-lines and then filter all 
extra points using the points style?


Regards
Karl

On fredag 13 augusti 2021 kl. 22:57:07 CEST Andrzej Popowski wrote:
> Hi Karl,
> 
> there is no common definition for objects types on Garmin map, see
> https://wiki.openstreetmap.org/wiki/OSM_Map_On_Garmin/POI_Types
> 
> Mapsource and some devices treat POI 0x6401 as a bridge, so I think it
> is a good choice. But I prefer to use a line for a bridge.




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


Re: [mkgmap-dev] Bridge type code

2021-08-13 Thread Andrzej Popowski

Hi Karl,

there is no common definition for objects types on Garmin map, see 
https://wiki.openstreetmap.org/wiki/OSM_Map_On_Garmin/POI_Types


Mapsource and some devices treat POI 0x6401 as a bridge, so I think it 
is a good choice. But I prefer to use a line for a bridge.


--
Best regards,
Andrzej
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Bridge type code

2021-08-12 Thread 7770
Hi and thanks!
I did not mention, but in fact i am looking for a line, not a point.
Regards
Karl

On torsdag 12 augusti 2021 kl. 17:40:41 CEST Ticker Berkin wrote:
> Hi Karl
> 
> The type I use for Bridge is 0x10107. This is a marine extended line
> type and my eTrex HCx describes it as "Bridge" if I don't supply a TYP.
> 
> For the TYP I have:
> [_line]
> Type=0x10107
> String=Bridge
> ; lines either side of transparent
> UseOrientation=N
> Xpm="32 7 2 1"
> "- c #00"
> "  c none"
> ""
> ""
> ""
> ""
> ""
> ""
> ""
> ;   "12345678901234567890123456789012"
> [end]
> 
> It looks like you are talking about a point and 0x6410 is the correct
> value and is searchable as Geographic>Man Made.
> 
> Ticker
> 
> On Thu, 2021-08-12 at 16:49 +0200, 7770 wrote:
> > Hi.
> > I am thinking on drawing a symbol for bridges on trails, but not for
> > larger
> > highways.
> > The style would be selecting somthing like: highway=path &
> > bridge=yes.
> > 
> > 
> > I would create a type image for that, but the question is if there is
> > any good
> > type code, i looked up that 0x6401 might be a good choise, can anyone
> > comment
> > on this, is this a good choise or are there type codes that are
> > better suited
> > for my situation?
> > 
> > Regards
> > Karl
> > 
> > 
> > ___
> > mkgmap-dev mailing list
> > mkgmap-dev@lists.mkgmap.org.uk
> > https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> 
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev




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


Re: [mkgmap-dev] Bridge type code

2021-08-12 Thread Ticker Berkin
Hi Karl

The type I use for Bridge is 0x10107. This is a marine extended line
type and my eTrex HCx describes it as "Bridge" if I don't supply a TYP.

For the TYP I have:
[_line]
Type=0x10107
String=Bridge
; lines either side of transparent
UseOrientation=N
Xpm="32 7 2 1"
"- c #00"
"  c none"
""
""
""
""
""
""
""
;   "12345678901234567890123456789012"
[end]

It looks like you are talking about a point and 0x6410 is the correct
value and is searchable as Geographic>Man Made.

Ticker

On Thu, 2021-08-12 at 16:49 +0200, 7770 wrote:
> Hi.
> I am thinking on drawing a symbol for bridges on trails, but not for
> larger 
> highways.
> The style would be selecting somthing like: highway=path &
> bridge=yes.
> 
> 
> I would create a type image for that, but the question is if there is
> any good 
> type code, i looked up that 0x6401 might be a good choise, can anyone
> comment 
> on this, is this a good choise or are there type codes that are
> better suited 
> for my situation?
> 
> Regards
> Karl
> 
> 
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev