Statistics
| Revision:

root / branches / v10 / libraries / libjni-gdal / src / es / gva / cit / jogr / OGRGeometry.java @ 7847

History | View | Annotate | Download (8.33 KB)

1
/**********************************************************************
2
 * $Id: OGRGeometry.java 7847 2006-10-04 06:55:46Z nacho $
3
 *
4
 * Name:     OGRGeometry.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 es.gva.cit.jogr;
28

    
29

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

    
37
public class OGRGeometry extends JNIBase{
38
        
39
        private native void FreeOGRGeometry( long cPtr );
40
    private native int getCoordinateDimensionNat( long cPtr );
41
    private native int isEmptyNat( long cPtr ); //return OGRBoolean
42
    private native void emptyNat( long cPtr );
43
    private native long cloneNat( long cPtr );
44
    private native void getEnvelopeNat( long cPtr,  OGREnvelope psEnvelope );
45
    private native void importFromWkbNat( long cPtr,  String wkt, int i );//Excepciones
46
    private native void exportToWkbNat( long cPtr,  boolean ogrwkbByteOrder , String wkt );//Excepciones
47
    private native void importFromWktNat( long cPtr,  String[] ppszInput );//Excepciones
48
    private native void exportToWktNat( long cPtr,  String[] ppszDstText );//Excepciones
49
    private native String getGeometryTypeNat( long cPtr );//Return OGRwkbGeometryType
50
    private native String getGeometryNameNat( long cPtr ); 
51
    private native void dumpReadableNat( long cPtr,  String file, String s );
52
    private native void flattenTo2DNat( long cPtr );
53
    private native String exportToGMLNat( long cPtr );
54
    private native void closeRingsNat( long cPtr );
55
    private native void assignSpatialReferenceNat( long cPtr,  OGRSpatialReference poSR );
56
    private native long getSpatialReferenceNat( long cPtr );
57
    private native void transformNat( long cPtr,  OGRCoordinateTransformation poCT ); //Excepciones
58
    private native int transformToNat( long cPtr,  OGRSpatialReference poSR ); //Excepciones
59
    private native int intersectNat( long cPtr,  OGRGeometry geom ); //return OGRBoolean
60
    private native int equalNat( long cPtr,  OGRGeometry geom );//return OGRBoolean
61
    private native int disjointNat( long cPtr,  OGRGeometry geom ); //return OGRBoolean
62
    private native int touchesNat( long cPtr,  OGRGeometry geom ); //return OGRBoolean
63
    private native int crossesNat( long cPtr,  OGRGeometry geom ); //return OGRBoolean
64
    private native int withinNat( long cPtr,  OGRGeometry geom );//return OGRBoolean
65
    private native int containsNat( long cPtr,  OGRGeometry geom );//return OGRBoolean
66
    private native int overlapsNat( long cPtr,  OGRGeometry geom );//return OGRBoolean
67
    private native long getBoundaryNat( long cPtr );
68
    private native double distanceNat( long cPtr,  OGRGeometry geom );
69
    private native long convexHullNat( long cPtr );
70
    private native long bufferNat( long cPtr,  double dfDist, int nQuadSegs ); 
71
    private native long intersectionNat( long cPtr,  OGRGeometry geom);
72
    private native long unionNat( long cPtr,  OGRGeometry geom );
73
    private native long differenceNat( long cPtr,  OGRGeometry geom );
74
    private native long symmetricDifferenceNat( long cPtr,  OGRGeometry geom );
75

    
76
        
77
    public OGRGeometry(){}
78
        /**
79
         * Constructor
80
         * @param cPtr        direcci?n de memoria al objeto OGRGeometry de C. 
81
         */
82
        
83
        public OGRGeometry(long cPtr){
84
                this.cPtr=cPtr;
85
        }
86
        
87
        /**
88
         * Destructor 
89
         */
90
        
91
        protected void finalize(){
92
                if(cPtr > 0)
93
                        FreeOGRGeometry(cPtr);
94
        }
95
        
96
        /**
97
         * 
98
         */
99
        
100
    public int getDimension()throws OGRException{
101
            return 0;
102
    }
103

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

    
112
        /**
113
         * 
114
         */
115
        
116
    public int isEmpty()throws OGRException{ //return OGRBoolean
117
            return 0;
118
    }
119

    
120
        /**
121
         * 
122
         */
123
        
124
    public int isSimple()throws OGRException{
125
            return 0;
126
    }
127

    
128
        /**
129
         * 
130
         */
131
        
132
    public void empty()throws OGRException{
133
            
134
    }
135

    
136
        /**
137
         * 
138
         */
139
        
140
    public OGRGeometry cloneGeometry()throws OGRException{
141
            return null;        
142
    }
143

    
144
        /**
145
         * 
146
         */
147
        
148
    public void getEnvelope( OGREnvelope psEnvelope )throws OGRException{
149
            
150
    }
151

    
152
        /**
153
         * 
154
         */
155
        
156

    
157
    // IWks Interface
158

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

    
167
        /**
168
         * 
169
         */
170
        
171
    public void importFromWkb( String wkt, int i )throws OGRException{//Excepciones
172
            
173
    }
174

    
175
        /**
176
         * 
177
         */
178
        
179
    public void exportToWkb( boolean ogrwkbByteOrder , String wkt )throws OGRException{//Excepciones
180
            
181
    }
182

    
183
        /**
184
         * 
185
         */
186
        
187
    public void importFromWkt( String[] ppszInput )throws OGRException{//Excepciones
188
            
189
    }
190

    
191
        /**
192
         * 
193
         */
194
        
195
    public void exportToWkt( String[] ppszDstText )throws OGRException{//Excepciones
196
            
197
    }
198

    
199
        /**
200
         * 
201
         */
202
        
203

    
204
    // non-standard
205

    
206
        /**
207
         * 
208
         */
209
        
210
    public String getGeometryType()throws OGRException{//Return OGRwkbGeometryType
211
            return null;
212
    }
213

    
214
        /**
215
         * 
216
         */
217
        
218
    public String getGeometryName() throws OGRException{
219
            return null;
220
    }
221

    
222
        /**
223
         * 
224
         */
225
        
226
    public void dumpReadable( String file, String s )throws OGRException{
227
            
228
    }
229

    
230
        /**
231
         * 
232
         */
233
        
234
    public void flattenTo2D()throws OGRException{
235
            
236
    }
237

    
238
        /**
239
         * 
240
         */
241
        
242
    public String exportToGML()throws OGRException{
243
            return null;
244
    }
245

    
246
        /**
247
         * 
248
         */
249
        
250
    public void closeRings()throws OGRException{
251
            
252
    }
253

    
254
        /**
255
         * 
256
         */
257
        
258
    public void assignSpatialReference( OGRSpatialReference poSR )throws OGRException{
259
            
260
    }
261

    
262
        /**
263
         * 
264
         */
265
        
266
    public OGRSpatialReference getSpatialReference( )throws OGRException{
267
            return null;
268
    }
269

    
270
        /**
271
         * 
272
         */
273
        
274
    public void transform( OGRCoordinateTransformation poCT )throws OGRException{ //Excepciones
275
            
276
    }
277

    
278
        /**
279
         * 
280
         */
281
        
282
    public void transformTo( OGRSpatialReference poSR )throws OGRException{ //Excepiones
283
   
284
    }
285

    
286
    // ISpatialRelation
287

    
288
        /**
289
         * 
290
         */
291
        
292
    public int intersect( OGRGeometry geom )throws OGRException{ //return OGRBoolean
293
            return 0;
294
    }
295

    
296
        /**
297
         * 
298
         */
299
        
300
    public int equal( OGRGeometry geom )throws OGRException{//return OGRBoolean
301
            return 0;
302
    }
303

    
304
        /**
305
         * 
306
         */
307
        
308
    public int disjoint( OGRGeometry geom )throws OGRException{ //return OGRBoolean
309
            return 0;
310
    }
311

    
312
        /**
313
         * 
314
         */
315
        
316
    public int touches( OGRGeometry geom )throws OGRException{ //return OGRBoolean
317
            return 0;
318
    }
319

    
320
        /**
321
         * 
322
         */
323
        
324
    public int crosses( OGRGeometry geom )throws OGRException{ //return OGRBoolean
325
            return 0;
326
    }
327

    
328
        /**
329
         * 
330
         */
331
        
332
    public int within( OGRGeometry geom )throws OGRException{//return OGRBoolean
333
            return 0;
334
    }
335

    
336
        /**
337
         * 
338
         */
339
        
340
    public int contains( OGRGeometry geom )throws OGRException{//return OGRBoolean
341
            return 0;
342
    }
343

    
344
        /**
345
         * 
346
         */
347
        
348
    public int overlaps( OGRGeometry geom )throws OGRException{//return OGRBoolean
349
            return 0;
350
    }
351

    
352
        /**
353
         * 
354
         */
355
        
356
    public OGRGeometry getBoundary()throws OGRException{
357
            return null;
358
    }
359

    
360
        /**
361
         * 
362
         */
363
        
364
    public double distance( OGRGeometry geom )throws OGRException{
365
            return 0;
366
    }
367

    
368
        /**
369
         * 
370
         */
371
        
372
    public OGRGeometry convexHull()throws OGRException{
373
            return null;
374
    }
375

    
376
        /**
377
         * 
378
         */
379
        
380
    public OGRGeometry buffer( double dfDist, int nQuadSegs )throws OGRException{ 
381
            return null;
382
    }
383

    
384
        /**
385
         * 
386
         */
387
        
388
    public OGRGeometry intersection( OGRGeometry geom) throws OGRException{
389
            return null;
390
    }
391

    
392
        /**
393
         * 
394
         */
395
        
396
    public OGRGeometry union( OGRGeometry geom )throws OGRException{
397
            return null;
398
    }
399

    
400
        /**
401
         * 
402
         */
403
        
404
    public OGRGeometry difference( OGRGeometry geom )throws OGRException{
405
            return null;
406
    }
407

    
408
        /**
409
         * 
410
         */
411
        
412
    public OGRGeometry symmetricDifference( OGRGeometry geom )throws OGRException{
413
            return null;
414
    }
415

    
416
}