Ignore:
Timestamp:
2019-08-24T13:22:56+02:00 (5 years ago)
Author:
donvip
Message:

fix #josm18029 - handling of tabular files where lat/lon column ends with "_lat" / "_lon"

Location:
applications/editors/josm/plugins/opendata
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/OdConstants.java

    r34196 r35102  
    100100     * Coordinates fields
    101101     */
    102     public static final String X_STRING = "X|LON|LONGI|.*LONGITUDE.*|EASTING";
    103     public static final String Y_STRING = "Y|LAT|LATI|.*LATITUDE.*|NORTHING";
     102    public static final String X_STRING = "X|LON|.*_LON|LONGI|.*LONGITUDE.*|EASTING";
     103    public static final String Y_STRING = "Y|LAT|.*_LAT|LATI|.*LATITUDE.*|NORTHING";
    104104    public static final String XY_STRING = "POINT";
    105105
  • applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/tabular/CsvReaderTest.java

    r34153 r35102  
    5252
    5353    /**
     54     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/18029">#18029</a>
     55     * @throws Exception if an error occurs during reading
     56     */
     57    @Test
     58    public void testTicket18029() throws Exception {
     59        try (InputStream is = TestUtils.getRegressionDataStream(18029, "gtfs_stops.broken.csv")) {
     60            NonRegFunctionalTests.testGeneric("#18029", CsvReader.parseDataSet(is, newHandler("EPSG:4326"), null));
     61        }
     62    }
     63
     64    /**
    5465     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/13508">#13508</a>
    5566     * @throws Exception if an error occurs during reading
Note: See TracChangeset for help on using the changeset viewer.