attrition / O5MParser

O5MParser is a C# library to parse a subset of the OpenStreetMap O5M file format
MIT License
2 stars 1 forks source link

Parsing Node with multiple tags #1

Open glebov21 opened 6 years ago

glebov21 commented 6 years ago

Hi. I have xml-file converted to o5m:

<osm version="0.6" generator="osmconvert 0.8.8">
    <bounds minlat="41.001711" minlon="-180.0" maxlat="82.25586" maxlon="180.0"/>
    <node id="54" lat="55.0282171" lon="82.9234509">
        <tag k="name" v="Новосибирск"/>
        <tag k="place" v="city"/>
    </node>
    <node id="26901966" lat="64.563385" lon="39.823769">
        <tag k="name" v="Северодвинск"/>
        <tag k="place" v="city"/>
    </node>
</osm>

After deserialization i have: O5M.Node[54].Value.tags: name, place but other node have only name: O5M.Node[26901966].Value.tags: name

And i have ArgumentOutOfRangeException in this place

@attrition

attrition commented 6 years ago

This code is quite old and is provided as a courtesy, however I will accept any bug fix pull requests sent.