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

History | View | Annotate | Download (2.98 KB)

1
/**********************************************************************
2
 * $Id: OGRLinearRing.java 7765 2006-10-03 07:05:18Z nacho $
3
 *
4
 * Name:     OGRLinearRing.java
5
 * Project:  JGDAL. Interface java to gdal (Frank Warmerdam).
6
 * Purpose:   
7
 * Author:   Nacho Brodin, brodin_ign@gva.es
8
 *
9
 **********************************************************************/
10
/*Copyright (C) 2004  Nacho Brodin <brodin_ign@gva.es>
11

12
 This program is free software; you can redistribute it and/or
13
 modify it under the terms of the GNU General Public License
14
 as published by the Free Software Foundation; either version 2
15
 of the License, or (at your option) any later version.
16

17
 This program is distributed in the hope that it will be useful,
18
 but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 GNU General Public License for more details.
21

22
 You should have received a copy of the GNU General Public License
23
 along with this program; if not, write to the Free Software
24
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
 */
26

    
27
package org.gvsig.jogr;
28

    
29

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

    
38
public class OGRLinearRing extends OGRLineString{
39
        
40
//        private native void FreeOGRLinearRingNat(long cPtr);
41
//        private native String getGeometryNameNat(long cPtr);
42
//    private native OGRGeometry cloneLinearRingNat(long cPtr);
43
//        private native void closeRingsNat(long cPtr);
44
//        private native double get_AreaNat(long cPtr);
45
//        private native int importFromWkbNat( long cPtr, String wkt, int i ); //return OGRErr
46
//        private native int exportToWkbNat( long cPtr, boolean wktborder, String wkt ); //return OGRErr. boolean=OGRwkbByteOrder
47
                                                                                                                                
48
        
49
//        public OGRLinearRing(){}
50
        /**
51
         * Constructor
52
         * @param cPtr        direcci?n de memoria al objeto OGRLinearRing de C. 
53
         */
54
                
55
        public OGRLinearRing(long cPtr){
56
                super(cPtr);
57
        }                
58
                
59
        /**
60
         * Destructor 
61
         */
62
        
63
        protected void finalize() throws OGRFailureException{
64
//                if(cPtr == 0)
65
//                        throw new OGRFailureException("Fallo al acceder al dato.");
66
//                
67
//                FreeOGRLinearRingNat(cPtr);
68
                
69
                this.delete();
70
        }
71
         
72
        /**
73
         * 
74
         */
75
        
76
        public String getGeometryName()throws OGRException{
77
                return null;
78
        }
79
        
80
        /**
81
         * 
82
         */
83
        
84
    public OGRGeometry cloneLinearRing()throws OGRException{
85
            return null;
86
    }
87

    
88
        /**
89
         * 
90
         */
91
        
92
        public int isClockwise()throws OGRException{
93
                return 0;
94
        }
95

    
96
        /**
97
         * 
98
         */
99
        
100
        public void closeRings()throws OGRException{
101
                
102
        }
103

    
104
        /**
105
         * 
106
         */
107
        
108
        public double get_Area()throws OGRException{
109
                return 0;
110
        }
111

    
112
        /**
113
         * 
114
         */
115
        
116
        public int WkbSize(){
117
                return 0;
118
        }
119

    
120
        /**
121
         * 
122
         */
123
        
124
        public void importFromWkb( String wkt, int i )throws OGRException{ 
125
                //return OGRErr
126
        }
127

    
128
        /**
129
         * 
130
         */
131
        
132
        public void exportToWkb( boolean wktborder, String wkt )throws OGRException{ //return OGRErr. boolean=OGRwkbByteOrder
133
                
134
        }
135
        
136
        
137
}