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 / OGRPolygon.java @ 3497
History | View | Annotate | Download (6.09 KB)
1 |
/**********************************************************************
|
---|---|
2 |
* $Id: OGRPolygon.java 7765 2006-10-03 07:05:18Z nacho $
|
3 |
*
|
4 |
* Name: OGRPolygon.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 |
|
39 |
public class OGRPolygon extends OGRSurface{ |
40 |
|
41 |
// private native void FreeOGRPolygonNat(long cPtr);
|
42 |
// private native long OGRPolygonNat();
|
43 |
// private native String getGeometryNameNat( long cPtr );
|
44 |
// private native String getGeometryTypeNat( long cPtr );//return OGRwkbGeometryType
|
45 |
// private native OGRGeometry clonePolygonNat( long cPtr );
|
46 |
// private native void emptyNat( long cPtr );
|
47 |
// private native int transformNat( long cPtr, OGRCoordinateTransformation poCT );//Excepciones
|
48 |
// private native void flattenTo2DNat( long cPtr );
|
49 |
// private native double get_AreaNat( long cPtr );
|
50 |
// private native int centroidNat( long cPtr, OGRPoint poPoint );
|
51 |
// private native int pointOnSurfaceNat( long cPtr, OGRPoint poPoint );
|
52 |
// private native int importFromWkbNat( long cPtr, String wkt, int i );//Excepciones
|
53 |
// private native int exportToWkbNat( long cPtr, boolean wktborder, String wkt );//Excepciones.2 param=OGRwkbByteOrder
|
54 |
// private native int importFromWktNat( long cPtr, String[] wkt );//Excepciones
|
55 |
// private native int exportToWktNat( long cPtr, String[] ppszDstText );//Excepciones
|
56 |
// private native void getEnvelopeNat( long cPtr, OGREnvelope psEnvelope );
|
57 |
// private native int equalNat( long cPtr, OGRGeometry geom );//return OGRBoolean
|
58 |
// private native void addRingNat( long cPtr, OGRLinearRing linearring );
|
59 |
// private native void addRingDirectlyNat( long cPtr, OGRLinearRing linearring );
|
60 |
// private native OGRLinearRing getExteriorRingNat( long cPtr );
|
61 |
// private native OGRLinearRing getInteriorRingNat( long cPtr, int i );
|
62 |
// private native void closeRingsNat( long cPtr );
|
63 |
|
64 |
/**
|
65 |
*
|
66 |
*/
|
67 |
// public OGRPolygon()throws OGRException{
|
68 |
//
|
69 |
// long cPtr = OGRPolygonNat();
|
70 |
//
|
71 |
// if(cPtr == 0)
|
72 |
// throw new OGRException("Error en el constructor OGRPolygon.");
|
73 |
//
|
74 |
// this.cPtr=cPtr;
|
75 |
// }
|
76 |
|
77 |
/**
|
78 |
* Constructor
|
79 |
* @param cPtr direcci?n de memoria al objeto OGRPolygon de C.
|
80 |
*/
|
81 |
|
82 |
public OGRPolygon(long cPtr){ |
83 |
super(cPtr);
|
84 |
} |
85 |
|
86 |
/**
|
87 |
* Destructor
|
88 |
*/
|
89 |
|
90 |
protected void finalize() throws OGRFailureException{ |
91 |
// if(cPtr == 0)
|
92 |
// throw new OGRFailureException("Fallo al acceder al dato.");
|
93 |
//
|
94 |
// FreeOGRPolygonNat(cPtr);
|
95 |
this.delete();
|
96 |
} |
97 |
|
98 |
|
99 |
|
100 |
// Non standard (OGRGeometry).
|
101 |
|
102 |
/**
|
103 |
*
|
104 |
*/
|
105 |
|
106 |
public String getGeometryName()throws OGRException{ |
107 |
return null; |
108 |
} |
109 |
|
110 |
/**
|
111 |
*
|
112 |
*/
|
113 |
|
114 |
public String getGeometryType()throws OGRException{ //return OGRwkbGeometryType |
115 |
return null; |
116 |
} |
117 |
|
118 |
/**
|
119 |
*
|
120 |
*/
|
121 |
|
122 |
public OGRGeometry clonePolygon()throws OGRException{ |
123 |
return null; |
124 |
} |
125 |
|
126 |
/**
|
127 |
*
|
128 |
*/
|
129 |
|
130 |
public void empty()throws OGRException{ |
131 |
|
132 |
} |
133 |
|
134 |
/**
|
135 |
*
|
136 |
*/
|
137 |
|
138 |
public void transform( OGRCoordinateTransformation poCT )throws OGRException{//Excepciones |
139 |
|
140 |
} |
141 |
|
142 |
/**
|
143 |
*
|
144 |
*/
|
145 |
|
146 |
public void flattenTo2D()throws OGRException{ |
147 |
|
148 |
} |
149 |
|
150 |
// ISurface Interface
|
151 |
|
152 |
/**
|
153 |
*
|
154 |
*/
|
155 |
|
156 |
public double get_Area()throws OGRException{ |
157 |
return 0; |
158 |
} |
159 |
|
160 |
/**
|
161 |
*
|
162 |
*/
|
163 |
|
164 |
public int centroid( OGRPoint poPoint )throws OGRException{ |
165 |
return 0; |
166 |
} |
167 |
|
168 |
/**
|
169 |
*
|
170 |
*/
|
171 |
|
172 |
public int pointOnSurface( OGRPoint poPoint )throws OGRException{ |
173 |
return 0; |
174 |
} |
175 |
|
176 |
// IWks Interface
|
177 |
|
178 |
/**
|
179 |
*
|
180 |
*/
|
181 |
|
182 |
public int wkbSize()throws OGRException{ |
183 |
return 0; |
184 |
} |
185 |
|
186 |
/**
|
187 |
*
|
188 |
*/
|
189 |
|
190 |
public void importFromWkb( String wkt, int i )throws OGRException{//Excepciones |
191 |
|
192 |
} |
193 |
|
194 |
/**
|
195 |
*
|
196 |
*/
|
197 |
|
198 |
public void exportToWkb( boolean wktborder, String wkt )throws OGRException{//Excepciones. 1 param=OGRwkbByteOrder |
199 |
|
200 |
} |
201 |
|
202 |
/**
|
203 |
*
|
204 |
*/
|
205 |
|
206 |
public void importFromWkt( String[] wkt )throws OGRException{//Excepciones |
207 |
|
208 |
} |
209 |
|
210 |
/**
|
211 |
*
|
212 |
*/
|
213 |
|
214 |
public void exportToWkt( String[] ppszDstText )throws OGRException{//Excepciones |
215 |
|
216 |
} |
217 |
|
218 |
// IGeometry
|
219 |
|
220 |
/**
|
221 |
*
|
222 |
*/
|
223 |
|
224 |
public int getDimension()throws OGRException{ |
225 |
return 0; |
226 |
} |
227 |
|
228 |
/**
|
229 |
*
|
230 |
*/
|
231 |
|
232 |
public int getCoordinateDimension()throws OGRException{ |
233 |
return 0; |
234 |
} |
235 |
|
236 |
/**
|
237 |
*
|
238 |
*/
|
239 |
|
240 |
public void getEnvelope( OGREnvelope psEnvelope )throws OGRException{ |
241 |
|
242 |
} |
243 |
|
244 |
// ISpatialRelation
|
245 |
|
246 |
/**
|
247 |
*
|
248 |
*/
|
249 |
|
250 |
public int equal( OGRGeometry geom )throws OGRException{//return OGRBoolean |
251 |
return 0; |
252 |
} |
253 |
|
254 |
// Non standard
|
255 |
|
256 |
/**
|
257 |
*
|
258 |
*/
|
259 |
|
260 |
public void addRing( OGRLinearRing linearring )throws OGRException{ |
261 |
|
262 |
} |
263 |
|
264 |
/**
|
265 |
*
|
266 |
*/
|
267 |
|
268 |
public void addRingDirectly( OGRLinearRing linearring )throws OGRException{ |
269 |
|
270 |
} |
271 |
|
272 |
/**
|
273 |
*
|
274 |
*/
|
275 |
|
276 |
public OGRLinearRing getExteriorRing()throws OGRException{ |
277 |
return null; |
278 |
} |
279 |
|
280 |
/**
|
281 |
*
|
282 |
*/
|
283 |
|
284 |
public int getNumInteriorRings()throws OGRException{ |
285 |
return 0; |
286 |
} |
287 |
|
288 |
/**
|
289 |
*
|
290 |
*/
|
291 |
|
292 |
public OGRLinearRing getInteriorRing( int i )throws OGRException{ |
293 |
return null; |
294 |
} |
295 |
|
296 |
/**
|
297 |
*
|
298 |
*/
|
299 |
|
300 |
public void closeRings()throws OGRException{ |
301 |
|
302 |
} |
303 |
|
304 |
} |
305 |
|