- Timestamp:
- 2013-02-25T21:47:20+01:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java
r5691 r5745 185 185 return null; 186 186 } 187 188 /** 189 * Determines if the given URL denotes an OSM gpx-related API call. 190 * @param url The url to check 191 * @return true if the url matches "Trace ID" API call or "Trackpoints bbox" API call, false otherwise 192 * @see GpxData#fromServer 193 * @since 5745 194 */ 195 public static final boolean isFromServer(String url) { 196 return url != null && (url.matches(PATTERN_TRACE_ID) || url.matches(PATTERN_TRACKPOINTS_BBOX)); 197 } 187 198 } -
trunk/src/org/openstreetmap/josm/io/OsmServerLocationReader.java
r5679 r5745 9 9 10 10 import org.apache.tools.bzip2.CBZip2InputStream; 11 import org.openstreetmap.josm.actions.downloadtasks.DownloadGpsTask; 11 12 import org.openstreetmap.josm.data.gpx.GpxData; 12 13 import org.openstreetmap.josm.data.osm.DataSet; … … 168 169 gpxParsedProperly = reader.parse(false); 169 170 GpxData result = reader.getGpxData(); 170 result.fromServer = true;171 result.fromServer = DownloadGpsTask.isFromServer(url); 171 172 return result; 172 173 }
Note:
See TracChangeset
for help on using the changeset viewer.