Ignore:
Timestamp:
2008-12-31T12:35:50+01:00 (15 years ago)
Author:
stoecker
Message:

partly fix #1720. Patch by Russ Nelson

File:
1 edited

Legend:

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

    r1195 r1196  
    6060      */
    6161     private DataSet ds = new DataSet();
     62     public DataSet getDs() { return ds; }
     63
     64     /**
     65      * Record warnings.  If there were any data inconsistencies, append
     66      * a newline-terminated string.
     67      */
     68     private String parseNotes = new String();
     69     public String getParseNotes() {
     70         return parseNotes;
     71     }
    6272
    6373     /**
     
    333343                    Node n = findNode(id);
    334344                    if (n == null) {
     345                         parseNotes += tr("Skipping a way because it includes a node that doesn't exist: {0}\n", id);
    335346                         failed = true;
    336347                         break;
     
    435446      */
    436447     public static DataSet parseDataSet(InputStream source, DataSet ref, PleaseWaitDialog pleaseWaitDlg) throws SAXException, IOException {
     448          return parseDataSetOsm(source, ref, pleaseWaitDlg).ds;
     449     }
     450
     451     public static OsmReader parseDataSetOsm(InputStream source, DataSet ref, PleaseWaitDialog pleaseWaitDlg) throws SAXException, IOException {
    437452          OsmReader osm = new OsmReader();
    438453          osm.references = ref == null ? new DataSet() : ref;
     
    468483                    o.id = 0;
    469484
    470           return osm.ds;
     485          return osm;
    471486     }
    472487}
Note: See TracChangeset for help on using the changeset viewer.