<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Sep 21, 2013 at 2:39 AM, André Pirard <span dir="ltr"><<a href="mailto:A.Pirard.Papou@gmail.com" target="_blank">A.Pirard.Papou@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>On 2013-09-20 15:55, Marc Gemis wrote :<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">I welcomed a new user, expecting that it was
        related to the Kreatos hairdressers company:
        <div><br>
        </div>
        <div>their reply:</div>
        <div><br>
        </div>
        <div>
          <div>Dank voor de informatie. </div>
          <div>Weet u een manier om (meerdere) nodes (in één keer) te
            uploaden naar OpenStreetMap? Bij Google is dit via Google
            Places, met een XLS of XML file. </div>
          <div>Heb hiervoor gezocht op de website van OpenStreetMap,
            maar ik raak er niet meteen wijs uit? </div>
          <div>De informatie zou uit en MySQL database komen, dus een
            api met rechtstreekse import/sync mogelijkheid hiervoor zou
            natuurlijk nog beter zijn…</div>
          <div><br>
          </div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>---</div>
        <div><br>
        </div>
        <div>How do I proceed ? Show them the OSM Api v0.6 ? + policy
          page ? Josm upload ? Ask them the file and do the upload
          myself + verification of individual points ?</div>
        <div><br>
        </div>
        <div>I was also wondering this week whether we could contact
          companies to ask them to share their shops or fuel stations.
          What do you think about that ?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>regards</div>
        <div><br>
        </div>
        <div>m</div>
      </div>
      <br>
    </blockquote>
    <br></div></div>
    Hi Marc,<br>
    <br>
    I would create a single sample shop node in a new JOSM layer and
    save it to an *.osm file.<br>
    A shop looks like this:<br>
    <br>
      <node id='-108978' action='modify' visible='true' lat='50. ...'
    lon='5. ...'><br>
        <tag k='name' v='Name of the shop' /><br>
        <tag k='shop' v='bakery' /><br>
      </node><br>
    <br>
    Then I would<br>
    <ul>
      <ul>
        <li>either edit that file, replicate the node and change
          whatever must be changed</li>
        <li>or run a perl regexp command to transform another file to
          that format</li>
      </ul>
      <li>reload the result in JOSM</li>
      <li>maybe check that everything is OK (esp. in the right place) or
        let them do that later</li>
      <li>update OSM</li>
      <li>save the *.osm file again</li>
    </ul>
    <p>It can also be done with waypoints in a GPX file, but I know no
      GPX extension to add OSM tags.<br>
    </p>
    <p>Notes: </p>
    <ul>
      <li>the IDs can be any negative number but must be different</li>
      <li>it's important to "save the *.osm file again": it will contain
        the real IDs and it can help to make later mass updates</li>
    </ul>
    <p>If the problem is regexp, I can (most probably ;-) do it for you,
      but I'll have to find how to generate the ID.<br>
      Send node sample and parseable flat text file (like csv).<br>
    </p>
    <p>Cheers,<br>
    </p>
    <table>
      <tbody>
        <tr>
          <td>André</td></tr></tbody></table></div></blockquote><div><br></div>André, thanks for your input. This is the method I use to convert the pages of Onroerend Erfgoed of Wikipedia into an OSM file using Python. All items of 1 page end up in 1 osm file.  I copy them 1-by-1 from that layer into the data layer, I use 2 layers in JOSM. On the data layer I merge them with the existing data (typically using CTRL-SHIFT-g with existing building outlines and some minor tweaks to the tags). Then I go back to the imported layer, delete the node and move on to the next. I delete the node in the imported layer to keep track of what I did. This is needed for larger towns where there more than a few protected items.</div>

<div class="gmail_quote"><br></div><div class="gmail_quote">I have a similar script that converts my GPX waypoints into an .osm file, but I'm not sure that using that file is much faster than using the regular JOSM tools.<br>

<div><br></div><div>I also used the csv method before, for the monitoring stations of the Vlaamse Milieu Maatschappij. I think this method is easier for them, since the generation of a csv file from a database requires less programming than generating a .osm file. But I could have mentioned the method via direct osm-file generation as well.</div>

<div><br></div><div>regards</div><div><br></div><div>m</div><div> </div></div></div></div>