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

« back to all changes in this revision

Viewing changes to geotrans2/java_gui/geotrans/projections/ObliqueMercator.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
 * ObliqueMercator.java
 
3
 *
 
4
 * Created on April 10, 2001, 12:47 PM
 
5
 */
 
6
 
 
7
package geotrans.projections;
 
8
 
 
9
/**
 
10
 *
 
11
 * @author  amyc
 
12
 * @version 
 
13
 */
 
14
public class ObliqueMercator extends Object {
 
15
 
 
16
    // Parameters
 
17
    double  origin_latitude;   
 
18
    double  latitude_1;        
 
19
    double  longitude_1;       
 
20
    double  latitude_2;        
 
21
    double  longitude_2;       
 
22
    double  scale_factor;      
 
23
    double  false_easting;     
 
24
    double  false_northing;    
 
25
    
 
26
    // Coordinates
 
27
    private double easting;
 
28
    private double northing;
 
29
 
 
30
    /** Creates new ObliqueMercator */
 
31
    public ObliqueMercator() {
 
32
    }
 
33
    
 
34
    public ObliqueMercator(double olat, 
 
35
                           double lat_1,
 
36
                           double lon_1,
 
37
                           double lat_2,
 
38
                           double lon_2,
 
39
                           double scale_fact,
 
40
                           double feast,
 
41
                           double fnorth) 
 
42
    {
 
43
        origin_latitude = olat;
 
44
        latitude_1 = lat_1;
 
45
        longitude_1 = lon_1;
 
46
        latitude_2 = lat_2;
 
47
        longitude_2 = lon_2;
 
48
        scale_factor = scale_fact;
 
49
        false_easting = feast;
 
50
        false_northing = fnorth;
 
51
    }
 
52
        
 
53
    public ObliqueMercator(double east, 
 
54
                           double north) 
 
55
    {
 
56
        easting = east;
 
57
        northing = north;
 
58
    }
 
59
 
 
60
    public double getOriginLatitude()
 
61
    {
 
62
        return origin_latitude;
 
63
    }
 
64
    
 
65
    public double getLatitude1()
 
66
    {
 
67
        return latitude_1;
 
68
    }
 
69
 
 
70
    public double getLongitude1()
 
71
    {
 
72
        return longitude_1;
 
73
    }
 
74
 
 
75
    public double getLatitude2()
 
76
    {
 
77
        return latitude_2;
 
78
    }
 
79
    
 
80
    public double getLongitude2()
 
81
    {
 
82
        return longitude_2;
 
83
    }
 
84
 
 
85
    public double getScaleFactor()
 
86
    {
 
87
        return scale_factor;
 
88
    }
 
89
 
 
90
    public double getFalseEasting()
 
91
    {
 
92
        return false_easting;
 
93
    }
 
94
    
 
95
    public double getFalseNorthing()
 
96
    {
 
97
        return false_northing;
 
98
    }
 
99
       
 
100
    public double getEasting()
 
101
    {
 
102
        return easting;
 
103
    }
 
104
    
 
105
    public double getNorthing()
 
106
    {
 
107
        return northing;
 
108
    }
 
109
}