source: osm/applications/editors/josm/plugins/imagery_offset_db/src/iodb/StoreImageryOffsetAction.java@ 27986

Last change on this file since 27986 was 27986, checked in by zverik, 12 years ago

imagery_offset_db initial commit

File size: 1.1 KB
Line 
1package iodb;
2
3import java.awt.event.ActionEvent;
4import org.openstreetmap.josm.Main;
5import org.openstreetmap.josm.actions.JosmAction;
6import org.openstreetmap.josm.data.coor.LatLon;
7import org.openstreetmap.josm.data.projection.Projection;
8import static org.openstreetmap.josm.tools.I18n.tr;
9
10/**
11 * Upload the current imagery offset or an calibration object information.
12 *
13 * @author zverik
14 */
15public class StoreImageryOffsetAction extends JosmAction {
16
17 public StoreImageryOffsetAction() {
18 super(tr("Store Imagery Offset..."), "storeoffset", tr("Upload an offset for current imagery (or calibration object information) to a server"), null, false);
19 }
20
21 public void actionPerformed(ActionEvent e) {
22 Projection proj = Main.map.mapView.getProjection();
23 LatLon center = proj.eastNorth2latlon(Main.map.mapView.getCenter());
24 // todo: open an upload window
25 // todo: if an object was selected, ask if the user wants to upload it
26 // todo: enter all metadata (that is, a description)
27 // todo: upload object info to server
28 }
29}
Note: See TracBrowser for help on using the repository browser.