Statistics
| Revision:

gvsig-raster / org.gvsig.raster.gdal / tags / pre-remove-jgdal / org.gvsig.raster.gdal / org.gvsig.raster.gdal.io / src / main / java / org / gvsig / jgdal / GdalGCP.java @ 3497

History | View | Annotate | Download (3.54 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22
package org.gvsig.jgdal;
23

    
24
import org.gdal.gdal.GCP;
25

    
26
/**
27
 * Contiene las funcionalidades necesarias para el acceso a los
28
 * elementos de un dataset de gdal correspondiente a una im?gen 
29
 * 
30
 * @author Nacho Brodin (nachobrodin@gmail.com).<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
31
 * @link http://www.gvsig.gva.es
32
 */
33
public class GdalGCP extends GCP{
34

    
35
//        private native long GdalGCPNat();
36
//        private native long GdalGCPPointsNat(        double pixelXGCP, 
37
//                                                                                        double pixelYGCP,
38
//                                                                                        double mapXGCP,
39
//                                                                                        double mapYGCP,
40
//                                                                                        double mapZGCP);
41
//        private native void FreeGdalGCPNat();
42
        
43
        private String id;                         //identificador 
44
        private String info;                //informaci?n
45
        private double pixelXGCP;        /** Pixel (x) location of GCP on raster */
46
        private double pixelYGCP;        /** Line (y) location of GCP on raster */
47
        private double mapXGCP;                /** X position of GCP in georeferenced space */
48
        private double mapYGCP;         /** Y position of GCP in georeferenced space */
49
        private double mapZGCP;                /** Elevation of GCP, or zero if not known */
50
                
51
        /**
52
         * Constructor
53
         */
54
//        public GdalGCP(){
55
//                super();
56
//        }
57
        
58
        /**
59
         * Constructor
60
         * @param pixelXGCP
61
         * @param pixelYGCP
62
         * @param mapXGCP
63
         * @param mapYGCP
64
         * @param mapZGCP
65
         */
66
        public GdalGCP(        double pixelXGCP, 
67
                                        double pixelYGCP,
68
                                        double mapXGCP,
69
                                        double mapYGCP,
70
                                        double mapZGCP){
71
                super(mapXGCP, mapYGCP, mapZGCP, pixelXGCP, pixelYGCP);
72
                this.pixelXGCP = pixelXGCP;  
73
                this.pixelYGCP = pixelYGCP;
74
                this.mapXGCP = mapXGCP; 
75
                this.mapYGCP = mapYGCP;
76
                this.mapZGCP = mapZGCP;
77
        }
78
        
79
        protected void finalize(){
80
                
81
        }
82
        
83
        /**
84
         * @return Returns the mapXGCP.
85
         */
86
        public double getMapXGCP() {
87
                return mapXGCP;
88
        }
89
        /**
90
         * @param mapXGCP The mapXGCP to set.
91
         */
92
        public void setMapXGCP(double mapXGCP) {
93
                this.mapXGCP = mapXGCP;
94
        }
95
        /**
96
         * @return Returns the mapYGCP.
97
         */
98
        public double getMapYGCP() {
99
                return mapYGCP;
100
        }
101
        /**
102
         * @param mapYGCP The mapYGCP to set.
103
         */
104
        public void setMapYGCP(double mapYGCP) {
105
                this.mapYGCP = mapYGCP;
106
        }
107
        /**
108
         * @return Returns the mapZGCP.
109
         */
110
        public double getMapZGCP() {
111
                return mapZGCP;
112
        }
113
        /**
114
         * @param mapZGCP The mapZGCP to set.
115
         */
116
        public void setMapZGCP(double mapZGCP) {
117
                this.mapZGCP = mapZGCP;
118
        }
119
        /**
120
         * @return Returns the pixelXGCP.
121
         */
122
        public double getPixelXGCP() {
123
                return pixelXGCP;
124
        }
125
        /**
126
         * @param pixelXGCP The pixelXGCP to set.
127
         */
128
        public void setPixelXGCP(double pixelXGCP) {
129
                this.pixelXGCP = pixelXGCP;
130
        }
131
        /**
132
         * @return Returns the pixelYGCP.
133
         */
134
        public double getPixelYGCP() {
135
                return pixelYGCP;
136
        }
137
        /**
138
         * @param pixelYGCP The pixelYGCP to set.
139
         */
140
        public void setPixelYGCP(double pixelYGCP) {
141
                this.pixelYGCP = pixelYGCP;
142
        }
143
}