Changeset 15184 in josm for trunk/src


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/src/org/openstreetmap/josm/tools/GeoUrlToBounds.java

    r12624 r15184  
    1919     * The pattern of a geo: url, having named match groups.
    2020     */
    21     public static final Pattern PATTERN = Pattern.compile("geo:(?<lat>[+-]?[0-9.]+),(?<lon>[+-]?[0-9.]+)(\\?z=(?<zoom>[0-9]+))?");
     21    public static final Pattern PATTERN = Pattern.compile(
     22            "geo:(?<lat>[+-]?[0-9.]+),(?<lon>[+-]?[0-9.]+)(?<crs>;crs=wgs84)?(?<uncertainty>;u=[0-9.]+)?(\\?z=(?<zoom>[0-9]+))?");
    2223
    2324    private GeoUrlToBounds() {
Note: See TracChangeset for help on using the changeset viewer.