Ignore:
Timestamp:
2019-06-18T23:06:56+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #17825 - support Geo URIs with WGS84 CRS and/or uncertainty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/GeoUrlToBoundsTest.java

    r10636 r15184  
    4040
    4141    /**
     42     * Tests parsing Geo URLs with a CRS and/or uncertainty.
     43     */
     44    @Test
     45    public void testParseCrsUncertainty() {
     46        assertThat(
     47                GeoUrlToBounds.parse("geo:60.00000,17.000000;crs=wgs84"),
     48                is(OsmUrlToBounds.positionToBounds(60.0, 17.0, 18))
     49        );
     50        assertThat(
     51                GeoUrlToBounds.parse("geo:60.00000,17.000000;crs=wgs84;u=0"),
     52                is(OsmUrlToBounds.positionToBounds(60.0, 17.0, 18))
     53        );
     54        assertThat(
     55                GeoUrlToBounds.parse("geo:60.00000,17.000000;u=20"),
     56                is(OsmUrlToBounds.positionToBounds(60.0, 17.0, 18))
     57        );
     58    }
     59
     60    /**
    4261     * Tests parsing invalid Geo URL.
    4362     */
Note: See TracChangeset for help on using the changeset viewer.