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

History | View | Annotate | Download (2.33 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.ogr.Geometry;
26

    
27

    
28
/** 
29
 * Esta clase representa a una fuente de datos
30
 * 
31
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
32
 * @version 0.0
33
 * @link http://www.gvsig.gva.es
34
 */
35

    
36
public class OGRCurve extends Geometry{
37
        
38
//        private native double getLengthNat( long cPtr );
39
//        private native void startPointNat( long cPtr, OGRPoint point);
40
//        private native void endPointNat( long cPtr, OGRPoint point);
41
//        private native int  getIsClosedNat( long cPtr );
42
//        private native void valueNat( long cPtr,  double d, OGRPoint point );
43
//        private native void FreeOGRCurveNat(long cPtr);
44
                
45
        /**
46
         * Constructor
47
         * @param cPtr        direcci?n de memoria al objeto OGRCurve de C. 
48
         */
49
                
50
        public OGRCurve(long cPtr){
51
                super(cPtr, true);
52
        }                
53
                
54
        /**
55
         * Destructor 
56
         */
57
        
58
        protected void finalize() throws OGRFailureException{
59
//                if((cPtr == 0) || (cPtr == -1))
60
//                        throw new OGRFailureException("Fallo al acceder al dato.");
61
//                
62
//                FreeOGRCurveNat(cPtr);
63
                this.delete();
64
        }
65
         
66
        /**
67
         * 
68
         */
69
        
70
        public double getLength()throws OGRException{
71
                return 0;
72
        }
73
        
74
        /**
75
         * 
76
         */
77
        
78
        public void startPoint(OGRPoint point)throws OGRException{
79
                
80
        }
81
        
82
        /**
83
         * 
84
         */
85
        
86
        public void endPoint(OGRPoint point)throws OGRException{
87
                
88
        }
89
        
90
        /**
91
         * 
92
         */
93
        
94
        public int  getIsClosed()throws OGRException{
95
                return 0;
96
        }
97
        
98
        /**
99
         * 
100
         */
101
        
102
        public void value( double d, OGRPoint point )throws OGRException{
103
                
104
        }
105
        
106
        
107
        
108
        
109
}