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 / OGRGeometry.java @ 3497
History | View | Annotate | Download (8.61 KB)
1 |
/**********************************************************************
|
---|---|
2 |
* $Id: OGRGeometry.java 7765 2006-10-03 07:05:18Z 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 org.gvsig.jogr; |
28 |
|
29 |
import org.gdal.ogr.Geometry; |
30 |
|
31 |
|
32 |
/**
|
33 |
*
|
34 |
* @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
|
35 |
* @version 0.0
|
36 |
* @link http://www.gvsig.gva.es
|
37 |
*/
|
38 |
|
39 |
public class OGRGeometry extends Geometry{ |
40 |
|
41 |
// private native void FreeOGRGeometry( long cPtr );
|
42 |
// private native int getCoordinateDimensionNat( long cPtr );
|
43 |
// private native int isEmptyNat( long cPtr ); //return OGRBoolean
|
44 |
// private native void emptyNat( long cPtr );
|
45 |
// private native long cloneNat( long cPtr );
|
46 |
// private native void getEnvelopeNat( long cPtr, OGREnvelope psEnvelope );
|
47 |
// private native void importFromWkbNat( long cPtr, String wkt, int i );//Excepciones
|
48 |
// private native void exportToWkbNat( long cPtr, boolean ogrwkbByteOrder , String wkt );//Excepciones
|
49 |
// private native void importFromWktNat( long cPtr, String[] ppszInput );//Excepciones
|
50 |
// private native void exportToWktNat( long cPtr, String[] ppszDstText );//Excepciones
|
51 |
// private native String getGeometryTypeNat( long cPtr );//Return OGRwkbGeometryType
|
52 |
// private native String getGeometryNameNat( long cPtr );
|
53 |
// private native void dumpReadableNat( long cPtr, String file, String s );
|
54 |
// private native void flattenTo2DNat( long cPtr );
|
55 |
// private native String exportToGMLNat( long cPtr );
|
56 |
// private native void closeRingsNat( long cPtr );
|
57 |
// private native void assignSpatialReferenceNat( long cPtr, OGRSpatialReference poSR );
|
58 |
// private native long getSpatialReferenceNat( long cPtr );
|
59 |
// private native void transformNat( long cPtr, OGRCoordinateTransformation poCT ); //Excepciones
|
60 |
// private native int transformToNat( long cPtr, OGRSpatialReference poSR ); //Excepciones
|
61 |
// private native int intersectNat( long cPtr, OGRGeometry geom ); //return OGRBoolean
|
62 |
// private native int equalNat( long cPtr, OGRGeometry geom );//return OGRBoolean
|
63 |
// private native int disjointNat( long cPtr, OGRGeometry geom ); //return OGRBoolean
|
64 |
// private native int touchesNat( long cPtr, OGRGeometry geom ); //return OGRBoolean
|
65 |
// private native int crossesNat( long cPtr, OGRGeometry geom ); //return OGRBoolean
|
66 |
// private native int withinNat( long cPtr, OGRGeometry geom );//return OGRBoolean
|
67 |
// private native int containsNat( long cPtr, OGRGeometry geom );//return OGRBoolean
|
68 |
// private native int overlapsNat( long cPtr, OGRGeometry geom );//return OGRBoolean
|
69 |
// private native long getBoundaryNat( long cPtr );
|
70 |
// private native double distanceNat( long cPtr, OGRGeometry geom );
|
71 |
// private native long convexHullNat( long cPtr );
|
72 |
// private native long bufferNat( long cPtr, double dfDist, int nQuadSegs );
|
73 |
// private native long intersectionNat( long cPtr, OGRGeometry geom);
|
74 |
// private native long unionNat( long cPtr, OGRGeometry geom );
|
75 |
// private native long differenceNat( long cPtr, OGRGeometry geom );
|
76 |
// private native long symmetricDifferenceNat( long cPtr, OGRGeometry geom );
|
77 |
|
78 |
|
79 |
// public OGRGeometry(){}
|
80 |
/**
|
81 |
* Constructor
|
82 |
* @param cPtr direcci?n de memoria al objeto OGRGeometry de C.
|
83 |
*/
|
84 |
|
85 |
public OGRGeometry(long cPtr){ |
86 |
super(cPtr, true); |
87 |
// this.cPtr=cPtr;
|
88 |
} |
89 |
|
90 |
/**
|
91 |
* Destructor
|
92 |
*/
|
93 |
|
94 |
protected void finalize() throws OGRFailureException{ |
95 |
// if(cPtr == 0)
|
96 |
// throw new OGRFailureException("Fallo al acceder al dato.");
|
97 |
|
98 |
this.delete();
|
99 |
// FreeOGRGeometry(cPtr);
|
100 |
} |
101 |
|
102 |
/**
|
103 |
*
|
104 |
*/
|
105 |
|
106 |
public int getDimension()throws OGRException{ |
107 |
return 0; |
108 |
} |
109 |
|
110 |
/**
|
111 |
*
|
112 |
*/
|
113 |
|
114 |
public int getCoordinateDimension()throws OGRException{ |
115 |
return 0; |
116 |
} |
117 |
|
118 |
/**
|
119 |
*
|
120 |
*/
|
121 |
|
122 |
public int isEmpty()throws OGRException{ //return OGRBoolean |
123 |
return 0; |
124 |
} |
125 |
|
126 |
/**
|
127 |
*
|
128 |
*/
|
129 |
|
130 |
public int isSimple()throws OGRException{ |
131 |
return 0; |
132 |
} |
133 |
|
134 |
/**
|
135 |
*
|
136 |
*/
|
137 |
|
138 |
public void empty()throws OGRException{ |
139 |
|
140 |
} |
141 |
|
142 |
/**
|
143 |
*
|
144 |
*/
|
145 |
|
146 |
public OGRGeometry cloneGeometry()throws OGRException{ |
147 |
return null; |
148 |
} |
149 |
|
150 |
/**
|
151 |
*
|
152 |
*/
|
153 |
|
154 |
public void getEnvelope( OGREnvelope psEnvelope )throws OGRException{ |
155 |
|
156 |
} |
157 |
|
158 |
/**
|
159 |
*
|
160 |
*/
|
161 |
|
162 |
|
163 |
// IWks Interface
|
164 |
|
165 |
/**
|
166 |
*
|
167 |
*/
|
168 |
|
169 |
public int wkbSize()throws OGRException{ |
170 |
return 0; |
171 |
} |
172 |
|
173 |
/**
|
174 |
*
|
175 |
*/
|
176 |
|
177 |
public void importFromWkb( String wkt, int i )throws OGRException{//Excepciones |
178 |
|
179 |
} |
180 |
|
181 |
/**
|
182 |
*
|
183 |
*/
|
184 |
|
185 |
public void exportToWkb( boolean ogrwkbByteOrder , String wkt )throws OGRException{//Excepciones |
186 |
|
187 |
} |
188 |
|
189 |
/**
|
190 |
*
|
191 |
*/
|
192 |
|
193 |
public void importFromWkt( String[] ppszInput )throws OGRException{//Excepciones |
194 |
|
195 |
} |
196 |
|
197 |
/**
|
198 |
*
|
199 |
*/
|
200 |
|
201 |
public void exportToWkt( String[] ppszDstText )throws OGRException{//Excepciones |
202 |
|
203 |
} |
204 |
|
205 |
/**
|
206 |
*
|
207 |
*/
|
208 |
|
209 |
|
210 |
// non-standard
|
211 |
|
212 |
/**
|
213 |
*
|
214 |
*/
|
215 |
|
216 |
public String getGeometryType()throws OGRException{//Return OGRwkbGeometryType |
217 |
return null; |
218 |
} |
219 |
|
220 |
/**
|
221 |
*
|
222 |
*/
|
223 |
|
224 |
public String getGeometryName() throws OGRException{ |
225 |
return null; |
226 |
} |
227 |
|
228 |
/**
|
229 |
*
|
230 |
*/
|
231 |
|
232 |
public void dumpReadable( String file, String s )throws OGRException{ |
233 |
|
234 |
} |
235 |
|
236 |
/**
|
237 |
*
|
238 |
*/
|
239 |
|
240 |
public void flattenTo2D()throws OGRException{ |
241 |
|
242 |
} |
243 |
|
244 |
/**
|
245 |
*
|
246 |
*/
|
247 |
|
248 |
public String exportToGML()throws OGRException{ |
249 |
return null; |
250 |
} |
251 |
|
252 |
/**
|
253 |
*
|
254 |
*/
|
255 |
|
256 |
public void closeRings()throws OGRException{ |
257 |
|
258 |
} |
259 |
|
260 |
/**
|
261 |
*
|
262 |
*/
|
263 |
|
264 |
public void assignSpatialReference( OGRSpatialReference poSR )throws OGRException{ |
265 |
|
266 |
} |
267 |
|
268 |
/**
|
269 |
*
|
270 |
*/
|
271 |
|
272 |
public OGRSpatialReference getSpatialReference( )throws OGRException{ |
273 |
return null; |
274 |
} |
275 |
|
276 |
/**
|
277 |
*
|
278 |
*/
|
279 |
|
280 |
public void transform( OGRCoordinateTransformation poCT )throws OGRException{ //Excepciones |
281 |
|
282 |
} |
283 |
|
284 |
/**
|
285 |
*
|
286 |
*/
|
287 |
|
288 |
public void transformTo( OGRSpatialReference poSR )throws OGRException{ //Excepiones |
289 |
|
290 |
} |
291 |
|
292 |
// ISpatialRelation
|
293 |
|
294 |
/**
|
295 |
*
|
296 |
*/
|
297 |
|
298 |
public int intersect( OGRGeometry geom )throws OGRException{ //return OGRBoolean |
299 |
return 0; |
300 |
} |
301 |
|
302 |
/**
|
303 |
*
|
304 |
*/
|
305 |
|
306 |
public int equal( OGRGeometry geom )throws OGRException{//return OGRBoolean |
307 |
return 0; |
308 |
} |
309 |
|
310 |
/**
|
311 |
*
|
312 |
*/
|
313 |
|
314 |
public int disjoint( OGRGeometry geom )throws OGRException{ //return OGRBoolean |
315 |
return 0; |
316 |
} |
317 |
|
318 |
/**
|
319 |
*
|
320 |
*/
|
321 |
|
322 |
public int touches( OGRGeometry geom )throws OGRException{ //return OGRBoolean |
323 |
return 0; |
324 |
} |
325 |
|
326 |
/**
|
327 |
*
|
328 |
*/
|
329 |
|
330 |
public int crosses( OGRGeometry geom )throws OGRException{ //return OGRBoolean |
331 |
return 0; |
332 |
} |
333 |
|
334 |
/**
|
335 |
*
|
336 |
*/
|
337 |
|
338 |
public int within( OGRGeometry geom )throws OGRException{//return OGRBoolean |
339 |
return 0; |
340 |
} |
341 |
|
342 |
/**
|
343 |
*
|
344 |
*/
|
345 |
|
346 |
public int contains( OGRGeometry geom )throws OGRException{//return OGRBoolean |
347 |
return 0; |
348 |
} |
349 |
|
350 |
/**
|
351 |
*
|
352 |
*/
|
353 |
|
354 |
public int overlaps( OGRGeometry geom )throws OGRException{//return OGRBoolean |
355 |
return 0; |
356 |
} |
357 |
|
358 |
/**
|
359 |
*
|
360 |
*/
|
361 |
|
362 |
public OGRGeometry getBoundary()throws OGRException{ |
363 |
return null; |
364 |
} |
365 |
|
366 |
/**
|
367 |
*
|
368 |
*/
|
369 |
|
370 |
public double distance( OGRGeometry geom )throws OGRException{ |
371 |
return 0; |
372 |
} |
373 |
|
374 |
/**
|
375 |
*
|
376 |
*/
|
377 |
|
378 |
public OGRGeometry convexHull()throws OGRException{ |
379 |
return null; |
380 |
} |
381 |
|
382 |
/**
|
383 |
*
|
384 |
*/
|
385 |
|
386 |
public OGRGeometry buffer( double dfDist, int nQuadSegs )throws OGRException{ |
387 |
return null; |
388 |
} |
389 |
|
390 |
/**
|
391 |
*
|
392 |
*/
|
393 |
|
394 |
public OGRGeometry intersection( OGRGeometry geom) throws OGRException{ |
395 |
return null; |
396 |
} |
397 |
|
398 |
/**
|
399 |
*
|
400 |
*/
|
401 |
|
402 |
public OGRGeometry union( OGRGeometry geom )throws OGRException{ |
403 |
return null; |
404 |
} |
405 |
|
406 |
/**
|
407 |
*
|
408 |
*/
|
409 |
|
410 |
public OGRGeometry difference( OGRGeometry geom )throws OGRException{ |
411 |
return null; |
412 |
} |
413 |
|
414 |
/**
|
415 |
*
|
416 |
*/
|
417 |
|
418 |
public OGRGeometry symmetricDifference( OGRGeometry geom )throws OGRException{ |
419 |
return null; |
420 |
} |
421 |
|
422 |
} |