~ubuntu-branches/ubuntu/raring/geotranz/raring

« back to all changes in this revision

Viewing changes to geotrans2/java_gui/geotrans/projections/UTM.java

  • Committer: Bazaar Package Importer
  • Author(s): Roberto Lumbreras
  • Date: 2008-10-17 14:43:09 UTC
  • Revision ID: james.westby@ubuntu.com-20081017144309-jb7uzfi1y1lvez8j
Tags: upstream-2.4.2
ImportĀ upstreamĀ versionĀ 2.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * UTM.java
 
3
 *
 
4
 * Created on April 11, 2001, 3:33 PM
 
5
 */
 
6
 
 
7
package geotrans.projections;
 
8
 
 
9
/**
 
10
 *
 
11
 * @author  amyc
 
12
 * @version 
 
13
 */
 
14
public class UTM extends Object {
 
15
 
 
16
    // Parameters
 
17
    private long zone;
 
18
    private long override;
 
19
    
 
20
    // Coordinates
 
21
    private double easting;
 
22
    private double northing;
 
23
    private int zoneCoord;
 
24
    private char hemisphere;
 
25
 
 
26
    
 
27
    /** Creates new UTM */
 
28
    public UTM() {
 
29
    }
 
30
    
 
31
    public UTM(long z,
 
32
               long o)
 
33
    {
 
34
        zone = z;
 
35
        override = o;
 
36
    }
 
37
    
 
38
    public UTM(double east, 
 
39
               double north, 
 
40
               int z,
 
41
               char hemi)
 
42
    {
 
43
        easting = east;
 
44
        northing = north;
 
45
        
 
46
        zoneCoord = z;
 
47
        hemisphere = hemi;
 
48
    }
 
49
    
 
50
    public long getZone()
 
51
    {
 
52
        return zone;
 
53
    }
 
54
    
 
55
    public int getZoneCoord()
 
56
    {
 
57
        return zoneCoord;
 
58
    }
 
59
    
 
60
    public long getOverride()
 
61
    {
 
62
        return override;
 
63
    }
 
64
 
 
65
    public double getEasting()
 
66
    {
 
67
        return easting;
 
68
    }
 
69
    
 
70
    public double getNorthing()
 
71
    {
 
72
        return northing;
 
73
    }
 
74
    
 
75
    public char getHemisphere()
 
76
    {
 
77
        return hemisphere;
 
78
    }
 
79
}