Modify

Opened 17 years ago

Closed 15 years ago

Last modified 8 years ago

#455 closed enhancement (fixed)

new feature to load POI from CSV file or GPX file

Reported by: paul@… Owned by: framm
Priority: minor Milestone:
Component: Core Version:
Keywords: Cc:

Description

Would it be possible to load Waypoints for POI eg Toilets, post offices, banks , shopping centres etc.. from JOSM
eg imput file could be CSV format

category, type, lat, lon, description

eg
Amenity,supermarket,-35.1234,149.1234,Freddos GPS and OSM store

Attachments (0)

Change History (3)

comment:1 by Gabriel Ebner <ge@…>, 17 years ago

Cc: ge@… added

Depending on what you want to do, you could produce an OSM file directly and then load that into JOSM, e.g. your example would translate to:

<osm version="0.5">
  <node id="-1" lat="-35.1234" lon="149.1234">
    <tag k="amenity" v="supermarket"/>
    <tag k="name" v="Freddos GPS and OSM store"/>
  </node>
</osm>

You can also use a perl script for that:

use HTML::Entities;
print "<osm version='0.5'>\n";
while (($k,$v,$lat,$lon,$name) = split /[\n,]/, <>) {
  printf "<node id='".--$id."' lat='$lat' lon='$lon'>".
    "<tag k='%s' v='%s'/><tag k='name' v='%s'/></node>\n",
    map HTML::Entities::encode_entities_numeric($_), $k, $v, $name;
}
print "</osm>\n";

comment:2 by anonymous, 16 years ago

A start would be allow converting Waypoints (Markers layer) to Nodes. Then one can go and add Tags.

comment:4 by stoecker, 15 years ago

Resolution: fixed
Status: newclosed

waypoints plugin should do that.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.