~ubuntu-branches/ubuntu/breezy/proj/breezy

« back to all changes in this revision

Viewing changes to jniwrap/org/proj4/ProjectionData.java

  • Committer: Bazaar Package Importer
  • Author(s): Peter S Galbraith
  • Date: 2004-11-06 19:44:53 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041106194453-axnsmkh1zplal8mz
Tags: upstream-4.4.9
ImportĀ upstreamĀ versionĀ 4.4.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**=====================================================================================
 
2
 
 
3
 FILE:  DataToProject.java
 
4
 
 
5
 DESCRIPTION:  class representing the dataset to be reprojected
 
6
 
 
7
 NOTES:  ---
 
8
 AUTHOR:          Antonello Andrea
 
9
 EMAIL:               andrea.antonello@hydrologis.com
 
10
 COMPANY:       HydroloGIS / Engineering, University of Trento / CUDAM
 
11
 COPYRIGHT:    Copyright (C) 2004 HydroloGIS / University of Trento / CUDAM, ITALY, GPL
 
12
 VERSION:         $version$
 
13
 CREATED OR MODIFIED:  Oct 18, 2004
 
14
 REVISION:  ---
 
15
 =====================================================================================*/
 
16
 
 
17
/* 
 
18
 This library is free software; you can redistribute it and/or 
 
19
 modify it under the terms of the GNU Library General Public 
 
20
 License as published by the Free Software Foundation; either 
 
21
 version 2 of the License, or (at your option) any later version. 
 
22
 
 
23
 This library is distributed in the hope that it will be useful, 
 
24
 but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
25
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
 
26
 Library General Public License for more details. 
 
27
 
 
28
 You should have received a copy of the GNU Library General Public 
 
29
 License along with this library; if not, write to the Free 
 
30
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 
 
31
 USA 
 
32
 
 
33
 1. Redistributions of source code must retain the above copyright   
 
34
 notice, this list of conditions and the following disclaimer.   
 
35
 2. Redistributions in binary form must reproduce the above copyright   
 
36
 notice, this list of conditions and the following disclaimer in the   
 
37
 documentation and/or other materials provided with the distribution.   
 
38
 */
 
39
package org.proj4;
 
40
 
 
41
/**
 
42
 * class representing the dataset to be reprojected
 
43
 */
 
44
public class ProjectionData
 
45
{
 
46
 
 
47
  // the variables are kept public, since they are transformed passing through
 
48
  // two classes
 
49
  public double[] x = null;
 
50
  public double[] y = null;
 
51
  public double[] z = null;
 
52
  public int rows = 0;
 
53
 
 
54
  /**
 
55
   * object to hold the data to be transformed. This will be passed from 
 
56
   * the starting projection object to the destinantion projection passing through
 
57
   * the transformation.
 
58
   */
 
59
  public ProjectionData(double[][] _coord, double[] _values)
 
60
  {
 
61
    rows = _coord.length;
 
62
    x = new double[rows];
 
63
    y = new double[rows];
 
64
    
 
65
    for (int i = 0; i < rows; i++)
 
66
    {
 
67
      x[i] = _coord[i][0];
 
68
      y[i] = _coord[i][1];
 
69
    }
 
70
    z = _values;
 
71
  }
 
72
}