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

History | View | Annotate | Download (7.38 KB)

1
/**********************************************************************
2
 * $Id: OGRLineString.java 7765 2006-10-03 07:05:18Z nacho $
3
 *
4
 * Name:     OGRLineString.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
import org.gdal.ogr.Geometry;
30

    
31

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

    
40
public class OGRLineString extends Geometry{
41
        
42
//        private native void FreeOGRLineStringNat(long cPtr);
43
//        private native void emptyNat( long cPtr );
44
//    private native long cloneLineStringNat( long cPtr );
45
//    private native void getEnvelopeNat( long cPtr,  OGREnvelope psEnvelope );
46
//    private native int importFromWkbNat( long cPtr,  String wkt, int i );//Excepciones
47
//    private native int exportToWkbNat( long cPtr,  boolean ogrwkbByteOrder , String wkt );//Excepciones
48
//    private native int importFromWktNat( long cPtr,  String[] ppszInput );//Excepciones
49
//    private native int exportToWktNat( long cPtr,  String[] ppszDstText );//Excepciones
50
//    private native double getXNat( long cPtr );
51
//    private native double getYNat( long cPtr );
52
//    private native double getZNat( long cPtr );
53
//    private native int equalNat( long cPtr,  OGRGeometry geom );//return OGRBoolean
54
//    private native String getGeometryNameNat( long cPtr );
55
//    private native int getGeometryTypeNat( long cPtr );//return OGRwkbGeometryType
56
//    private native int transformNat( long cPtr,  OGRCoordinateTransformation poCT );
57
//    private native void flattenTo2DNat( long cPtr );
58
//    private native double get_LengthNat( long cPtr );
59
//    private native void startPointNat( long cPtr, OGRPoint point);
60
//    private native void endPointNat( long cPtr, OGRPoint point);
61
//    private native void valueNat( long cPtr,  double v, OGRPoint point );
62
//    private native void getPointNat( long cPtr,  int i, OGRPoint point );
63
//    private native void setNumPointsNat( long cPtr,  int npoints);
64
//    private native void setPointNat( long cPtr,  int i, OGRPoint point );
65
//    private native void setPointNat( long cPtr,  int i, double x, double y, double z );
66
//    private native void setPointsNat( long cPtr,  int i, double padfX, double padfY,
67
//                           double padfZ  );
68
//    private native void addPointNat( long cPtr,  OGRPoint point );
69
//    private native void addPointNat( long cPtr,  double x, double y, double z );
70
        
71
//    public OGRLineString(){
72
//            super();
73
//    }
74
    
75
        /**
76
         * Constructor
77
         * @param cPtr        direcci?n de memoria al objeto OGRLineString de C. 
78
         */
79
                
80
        public OGRLineString(long cPtr){
81
                super(cPtr, true);
82
        }                
83
                
84
        /**
85
         * Destructor 
86
         */
87
        
88
        protected void finalize() throws OGRFailureException{
89
//                if(cPtr == 0)
90
//                        throw new OGRFailureException("Fallo al acceder al dato.");
91
//                FreeOGRLineStringNat(cPtr);
92
                
93
                this.delete();
94
        }
95
             
96
  
97
    // IWks Interface
98

    
99
        /**
100
         * 
101
         */
102
        
103
    public int wkbSize()throws OGRException{
104
            return 0;
105
    }
106

    
107
        /**
108
         * 
109
         */
110
        
111
    public void importFromWkb( String wkt, int i )throws OGRException{//Excepciones
112
            
113
    }
114

    
115
        /**
116
         * 
117
         */
118
        
119
    public void exportToWkb( boolean ogrwkbByteOrder , String wkt )throws OGRException{//Excepciones
120
            
121
    }
122

    
123
        /**
124
         * 
125
         */
126
        
127
    public void importFromWkt( String[] ppszInput )throws OGRException{//Excepciones
128
            
129
    }
130

    
131
        /**
132
         * 
133
         */
134
        
135
    public void exportToWkt( String[] ppszDstText )throws OGRException{//Excepciones
136
            
137
    }
138

    
139

    
140
    // IGeometry
141
    
142
        /**
143
         * 
144
         */
145
        
146
    public int getDimension()throws OGRException{
147
            return 0;
148
    }
149

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

    
158
    /**
159
     * 
160
     */
161
    
162
    public void empty()throws OGRException{
163
            
164
    }
165

    
166
        /**
167
         * 
168
         */
169
        
170
    public OGRGeometry cloneLineString()throws OGRException{
171
            return null;        
172
    }
173

    
174
        /**
175
         * 
176
         */
177
        
178
    public void getEnvelope( OGREnvelope psEnvelope )throws OGRException{
179
            
180
    }
181

    
182

    
183
    // IPoint
184
    
185
    /**
186
     * 
187
     */
188
    
189
    public double getX()throws OGRException{
190
            return 0;
191
    }
192

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

    
201
    /**
202
     * 
203
     */
204
    
205
    public double getZ()throws OGRException{
206
            return 0;
207
    }
208
        
209
        // Non standard
210

    
211
    /**
212
     * 
213
     */
214
    
215
    public void setX( double xIn )throws OGRException{
216
            
217
    }
218

    
219
    /**
220
     * 
221
     */
222
    
223
    public void setY( double yIn )throws OGRException{
224
            
225
    }
226

    
227
    /**
228
     * 
229
     */
230
    
231
    public void setZ( double zIn )throws OGRException{
232
            
233
    }
234

    
235
        
236
        // Non standard from OGRGeometry
237

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

    
246
    /**
247
     * 
248
     */
249
    
250
    public int getGeometryType()throws OGRException{ //return OGRwkbGeometryType
251
            return 0;
252
    }
253

    
254
    /**
255
     * 
256
     */
257
    
258
    public void transform( OGRCoordinateTransformation poCT )throws OGRException{//Excepciones
259

    
260
    }
261

    
262
    /**
263
     * 
264
     */
265
    
266
    public void flattenTo2D()throws OGRException{
267
            
268
    }
269
    
270
    
271
    
272
    
273
    // ICurve methods
274
    public double get_Length()throws OGRException{
275
            return 0;
276
    }
277
    
278
    public void startPoint(OGRPoint point)throws OGRException{
279
            
280
    }
281
    public void endPoint(OGRPoint point)throws OGRException{
282
            
283
            
284
    }
285
    
286
    public void value( double v, OGRPoint point )throws OGRException{
287
            
288
    }
289

    
290
    // ILineString methods
291
    public int getNumPoints()throws OGRException{
292
            return 0;
293
    }
294
    
295
    public void getPoint( int i, OGRPoint point )throws OGRException{
296
            
297
    }
298
    
299
  
300

    
301
    // ISpatialRelation
302
    /**
303
     * 
304
     */
305
    
306
    public int equal( OGRGeometry geom )throws OGRException{
307
            return 0;
308
    }
309

    
310
    // non standard.
311
    
312
    /**
313
     * 
314
     */
315
    
316
    public void setNumPoints( int npoints)throws OGRException{
317
            
318
    }
319
    
320
    /**
321
     * 
322
     */
323
    
324
    public void setPoint( int i, OGRPoint point )throws OGRException{
325
            
326
    }
327

    
328
    /**
329
     * 
330
     */
331
   
332
    public void setPoint( int i, double x, double y, double z )throws OGRException{
333
            
334
    }
335

    
336
    /**
337
     * 
338
     */
339
    
340
    public void setPoints( int i, double padfX, double padfY,
341
                           double padfZ  )throws OGRException{
342
            
343
    }
344

    
345
    /**
346
     * 
347
     */
348
    
349
    public void addPoint( OGRPoint point )throws OGRException{
350
            
351
    }
352

    
353
    /**
354
     * 
355
     */
356
      
357
    public void addPoint( double x, double y, double z )throws OGRException{
358
            
359
    }
360
}
361