Betrachte 15 Beiträge - 1 bis 15 (von insgesamt 16)
  • Autor
    Beiträge
  • #21217
    LocusUser1
    Teilnehmer

    Hallo Christian,

    im Locus Forum ist folgendes gemeldet worden:

    Hallo,
    in den Karten LoMaps und OAM fehlen Hausnummern bei Gebäuden obwohl die Adressdaten bei OSM vorhanden sind.
    Standort: 48,0527760, 14,8097841 Weiler Wallmersdorf

    Beitrag im Locus Form

    z.B. Relation: 1799506

    Kannst Du dir das mal bitte anschauen.

    #21224
    Avatar-FotoChristianK
    Administrator

    Ich kann nur vermuten das bei Relationen der MapsforgeWriter die addr:housenumber nicht „mitnimmt“.
    building=farm ist im Tagmapping als equivalent zu building=yes enthalten.

    #21306
    leound
    Teilnehmer

    Hallo Christian.
    Dieser thread wurde von mir im Locusforum eröffnet.
    Die Hausnummern fehlen bei Gebäuden vom type multipolygon ,wenn die Adressdaten an der Relation direkt vorhanden sind und nicht an der Linie outer.
    Nach neuen OSM Standard sollen die Adressdaten an die Relation getagt werden.
    siehe http://wiki.openstreetmap.org/wiki/DE:Relation:multipolygon
    Vielen Dank für das neue Passwort und die super Karten.

    #21355
    Avatar-FotoChristianK
    Administrator

    Nach neuen OSM Standard sollen die Adressdaten an die Relation getagt werden.

    Das ist auch logisch wenn man denn unbedingt aus Gebäuden Relationen machen will.
    Nur – wie gesagt – der MapsforgeWriter nimmt diese Informationen nicht mit – leider.

    VG, Christian

    #21629
    leound
    Teilnehmer

    Hallo Christian
    Wollte mal nachfragen ob für dieses Problem eine Lösung angedacht ist.
    Denn es betrifft über 10.000 Gebäude, allein in Nieder- u. Oberösterreich, und wird schon über Jahre so in OSM eingegeben. Mich wundert das dieser Fehler noch keinen aufgefallen ist. Auch in anderen Karten, die mit MapsforgeWriter erzeugt werden, fehlen die Hausnummern .
    VG Leo

    #21636
    Avatar-FotoChristianK
    Administrator

    Hallo Leo,

    Wenn das Problem im Mapsforge Writer nicht gelöst wird dann gibt es dafür keine Lösung – leider.
    Denn das Vererben von Eigenschaften der Relation auf die Members (in diesem Fall auf die Outers) geht nur zu Fuss (script) und das dauert Ewigkeiten. Es gibt kein fertiges Tool mit dem das möglich wäre. Bei einem Tileserver geht das mit der integrierten Scriptsprache einfacher.

    LG, Christian

    #21644
    Avatar-FotoTobias
    Administrator

    Wollte mal nachfragen ob für dieses Problem eine Lösung angedacht ist.

    Die Lösung kann Christian selbst nicht angehen, dazu muss der Mapwriter geändert werden. Anregungen dazu sind hier besser aufgehoben:
    https://groups.google.com/forum/#!forum/mapsforge-dev
    https://github.com/mapsforge/mapsforge/issues

    Developer of Elevate mapstyle

    #21648
    Avatar-FotoEmux
    Teilnehmer

    AFAIK Locus seems using a modified Mapsforge and since have not contributed in Mapsforge repository, cannot know their implementation. 🙂

    Emux

    #21650
    Avatar-FotoTobias
    Administrator

    AFAIK Locus seems using a modified Mapsforge and since have not contributed in Mapsforge repository, cannot know their implementation. :)

    Hi Emux,
    also this is reported for Locus it’s not a Locus issue, it also happens in Cruiser.
    E.g. this building:
    http://www.openstreetmap.org/relation/1799506
    The house number is attached to the relation, and therefore not contained in the maps, as mapwriter doesn’t seem to resolve it. Only if the housenumber is attached to an area or a node.

    Developer of Elevate mapstyle

    #21652
    Avatar-FotoChristianK
    Administrator

    And, to say it clear, key:addr:.* should be assigned to closed ways or nodes according to the OSM Rules and NOT to Relations. So the addr: should be assigned to the outer of a building or as node (usually where the entrance is situated)

    However, no one cares…

    #21654
    Avatar-FotoTobias
    Administrator

    And, to say it clear, key:addr:.* should be assigned to closed ways or nodes according to the OSM Rules and NOT to Relations. So the addr: should be assigned to the outer of a building or as node (usually where the entrance is situated)

    I found sources for both versions, here it says only ways and nodes:
    http://wiki.openstreetmap.org/wiki/Key:addr#Tags_for_individual_houses

    Here also relations, but just when it’s several buildings:
    http://wiki.openstreetmap.org/wiki/Addresses#Multiple_buildings_for_one_housenumber

    This is not the case here, it’s just a multipolygon because of the yard. But for this case nothing is mentioned where to put the addr: keys:
    http://wiki.openstreetmap.org/wiki/Buildings#How_to_map

    Developer of Elevate mapstyle

    #21656
    Avatar-FotoChristianK
    Administrator

    Just tested a small map round my home-town.

    Its interresting – the „shop“ tag is resolved by mapsforge – a icon is beeing set in the map:
    http://www.openstreetmap.org/relation/6413442

    Here are 2 more with addr:housenumber
    http://www.openstreetmap.org/relation/1682042
    http://www.openstreetmap.org/relation/1682043

    Actually none is shown in the map.
    Maybe there is an solution….

    #21659
    Avatar-FotoChristianK
    Administrator

    OK,

    Here are these Relations rendered with andromaps_hc theme:

    Screenshot-2017-12-14-12.41.07

    Screenshot-2017-12-14-12.40.49

    The way to transfornm these relations to addr:nodes is … well,

    • filter out relations with building=.* and addr:housenumber=.*
    • convert relations to nodes in seperate ID-Area
    • drop dependencies (ways/nodes)
    • drop all tags except of addr:.* and building =.*
    • finally building is set to YES (included in tagmapping as NODE too)

    so the OSM fo this map is:

    
    <?xml version='1.0' encoding='UTF-8'?>
    <osm version="0.6" generator="Osmosis 0.43.1">
      <bounds minlon="15.65322" minlat="48.46393" maxlon="15.70127" maxlat="48.48555" origin="osmfilter 1.4.3"/>
      <node id="9910000006" version="1" timestamp="1970-01-01T00:59:59Z" changeset="1" lat="48.4716392" lon="15.6766319">
        <tag k="addr:housenumber" v="7"/>
        <tag k="addr:street" v="Kremser Straße"/>
        <tag k="addr:postcode" v="3550"/>
        <tag k="building" v="yes"/>
      </node>
      <node id="9910000007" version="1" timestamp="1970-01-01T00:59:59Z" changeset="1" lat="48.4715268" lon="15.6794018">
        <tag k="addr:housenumber" v="16"/>
        <tag k="addr:country" v="AT"/>
        <tag k="addr:street" v="Wiener Straße"/>
        <tag k="addr:postcode" v="3550"/>
        <tag k="building" v="yes"/>
        <tag k="addr:city" v="Langenlois"/>
      </node>
      <node id="9910000008" version="1" timestamp="1970-01-01T00:59:59Z" changeset="1" lat="48.4736481" lon="15.6753204">
        <tag k="addr:housenumber" v="7"/>
        <tag k="addr:country" v="AT"/>
        <tag k="addr:street" v="Walterstraße"/>
        <tag k="addr:postcode" v="3550"/>
        <tag k="building" v="yes"/>
        <tag k="addr:city" v="Langenlois"/>
      </node>
    </osm>
    

    Hmm.. addr:housenumber should be sufficient – isn’t it?

    Thats lot of effort – but possible.

    #21666
    Avatar-FotoChristianK
    Administrator

    The addr:housenumbers of relations/multipolygons will be prozessed and rendered in future in OpenAndroMaps.
    Reason: There are a lot these MP’s > 98000 in the Austria.map.

    The Relation must be
    type=multipolygon
    building=*
    and contain a addr:housenumber

    The addr:housenumber (actually all key:addr:) is copied from the relation and a node is set in the middle of the multipolygon with an additional building=yes to identify it for theme.

    See here:

    wallmersdorf

    Changes will take place with January update.
    Updated Austria.map will be available this weekend.

    Best regards
    Christian

    3 users thanked author for this post.
    #21677
    leound
    Teilnehmer

    Hi Christian
    Vielen Dank für die schnelle Lösung. Ich verwende Deine Karten in Locus und mit BRouter.
    Auch die Themen von Tobias habe ich teilweise an meine Bedürfnisse angepasst.
    Spende ist unterwegs.
    Gruß Leo

    1 Teilnehmer(n) gefällt dieser Beitrag
Betrachte 15 Beiträge - 1 bis 15 (von insgesamt 16)
  • Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.