jiawlu / OSM2GMNS

GNU General Public License v3.0
92 stars 42 forks source link

I want to customize the tag to get some osm raw data as an extended field for the output file #25

Open ninghairong opened 7 months ago

ninghairong commented 7 months ago

Dear author, I recently needed to label bridge and tunnel data in development, but I found that the bridge tag would be lost in the data after processing with OSM2GMNS, and I did not find the relevant method to specify the tag output.

jiawlu commented 7 months ago

Could you please provide an example with bridge or tunnel objects that you need?

ninghairong commented 7 months ago

thank you for the response!

For example, the bridge shown in the picture has lost the information that it is a bridge in the exported csv.

image image

It contains the information that it is a bridge in the osm raw data. The following is its osm data.

 <way id="109565336" version="9" timestamp="2019-06-09T18:18:02Z" changeset="71077945" uid="8971394" user="vojtechzaboril">
    <nd ref="5397920503"/>
    <nd ref="2387143061"/>
    <tag k="bridge" v="yes"/>
    <tag k="highway" v="tertiary"/>
    <tag k="lanes" v="2"/>
    <tag k="layer" v="1"/>
    <tag k="lit" v="yes"/>
    <tag k="maxspeed" v="50"/>
    <tag k="name" `v="福安橋"/>
    <tag k="oneway" v="yes"/>
    <tag k="surface" v="asphalt"/>
  </way>
ninghairong commented 7 months ago

This is the original file I used. map.txt

jiawlu commented 7 months ago

Thanks for providing the details. we will work on that and hopefully release a new version with this new feature by next week.

ninghairong commented 7 months ago

thanks for your reply!