Last change
on this file since 447 was 444, checked in by framm, 16 years ago |
- patch for better GPX file support by Raphael Mack <ramack@…>
- dropped support for CSV files
|
File size:
626 bytes
|
Line | |
---|
1 | //License: GPLv2 or later
|
---|
2 | //Copyright 2007 by Raphael Mack and others
|
---|
3 |
|
---|
4 | package org.openstreetmap.josm.data.gpx;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.Main;
|
---|
7 | import org.openstreetmap.josm.data.coor.EastNorth;
|
---|
8 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
9 |
|
---|
10 | public class WayPoint extends WithAttributes {
|
---|
11 |
|
---|
12 | public final LatLon latlon;
|
---|
13 | public final EastNorth eastNorth;
|
---|
14 |
|
---|
15 | public WayPoint(LatLon ll) {
|
---|
16 | latlon = ll;
|
---|
17 | eastNorth = Main.proj.latlon2eastNorth(ll);
|
---|
18 | }
|
---|
19 |
|
---|
20 | @Override
|
---|
21 | public String toString() {
|
---|
22 | return "WayPoint (" + (attr.containsKey("name") ? attr.get("name") + ", " :"") + latlon.toString() + ", " + attr + ")";
|
---|
23 | }
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.