opennewzealand / linz2osm

Some tools for helping move LINZ data into OpenStreetMap
http://wiki.openstreetmap.org/wiki/LINZ
GNU General Public License v3.0
23 stars 2 forks source link

Strip whitespace from strings #63

Closed barnaclebarnes closed 12 years ago

barnaclebarnes commented 12 years ago

names sometimes have whitespace at the end of them. This should be stripped on export to osm files.

HamishB commented 12 years ago

workaround in vi: %s/ *"/"/g

example:

(this is the akl isl building_pnt layer) Hamish B
HamishB commented 12 years ago

workaround in vi: %s/ *"/"/g

example:

(this is the akl isl building_pnt layer) Hamish B
HamishB commented 12 years ago

sorry for the repeat posts, nothing seems to like my old copy of iceweasel any more & it looked like it didn't get posted. code was stripped away, 3 backticks for apparently:


    <node id="-16507877" lat="-50.8104921655" lon="166.067795087">
      <tag k="building" v="yes" />
      <tag k="attribution" v="http://wiki.osm.org/wiki/Attribution#LINZ" />
      <tag k="name" v="Tagua Coastwatch Station                                                   " />
      <tag k="LINZ:layer" v="building_pnt" />
      <tag k="LINZ:bldg_use" v="hut                  " />
      <tag k="LINZ:dataset" v="auckland_is" />
      <tag k="LINZ:source_version" v="2012-06-06" />
      <tag k="source_ref" v="http://www.linz.govt.nz/topography/topo-maps/" />
    </node>