Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libjni-gdal / src / main / java / org / gvsig / jogr / OGRPoint.java @ 21213

History | View | Annotate | Download (5.53 KB)

1
/**********************************************************************
2
 * $Id: OGRPoint.java 7765 2006-10-03 07:05:18Z nacho $
3
 *
4
 * Name:     OGRPoint.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 OGRPoint extends JNIBase{
39
        
40
        private native void FreeOGRPointNat(long cPtr);
41
           private native void emptyNat( long cPtr );
42
    private native long cloneNat( long cPtr );
43
    private native void getEnvelopeNat( long cPtr,  OGREnvelope psEnvelope );
44
    private native int importFromWkbNat( long cPtr,  String wkt, int i );//Excepciones
45
    private native int exportToWkbNat( long cPtr,  boolean ogrwkbByteOrder , String wkt );//Excepciones
46
    private native int importFromWktNat( long cPtr,  String[] ppszInput );//Excepciones
47
    private native int exportToWktNat( long cPtr,  String[] ppszDstText );//Excepciones
48
    private native double getXNat( long cPtr );
49
    private native double getYNat( long cPtr );
50
    private native double getZNat( long cPtr );
51
    private native void setXNat( long cPtr,  double xIn );
52
    private native void setYNat( long cPtr,  double yIn );
53
    private native void setZNat( long cPtr,  double zIn );
54
    private native int equalNat( long cPtr,  OGRGeometry geom );//return OGRBoolean
55
    private native String getGeometryNameNat( long cPtr );
56
    private native int getGeometryTypeNat( long cPtr );//return OGRwkbGeometryType
57
    private native int transformNat( long cPtr,  OGRCoordinateTransformation poCT );
58
    private native void flattenTo2DNat( long cPtr );
59
        
60
        /**
61
         * Constructor
62
         * @param cPtr        direcci?n de memoria al objeto OGRPoint de C. 
63
         */
64
                
65
        public OGRPoint(long cPtr){
66
                this.cPtr = cPtr;
67
        }                
68
                
69
        /**
70
         * Destructor 
71
         */
72
        
73
        protected void finalize() throws OGRFailureException{
74
                if(cPtr == 0)
75
                        throw new OGRFailureException("Fallo al acceder al dato.");
76
                        
77
                FreeOGRPointNat(cPtr);
78
        }
79
         
80
        
81
        /**
82
         * 
83
         */
84
        
85
    public OGRPoint( double x, double y, double z)throws OGRException{
86
            
87
    }
88

    
89
  
90
    // IWks Interface
91

    
92
        /**
93
         * 
94
         */
95
        
96
    public int wkbSize()throws OGRException{
97
            return 0;
98
    }
99

    
100
        /**
101
         * 
102
         */
103
        
104
    public void importFromWkb( String wkt, int i )throws OGRException{//Excepciones
105
            
106
    }
107

    
108
        /**
109
         * 
110
         */
111
        
112
    public void exportToWkb( boolean ogrwkbByteOrder , String wkt )throws OGRException{//Excepciones
113
            
114
    }
115

    
116
        /**
117
         * 
118
         */
119
        
120
    public void importFromWkt( String[] ppszInput )throws OGRException{//Excepciones
121
            
122
    }
123

    
124
        /**
125
         * 
126
         */
127
        
128
    public void exportToWkt( String[] ppszDstText )throws OGRException{//Excepciones
129
            
130
    }
131

    
132

    
133
    // IGeometry
134
    
135
        /**
136
         * 
137
         */
138
        
139
    public int getDimension()throws OGRException{
140
            return 0;
141
    }
142

    
143
        /**
144
         * 
145
         */
146
        
147
    public int getCoordinateDimension()throws OGRException{
148
            return 0;
149
    }
150

    
151
        /**
152
         * 
153
         */
154
        
155
    public int isEmpty()throws OGRException{ //return OGRBoolean
156
            return 0;
157
    }
158

    
159
        /**
160
         * 
161
         */
162
        
163
    public int isSimple()throws OGRException{
164
            return 0;
165
    }
166

    
167
        /**
168
         * 
169
         */
170
        
171
    public void empty()throws OGRException{
172
            
173
    }
174

    
175
        /**
176
         * 
177
         */
178
        
179
    public OGRGeometry clonePoint()throws OGRException{
180
            return null;        
181
    }
182

    
183
        /**
184
         * 
185
         */
186
        
187
    public void getEnvelope( OGREnvelope psEnvelope )throws OGRException{
188
            
189
    }
190

    
191

    
192
    // IPoint
193
    
194
    /**
195
     * 
196
     */
197
    
198
    public double getX()throws OGRException{
199
            return 0;
200
    }
201

    
202
    /**
203
     * 
204
     */
205
    
206
    public double getY()throws OGRException{
207
            return 0;
208
    }
209

    
210
    /**
211
     * 
212
     */
213
    
214
    public double getZ()throws OGRException{
215
            return 0;
216
    }
217
        
218
        // Non standard
219

    
220
    /**
221
     * 
222
     */
223
    
224
    public void setX( double xIn )throws OGRException{
225
            
226
    }
227

    
228
    /**
229
     * 
230
     */
231
    
232
    public void setY( double yIn )throws OGRException{
233
            
234
    }
235

    
236
    /**
237
     * 
238
     */
239
    
240
    public void setZ( double zIn )throws OGRException{
241
            
242
    }
243

    
244
    /**
245
     * 
246
     */
247
    
248
        
249
        // ISpatialRelation
250

    
251
    /**
252
     * 
253
     */
254
    
255
    public int equal( OGRGeometry geom )throws OGRException{
256
            return 0;
257
    }
258
        
259
        // Non standard from OGRGeometry
260

    
261
    /**
262
     * 
263
     */
264
    
265
    public String getGeometryName()throws OGRException{
266
            return null;
267
    }
268

    
269
    /**
270
     * 
271
     */
272
    
273
    public int getGeometryType()throws OGRException{ //return OGRwkbGeometryType
274
            return 0;
275
    }
276

    
277
    /**
278
     * 
279
     */
280
    
281
    public void transform( OGRCoordinateTransformation poCT )throws OGRException{//Excepciones
282

    
283
    }
284

    
285
    /**
286
     * 
287
     */
288
    
289
    public void flattenTo2D()throws OGRException{
290
            
291
    }
292
    
293
        
294
}