root / trunk / libraries / libjni-gdal / src / es / gva / cit / jgdal / GdalGCP.java @ 7765
History | View | Annotate | Download (4.12 KB)
1 |
/**********************************************************************
|
---|---|
2 |
* $Id: GdalGCP.java 7765 2006-10-03 07:05:18Z nacho $
|
3 |
*
|
4 |
* Name: GdalGCP.java
|
5 |
* Project: JGDAL. Interface java to gdal (Frank Warmerdam).
|
6 |
* Purpose: Dataset's Basic Funcions.
|
7 |
* Author: Nacho Brodin, brodin_ign@gva.es
|
8 |
*
|
9 |
**********************************************************************/
|
10 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
11 |
*
|
12 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
13 |
*
|
14 |
* This program is free software; you can redistribute it and/or
|
15 |
* modify it under the terms of the GNU General Public License
|
16 |
* as published by the Free Software Foundation; either version 2
|
17 |
* of the License, or (at your option) any later version.
|
18 |
*
|
19 |
* This program is distributed in the hope that it will be useful,
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
* GNU General Public License for more details.
|
23 |
*
|
24 |
* You should have received a copy of the GNU General Public License
|
25 |
* along with this program; if not, write to the Free Software
|
26 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
27 |
*
|
28 |
* For more information, contact:
|
29 |
*
|
30 |
* Generalitat Valenciana
|
31 |
* Conselleria d'Infraestructures i Transport
|
32 |
* Av. Blasco Ib??ez, 50
|
33 |
* 46010 VALENCIA
|
34 |
* SPAIN
|
35 |
*
|
36 |
* +34 963862235
|
37 |
* gvsig@gva.es
|
38 |
* www.gvsig.gva.es
|
39 |
*
|
40 |
* or
|
41 |
*
|
42 |
* IVER T.I. S.A
|
43 |
* Salamanca 50
|
44 |
* 46005 Valencia
|
45 |
* Spain
|
46 |
*
|
47 |
* +34 963163400
|
48 |
* dac@iver.es
|
49 |
*/
|
50 |
|
51 |
package es.gva.cit.jgdal; |
52 |
|
53 |
|
54 |
import java.io.*; |
55 |
import java.util.Date; |
56 |
|
57 |
|
58 |
/**
|
59 |
* Contiene las funcionalidades necesarias para el acceso a los
|
60 |
* elementos de un dataset de gdal correspondiente a una im?gen
|
61 |
*
|
62 |
* @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
|
63 |
* @version 0.0
|
64 |
* @link http://www.gvsig.gva.es
|
65 |
*/
|
66 |
|
67 |
public class GdalGCP extends JNIBase{ |
68 |
|
69 |
private native long GdalGCPNat(); |
70 |
private native long GdalGCPPointsNat( double pixelXGCP, |
71 |
double pixelYGCP,
|
72 |
double mapXGCP,
|
73 |
double mapYGCP,
|
74 |
double mapZGCP);
|
75 |
private native void FreeGdalGCPNat(); |
76 |
|
77 |
private String id; //identificador |
78 |
private String info; //informaci?n |
79 |
private double pixelXGCP; /** Pixel (x) location of GCP on raster */ |
80 |
private double pixelYGCP; /** Line (y) location of GCP on raster */ |
81 |
private double mapXGCP; /** X position of GCP in georeferenced space */ |
82 |
private double mapYGCP; /** Y position of GCP in georeferenced space */ |
83 |
private double mapZGCP; /** Elevation of GCP, or zero if not known */ |
84 |
|
85 |
/**
|
86 |
* Constructor
|
87 |
*/
|
88 |
public GdalGCP(){
|
89 |
cPtr = this.GdalGCPNat();
|
90 |
} |
91 |
|
92 |
/**
|
93 |
* Constructor
|
94 |
* @param pixelXGCP
|
95 |
* @param pixelYGCP
|
96 |
* @param mapXGCP
|
97 |
* @param mapYGCP
|
98 |
* @param mapZGCP
|
99 |
*/
|
100 |
public GdalGCP( double pixelXGCP, |
101 |
double pixelYGCP,
|
102 |
double mapXGCP,
|
103 |
double mapYGCP,
|
104 |
double mapZGCP){
|
105 |
this.pixelXGCP = pixelXGCP;
|
106 |
this.pixelYGCP = pixelYGCP;
|
107 |
this.mapXGCP = mapXGCP;
|
108 |
this.mapYGCP = mapYGCP;
|
109 |
this.mapZGCP = mapYGCP;
|
110 |
} |
111 |
|
112 |
protected void finalize(){ |
113 |
|
114 |
} |
115 |
|
116 |
/**
|
117 |
* @return Returns the mapXGCP.
|
118 |
*/
|
119 |
public double getMapXGCP() { |
120 |
return mapXGCP;
|
121 |
} |
122 |
/**
|
123 |
* @param mapXGCP The mapXGCP to set.
|
124 |
*/
|
125 |
public void setMapXGCP(double mapXGCP) { |
126 |
this.mapXGCP = mapXGCP;
|
127 |
} |
128 |
/**
|
129 |
* @return Returns the mapYGCP.
|
130 |
*/
|
131 |
public double getMapYGCP() { |
132 |
return mapYGCP;
|
133 |
} |
134 |
/**
|
135 |
* @param mapYGCP The mapYGCP to set.
|
136 |
*/
|
137 |
public void setMapYGCP(double mapYGCP) { |
138 |
this.mapYGCP = mapYGCP;
|
139 |
} |
140 |
/**
|
141 |
* @return Returns the mapZGCP.
|
142 |
*/
|
143 |
public double getMapZGCP() { |
144 |
return mapZGCP;
|
145 |
} |
146 |
/**
|
147 |
* @param mapZGCP The mapZGCP to set.
|
148 |
*/
|
149 |
public void setMapZGCP(double mapZGCP) { |
150 |
this.mapZGCP = mapZGCP;
|
151 |
} |
152 |
/**
|
153 |
* @return Returns the pixelXGCP.
|
154 |
*/
|
155 |
public double getPixelXGCP() { |
156 |
return pixelXGCP;
|
157 |
} |
158 |
/**
|
159 |
* @param pixelXGCP The pixelXGCP to set.
|
160 |
*/
|
161 |
public void setPixelXGCP(double pixelXGCP) { |
162 |
this.pixelXGCP = pixelXGCP;
|
163 |
} |
164 |
/**
|
165 |
* @return Returns the pixelYGCP.
|
166 |
*/
|
167 |
public double getPixelYGCP() { |
168 |
return pixelYGCP;
|
169 |
} |
170 |
/**
|
171 |
* @param pixelYGCP The pixelYGCP to set.
|
172 |
*/
|
173 |
public void setPixelYGCP(double pixelYGCP) { |
174 |
this.pixelYGCP = pixelYGCP;
|
175 |
} |
176 |
} |