Ignore:
Timestamp:
2006-04-21T14:31:51+02:00 (18 years ago)
Author:
imi
Message:
  • added conflicts and resolve conflict dialog

This is one of those "changed everything" checkpoint.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/io/OsmWriter.java

    r82 r86  
    88
    99import org.openstreetmap.josm.data.osm.DataSet;
    10 import org.openstreetmap.josm.data.osm.LineSegment;
     10import org.openstreetmap.josm.data.osm.Segment;
    1111import org.openstreetmap.josm.data.osm.Node;
    1212import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    5151                for (Node n : ds.nodes)
    5252                        writer.visit(n);
    53                 for (LineSegment ls : ds.lineSegments)
     53                for (Segment ls : ds.segments)
    5454                        writer.visit(ls);
    5555                for (Way w : ds.ways)
     
    8080        }
    8181
    82         public void visit(LineSegment ls) {
     82        public void visit(Segment ls) {
    8383                if (ls.incomplete)
    84                         return; // Do not write an incomplete line segment
     84                        return; // Do not write an incomplete segment
    8585                addCommon(ls, "segment");
    8686                out.print(" from='"+getUsedId(ls.from)+"' to='"+getUsedId(ls.to)+"'");
     
    9191                addCommon(w, "way");
    9292                out.println(">");
    93                 for (LineSegment ls : w.segments)
     93                for (Segment ls : w.segments)
    9494                        out.println("    <seg id='"+getUsedId(ls)+"' />");
    9595                addTags(w, "way", false);
     
    130130                if (!osmConform) {
    131131                        String action = null;
    132                         if (osm.isDeleted())
     132                        if (osm.deleted)
    133133                                action = "delete";
    134                         else if (osm.modified && osm.modifiedProperties)
     134                        else if (osm.modified)
    135135                                action = "modify";
    136                         else if (osm.modified && !osm.modifiedProperties)
    137                                 action = "modify/object";
    138                         else if (!osm.modified && osm.modifiedProperties)
    139                                 action = "modify/property";
    140136                        if (action != null)
    141137                                out.print(" action='"+action+"'");
    142138                }
    143                 if (osm.lastModified != null) {
    144                         String time = new SimpleDateFormat("y-M-d H:m:s").format(osm.lastModified);
     139                if (osm.timestamp != null) {
     140                        String time = new SimpleDateFormat("y-M-d H:m:s").format(osm.timestamp);
    145141                        out.print(" timestamp='"+time+"'");
    146142                }
Note: See TracChangeset for help on using the changeset viewer.