root / branches / v10 / libraries / libjni-gdal / src / es / gva / cit / jogr / OGRGeometryCollection.java @ 7847
History | View | Annotate | Download (5.58 KB)
1 |
/**********************************************************************
|
---|---|
2 |
* $Id: OGRGeometryCollection.java 7847 2006-10-04 06:55:46Z nacho $
|
3 |
*
|
4 |
* Name: OGRGeometryCollection.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 |
* 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 OGRGeometryCollection extends JNIBase{ |
39 |
|
40 |
private native void FreeOGRGeometryCollectionNat(long cPtr); |
41 |
private native String getGeometryNameNat( long cPtr ); |
42 |
private native String getGeometryTypeNat( long cPtr );//return OGRwkbGeometryType |
43 |
private native OGRGeometry clonePolygonNat( long cPtr ); |
44 |
private native void emptyNat( long cPtr ); |
45 |
private native int transformNat( long cPtr, OGRCoordinateTransformation poCT );//Excepciones |
46 |
private native void flattenTo2DNat( long cPtr ); |
47 |
private native double get_AreaNat( long cPtr ); |
48 |
private native int centroidNat( long cPtr, OGRPoint poPoint ); |
49 |
private native int pointOnSurfaceNat( long cPtr, OGRPoint poPoint ); |
50 |
private native int importFromWkbNat( long cPtr, String wkt, int i );//Excepciones |
51 |
private native int exportToWkbNat( long cPtr, boolean wktborder, String wkt );//Excepciones. 2 param=OGRwkbByteOrder |
52 |
private native int importFromWktNat( long cPtr, String[] wkt );//Excepciones |
53 |
private native int exportToWktNat( long cPtr, String[] ppszDstText );//Excepciones |
54 |
private native void getEnvelopeNat( long cPtr, OGREnvelope psEnvelope ); |
55 |
private native int equalNat( long cPtr, OGRGeometry geom );//return OGRBoolean |
56 |
private native void addGeometryNat( long cPtr, OGRGeometry geom ); //Excepciones |
57 |
private native void addGeometryDirectlyNat( long cPtr, OGRGeometry geom );//Excepciones |
58 |
private native void removeGeometryNat( long cPtr, int iIndex, int bDelete );//Excepciones |
59 |
private native void closeRingsNat(long cPtr); |
60 |
|
61 |
|
62 |
/**
|
63 |
* Constructor
|
64 |
* @param cPtr direcci?n de memoria al objeto OGRGeometryCollection de C.
|
65 |
*/
|
66 |
|
67 |
public OGRGeometryCollection(long cPtr){ |
68 |
this.cPtr=cPtr;
|
69 |
} |
70 |
|
71 |
/**
|
72 |
* Destructor
|
73 |
*/
|
74 |
|
75 |
protected void finalize(){ |
76 |
if(cPtr > 0) |
77 |
FreeOGRGeometryCollectionNat(cPtr); |
78 |
} |
79 |
|
80 |
// Non standard (OGRGeometry).
|
81 |
|
82 |
/**
|
83 |
*
|
84 |
*/
|
85 |
|
86 |
public String getGeometryName()throws OGRException{ |
87 |
return null; |
88 |
} |
89 |
|
90 |
/**
|
91 |
*
|
92 |
*/
|
93 |
|
94 |
public String getGeometryType()throws OGRException{//return OGRwkbGeometryType |
95 |
return null; |
96 |
} |
97 |
|
98 |
/**
|
99 |
*
|
100 |
*/
|
101 |
|
102 |
public OGRGeometry clonePolygon()throws OGRException{ |
103 |
return null; |
104 |
} |
105 |
|
106 |
/**
|
107 |
*
|
108 |
*/
|
109 |
|
110 |
public void empty()throws OGRException{ |
111 |
|
112 |
} |
113 |
|
114 |
/**
|
115 |
*
|
116 |
*/
|
117 |
|
118 |
public void transform( OGRCoordinateTransformation poCT )throws OGRException{//Excepciones |
119 |
|
120 |
} |
121 |
|
122 |
/**
|
123 |
*
|
124 |
*/
|
125 |
|
126 |
public void flattenTo2D()throws OGRException{ |
127 |
|
128 |
} |
129 |
|
130 |
// ISurface Interface
|
131 |
|
132 |
/**
|
133 |
*
|
134 |
*/
|
135 |
|
136 |
public double get_Area()throws OGRException{ |
137 |
return 0; |
138 |
} |
139 |
|
140 |
/**
|
141 |
*
|
142 |
*/
|
143 |
|
144 |
public int centroid( OGRPoint poPoint )throws OGRException{ |
145 |
return 0; |
146 |
} |
147 |
|
148 |
/**
|
149 |
*
|
150 |
*/
|
151 |
|
152 |
public int pointOnSurface( OGRPoint poPoint )throws OGRException{ |
153 |
return 0; |
154 |
} |
155 |
|
156 |
// IWks Interface
|
157 |
|
158 |
/**
|
159 |
*
|
160 |
*/
|
161 |
|
162 |
public int wkbSize()throws OGRException{ |
163 |
return 0; |
164 |
} |
165 |
|
166 |
/**
|
167 |
*
|
168 |
*/
|
169 |
|
170 |
public void importFromWkb( String wkt, int i )throws OGRException{//Excepciones |
171 |
|
172 |
} |
173 |
|
174 |
/**
|
175 |
*
|
176 |
*/
|
177 |
|
178 |
public void exportToWkb( boolean wktborder, String wkt )throws OGRException{//Excepciones. 1 param=OGRwkbByteOrder |
179 |
|
180 |
} |
181 |
|
182 |
/**
|
183 |
*
|
184 |
*/
|
185 |
|
186 |
public void importFromWkt( String[] wkt )throws OGRException{//Excepciones |
187 |
|
188 |
} |
189 |
|
190 |
/**
|
191 |
*
|
192 |
*/
|
193 |
|
194 |
public void exportToWkt( String[] ppszDstText )throws OGRException{//Excepciones |
195 |
|
196 |
} |
197 |
|
198 |
// IGeometry
|
199 |
|
200 |
/**
|
201 |
*
|
202 |
*/
|
203 |
|
204 |
public int getDimension()throws OGRException{ |
205 |
return 0; |
206 |
} |
207 |
|
208 |
/**
|
209 |
*
|
210 |
*/
|
211 |
|
212 |
public int getCoordinateDimension()throws OGRException{ |
213 |
return 0; |
214 |
} |
215 |
|
216 |
/**
|
217 |
*
|
218 |
*/
|
219 |
|
220 |
public void getEnvelope( OGREnvelope psEnvelope )throws OGRException{ |
221 |
|
222 |
} |
223 |
|
224 |
// ISpatialRelation
|
225 |
|
226 |
/**
|
227 |
*
|
228 |
*/
|
229 |
|
230 |
public int equal( OGRGeometry geom )throws OGRException{//return OGRBoolean |
231 |
return 0; |
232 |
} |
233 |
|
234 |
// Non standard
|
235 |
|
236 |
/**
|
237 |
*
|
238 |
*/
|
239 |
|
240 |
public int addGeometry( OGRGeometry geom )throws OGRException{ //Excepciones |
241 |
return 0; |
242 |
} |
243 |
|
244 |
/**
|
245 |
*
|
246 |
*/
|
247 |
|
248 |
public int addGeometryDirectly( OGRGeometry geom )throws OGRException{//Excepciones |
249 |
return 0; |
250 |
} |
251 |
|
252 |
/**
|
253 |
*
|
254 |
*/
|
255 |
|
256 |
public int removeGeometry( int iIndex, int bDelete )throws OGRException{//Excepciones |
257 |
return 0; |
258 |
} |
259 |
|
260 |
/**
|
261 |
*
|
262 |
*/
|
263 |
|
264 |
public void closeRings()throws OGRException{ |
265 |
|
266 |
} |
267 |
|
268 |
} |