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 / jogr / OGRCoordinateTransformation.java @ 3497

History | View | Annotate | Download (1.7 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

    
23
package org.gvsig.jogr;
24

    
25
import org.gdal.osr.CoordinateTransformation;
26

    
27

    
28
/** 
29
 * 
30
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
31
 * @version 0.0
32
 * @link http://www.gvsig.gva.es
33
 */
34

    
35
public class OGRCoordinateTransformation extends CoordinateTransformation{
36
        
37
//        private native void FreeOGRCoordinateTransformation( long cPtr );
38
        
39
        //public OGRCoordinateTransformation(){}
40
        
41
        /**
42
         * Constructor
43
         * @param cPtr        direcci?n de memoria al objeto OGRCoordinateTransformation de C. 
44
         */
45
        
46
        public OGRCoordinateTransformation(long cPtr){
47
                super(cPtr,true);
48
        }
49
        
50
        /**
51
         * Destructor 
52
         */
53
        
54
        protected void finalize() {
55
//                if((cPtr == 0) || (cPtr == -1))
56
//                        throw new OGRFailureException("Fallo al acceder al dato.");
57
//                        
58
//                FreeOGRCoordinateTransformation(cPtr);
59
                this.delete();
60
        }
61
}