Revision 1020
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRMultiPoint.java | ||
---|---|---|
37 | 37 |
|
38 | 38 |
public class OGRMultiPoint extends JNIBase{ |
39 | 39 |
|
40 |
private native void FreeOGRMultiPointNat(long cPtr); |
|
40 |
private native void FreeOGRMultiPointNat(long cPtr);private native String getGeometryNameNat(long cPtr); |
|
41 |
private native String getGeometryTypeNat(long cPtr);//return OGRwkbGeometryType |
|
42 |
private native OGRGeometry cloneNat(long cPtr); |
|
43 |
private native int importFromWktNat(long cPtr, String[] wkt );//Excepciones |
|
44 |
private native int exportToWktNat(long cPtr, String[] wkt );//Excepciones |
|
45 |
private native int addGeometryDirectlyNat(long cPtr, OGRGeometry geom );//Excepciones |
|
41 | 46 |
|
42 | 47 |
/** |
43 | 48 |
* Constructor |
... | ... | |
57 | 62 |
FreeOGRMultiPointNat(cPtr); |
58 | 63 |
} |
59 | 64 |
|
65 |
//Non standard (OGRGeometry). |
|
66 |
|
|
60 | 67 |
/** |
61 | 68 |
* |
62 | 69 |
*/ |
63 | 70 |
|
71 |
public String getGeometryName()throws OGRException{ |
|
72 |
return null; |
|
73 |
} |
|
74 |
|
|
75 |
/** |
|
76 |
* |
|
77 |
*/ |
|
78 |
|
|
79 |
public String getGeometryType()throws OGRException{ |
|
80 |
return null; |
|
81 |
} |
|
82 |
|
|
83 |
/** |
|
84 |
* |
|
85 |
*/ |
|
86 |
|
|
87 |
public OGRGeometry cloneMultiPolygon()throws OGRException{ |
|
88 |
return null; |
|
89 |
} |
|
90 |
|
|
91 |
/** |
|
92 |
* |
|
93 |
*/ |
|
94 |
|
|
95 |
public void importFromWkt( String[] wkt )throws OGRException{//Excepciones |
|
96 |
|
|
97 |
} |
|
98 |
|
|
99 |
/** |
|
100 |
* |
|
101 |
*/ |
|
102 |
|
|
103 |
public void exportToWkt( String[] wkt )throws OGRException{//Excepciones |
|
104 |
|
|
105 |
} |
|
106 |
|
|
107 |
// Non standard |
|
108 |
|
|
109 |
/** |
|
110 |
* |
|
111 |
*/ |
|
112 |
|
|
113 |
public void addGeometryDirectly( OGRGeometry geom )throws OGRException{//Excepciones |
|
114 |
|
|
115 |
} |
|
116 |
|
|
64 | 117 |
} |
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRGeometryCollection.java | ||
---|---|---|
38 | 38 |
public class OGRGeometryCollection extends JNIBase{ |
39 | 39 |
|
40 | 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 |
|
|
41 | 61 |
|
42 | 62 |
/** |
43 | 63 |
* Constructor |
... | ... | |
57 | 77 |
FreeOGRGeometryCollectionNat(cPtr); |
58 | 78 |
} |
59 | 79 |
|
80 |
// Non standard (OGRGeometry). |
|
81 |
|
|
60 | 82 |
/** |
61 | 83 |
* |
62 | 84 |
*/ |
63 | 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 |
|
|
64 | 268 |
} |
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRPolygon.java | ||
---|---|---|
35 | 35 |
* @link http://www.gvsig.gva.es |
36 | 36 |
*/ |
37 | 37 |
|
38 |
|
|
38 | 39 |
public class OGRPolygon extends JNIBase{ |
39 | 40 |
|
40 |
} |
|
41 |
private native void FreeOGRPolygonNat(long cPtr); |
|
42 |
private native String getGeometryNameNat( long cPtr ); |
|
43 |
private native String getGeometryTypeNat( long cPtr );//return OGRwkbGeometryType |
|
44 |
private native OGRGeometry clonePolygonNat( long cPtr ); |
|
45 |
private native void emptyNat( long cPtr ); |
|
46 |
private native int transformNat( long cPtr, OGRCoordinateTransformation poCT );//Excepciones |
|
47 |
private native void flattenTo2DNat( long cPtr ); |
|
48 |
private native double get_AreaNat( long cPtr ); |
|
49 |
private native int centroidNat( long cPtr, OGRPoint poPoint ); |
|
50 |
private native int pointOnSurfaceNat( long cPtr, OGRPoint poPoint ); |
|
51 |
private native int importFromWkbNat( long cPtr, String wkt, int i );//Excepciones |
|
52 |
private native int exportToWkbNat( long cPtr, boolean wktborder, String wkt );//Excepciones.2 param=OGRwkbByteOrder |
|
53 |
private native int importFromWktNat( long cPtr, String[] wkt );//Excepciones |
|
54 |
private native int exportToWktNat( long cPtr, String[] ppszDstText );//Excepciones |
|
55 |
private native void getEnvelopeNat( long cPtr, OGREnvelope psEnvelope ); |
|
56 |
private native int equalNat( long cPtr, OGRGeometry geom );//return OGRBoolean |
|
57 |
private native void addRingNat( long cPtr, OGRLinearRing linearring ); |
|
58 |
private native void addRingDirectlyNat( long cPtr, OGRLinearRing linearring ); |
|
59 |
private native OGRLinearRing getExteriorRingNat( long cPtr ); |
|
60 |
private native OGRLinearRing getInteriorRingNat( long cPtr, int i ); |
|
61 |
private native void closeRingsNat( long cPtr ); |
|
62 |
|
|
63 |
/** |
|
64 |
* Constructor |
|
65 |
* @param cPtr direcci?n de memoria al objeto OGRPolygon de C. |
|
66 |
*/ |
|
67 |
|
|
68 |
public OGRPolygon(long cPtr){ |
|
69 |
this.cPtr=cPtr; |
|
70 |
} |
|
71 |
|
|
72 |
/** |
|
73 |
* Destructor |
|
74 |
*/ |
|
75 |
|
|
76 |
protected void finalize(){ |
|
77 |
if(cPtr > 0) |
|
78 |
FreeOGRPolygonNat(cPtr); |
|
79 |
} |
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
// Non standard (OGRGeometry). |
|
84 |
|
|
85 |
/** |
|
86 |
* |
|
87 |
*/ |
|
88 |
|
|
89 |
public String getGeometryName()throws OGRException{ |
|
90 |
return null; |
|
91 |
} |
|
92 |
|
|
93 |
/** |
|
94 |
* |
|
95 |
*/ |
|
96 |
|
|
97 |
public String getGeometryType()throws OGRException{ //return OGRwkbGeometryType |
|
98 |
return null; |
|
99 |
} |
|
100 |
|
|
101 |
/** |
|
102 |
* |
|
103 |
*/ |
|
104 |
|
|
105 |
public OGRGeometry clonePolygon()throws OGRException{ |
|
106 |
return null; |
|
107 |
} |
|
108 |
|
|
109 |
/** |
|
110 |
* |
|
111 |
*/ |
|
112 |
|
|
113 |
public void empty()throws OGRException{ |
|
114 |
|
|
115 |
} |
|
116 |
|
|
117 |
/** |
|
118 |
* |
|
119 |
*/ |
|
120 |
|
|
121 |
public void transform( OGRCoordinateTransformation poCT )throws OGRException{//Excepciones |
|
122 |
|
|
123 |
} |
|
124 |
|
|
125 |
/** |
|
126 |
* |
|
127 |
*/ |
|
128 |
|
|
129 |
public void flattenTo2D()throws OGRException{ |
|
130 |
|
|
131 |
} |
|
132 |
|
|
133 |
// ISurface Interface |
|
134 |
|
|
135 |
/** |
|
136 |
* |
|
137 |
*/ |
|
138 |
|
|
139 |
public double get_Area()throws OGRException{ |
|
140 |
return 0; |
|
141 |
} |
|
142 |
|
|
143 |
/** |
|
144 |
* |
|
145 |
*/ |
|
146 |
|
|
147 |
public int centroid( OGRPoint poPoint )throws OGRException{ |
|
148 |
return 0; |
|
149 |
} |
|
150 |
|
|
151 |
/** |
|
152 |
* |
|
153 |
*/ |
|
154 |
|
|
155 |
public int pointOnSurface( OGRPoint poPoint )throws OGRException{ |
|
156 |
return 0; |
|
157 |
} |
|
158 |
|
|
159 |
// IWks Interface |
|
160 |
|
|
161 |
/** |
|
162 |
* |
|
163 |
*/ |
|
164 |
|
|
165 |
public int wkbSize()throws OGRException{ |
|
166 |
return 0; |
|
167 |
} |
|
168 |
|
|
169 |
/** |
|
170 |
* |
|
171 |
*/ |
|
172 |
|
|
173 |
public void importFromWkb( String wkt, int i )throws OGRException{//Excepciones |
|
174 |
|
|
175 |
} |
|
176 |
|
|
177 |
/** |
|
178 |
* |
|
179 |
*/ |
|
180 |
|
|
181 |
public void exportToWkb( boolean wktborder, String wkt )throws OGRException{//Excepciones. 1 param=OGRwkbByteOrder |
|
182 |
|
|
183 |
} |
|
184 |
|
|
185 |
/** |
|
186 |
* |
|
187 |
*/ |
|
188 |
|
|
189 |
public void importFromWkt( String[] wkt )throws OGRException{//Excepciones |
|
190 |
|
|
191 |
} |
|
192 |
|
|
193 |
/** |
|
194 |
* |
|
195 |
*/ |
|
196 |
|
|
197 |
public void exportToWkt( String[] ppszDstText )throws OGRException{//Excepciones |
|
198 |
|
|
199 |
} |
|
200 |
|
|
201 |
// IGeometry |
|
202 |
|
|
203 |
/** |
|
204 |
* |
|
205 |
*/ |
|
206 |
|
|
207 |
public int getDimension()throws OGRException{ |
|
208 |
return 0; |
|
209 |
} |
|
210 |
|
|
211 |
/** |
|
212 |
* |
|
213 |
*/ |
|
214 |
|
|
215 |
public int getCoordinateDimension()throws OGRException{ |
|
216 |
return 0; |
|
217 |
} |
|
218 |
|
|
219 |
/** |
|
220 |
* |
|
221 |
*/ |
|
222 |
|
|
223 |
public void getEnvelope( OGREnvelope psEnvelope )throws OGRException{ |
|
224 |
|
|
225 |
} |
|
226 |
|
|
227 |
// ISpatialRelation |
|
228 |
|
|
229 |
/** |
|
230 |
* |
|
231 |
*/ |
|
232 |
|
|
233 |
public int equal( OGRGeometry geom )throws OGRException{//return OGRBoolean |
|
234 |
return 0; |
|
235 |
} |
|
236 |
|
|
237 |
// Non standard |
|
238 |
|
|
239 |
/** |
|
240 |
* |
|
241 |
*/ |
|
242 |
|
|
243 |
public void addRing( OGRLinearRing linearring )throws OGRException{ |
|
244 |
|
|
245 |
} |
|
246 |
|
|
247 |
/** |
|
248 |
* |
|
249 |
*/ |
|
250 |
|
|
251 |
public void addRingDirectly( OGRLinearRing linearring )throws OGRException{ |
|
252 |
|
|
253 |
} |
|
254 |
|
|
255 |
/** |
|
256 |
* |
|
257 |
*/ |
|
258 |
|
|
259 |
public OGRLinearRing getExteriorRing()throws OGRException{ |
|
260 |
return null; |
|
261 |
} |
|
262 |
|
|
263 |
/** |
|
264 |
* |
|
265 |
*/ |
|
266 |
|
|
267 |
public int getNumInteriorRings()throws OGRException{ |
|
268 |
return 0; |
|
269 |
} |
|
270 |
|
|
271 |
/** |
|
272 |
* |
|
273 |
*/ |
|
274 |
|
|
275 |
public OGRLinearRing getInteriorRing( int i )throws OGRException{ |
|
276 |
return null; |
|
277 |
} |
|
278 |
|
|
279 |
/** |
|
280 |
* |
|
281 |
*/ |
|
282 |
|
|
283 |
public void closeRings()throws OGRException{ |
|
284 |
|
|
285 |
} |
|
286 |
|
|
287 |
} |
|
288 |
|
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRMultiLineString.java | ||
---|---|---|
38 | 38 |
public class OGRMultiLineString extends JNIBase{ |
39 | 39 |
|
40 | 40 |
private native void FreeOGRMultiLineStringNat(long cPtr); |
41 |
private native String getGeometryTypeNat(long cPtr);//return OGRwkbGeometryType |
|
42 |
private native OGRGeometry cloneNat(long cPtr); |
|
43 |
private native int importFromWktNat(long cPtr, String[] wkt );//Excepciones |
|
44 |
private native int exportToWktNat(long cPtr, String[] wkt );//Excepciones |
|
45 |
private native int addGeometryDirectlyNat(long cPtr, OGRGeometry geom );//Excepciones |
|
41 | 46 |
|
47 |
|
|
42 | 48 |
/** |
43 | 49 |
* Constructor |
44 | 50 |
* @param cPtr direcci?n de memoria al objeto OGRMultiLineString de C. |
... | ... | |
57 | 63 |
FreeOGRMultiLineStringNat(cPtr); |
58 | 64 |
} |
59 | 65 |
|
66 |
// Non standard (OGRGeometry). |
|
67 |
|
|
60 | 68 |
/** |
61 | 69 |
* |
62 | 70 |
*/ |
63 | 71 |
|
72 |
public String getGeometryName()throws OGRException{ |
|
73 |
return null; |
|
74 |
} |
|
75 |
|
|
76 |
/** |
|
77 |
* |
|
78 |
*/ |
|
79 |
|
|
80 |
public String getGeometryType()throws OGRException{ |
|
81 |
return null; |
|
82 |
} |
|
83 |
|
|
84 |
/** |
|
85 |
* |
|
86 |
*/ |
|
87 |
|
|
88 |
public OGRGeometry cloneMultiPolygon()throws OGRException{ |
|
89 |
return null; |
|
90 |
} |
|
91 |
|
|
92 |
/** |
|
93 |
* |
|
94 |
*/ |
|
95 |
|
|
96 |
public void importFromWkt( String[] wkt )throws OGRException{//Excepciones |
|
97 |
|
|
98 |
} |
|
99 |
|
|
100 |
/** |
|
101 |
* |
|
102 |
*/ |
|
103 |
|
|
104 |
public void exportToWkt( String[] wkt )throws OGRException{//Excepciones |
|
105 |
|
|
106 |
} |
|
107 |
|
|
108 |
// Non standard |
|
109 |
|
|
110 |
/** |
|
111 |
* |
|
112 |
*/ |
|
113 |
|
|
114 |
public void addGeometryDirectly( OGRGeometry geom )throws OGRException{//Excepciones |
|
115 |
|
|
116 |
} |
|
117 |
|
|
118 |
|
|
64 | 119 |
} |
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRLinearRing.java | ||
---|---|---|
38 | 38 |
public class OGRLinearRing extends JNIBase{ |
39 | 39 |
|
40 | 40 |
private native void FreeOGRLinearRingNat(long cPtr); |
41 |
private native String getGeometryNameNat(long cPtr); |
|
42 |
private native OGRGeometry cloneLinearRingNat(long cPtr); |
|
43 |
private native void closeRingsNat(long cPtr); |
|
44 |
private native double get_AreaNat(long cPtr); |
|
45 |
private native int importFromWkbNat( long cPtr, String wkt, int i ); //return OGRErr |
|
46 |
private native int exportToWkbNat( long cPtr, boolean wktborder, String wkt ); //return OGRErr. boolean=OGRwkbByteOrder |
|
47 |
|
|
41 | 48 |
|
42 | 49 |
/** |
43 | 50 |
* Constructor |
... | ... | |
61 | 68 |
* |
62 | 69 |
*/ |
63 | 70 |
|
71 |
public String getGeometryName()throws OGRException{ |
|
72 |
return null; |
|
73 |
} |
|
74 |
|
|
75 |
/** |
|
76 |
* |
|
77 |
*/ |
|
78 |
|
|
79 |
public OGRGeometry cloneLinearRing()throws OGRException{ |
|
80 |
return null; |
|
81 |
} |
|
82 |
|
|
83 |
/** |
|
84 |
* |
|
85 |
*/ |
|
86 |
|
|
87 |
public int isClockwise()throws OGRException{ |
|
88 |
return 0; |
|
89 |
} |
|
90 |
|
|
91 |
/** |
|
92 |
* |
|
93 |
*/ |
|
94 |
|
|
95 |
public void closeRings()throws OGRException{ |
|
96 |
|
|
97 |
} |
|
98 |
|
|
99 |
/** |
|
100 |
* |
|
101 |
*/ |
|
102 |
|
|
103 |
public double get_Area()throws OGRException{ |
|
104 |
return 0; |
|
105 |
} |
|
106 |
|
|
107 |
/** |
|
108 |
* |
|
109 |
*/ |
|
110 |
|
|
111 |
public int WkbSize() throws OGRException{ |
|
112 |
return 0; |
|
113 |
} |
|
114 |
|
|
115 |
/** |
|
116 |
* |
|
117 |
*/ |
|
118 |
|
|
119 |
public void importFromWkb( String wkt, int i )throws OGRException{ |
|
120 |
//return OGRErr |
|
121 |
} |
|
122 |
|
|
123 |
/** |
|
124 |
* |
|
125 |
*/ |
|
126 |
|
|
127 |
public void exportToWkb( boolean wktborder, String wkt )throws OGRException{ //return OGRErr. boolean=OGRwkbByteOrder |
|
128 |
|
|
129 |
} |
|
130 |
|
|
131 |
|
|
64 | 132 |
} |
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRMultiPolygon.java | ||
---|---|---|
38 | 38 |
public class OGRMultiPolygon extends JNIBase{ |
39 | 39 |
|
40 | 40 |
private native void FreeOGRMultiPolygonNat(long cPtr); |
41 |
private native String getGeometryNameNat(long cPtr); |
|
42 |
private native String getGeometryTypeNat(long cPtr);//return OGRwkbGeometryType |
|
43 |
private native OGRGeometry cloneNat(long cPtr); |
|
44 |
private native int importFromWktNat(long cPtr, String[] wkt );//Excepciones |
|
45 |
private native int exportToWktNat(long cPtr, String[] wkt );//Excepciones |
|
46 |
private native int addGeometryDirectlyNat(long cPtr, OGRGeometry geom );//Excepciones |
|
47 |
private native double get_AreaNat(long cPtr); |
|
41 | 48 |
|
42 | 49 |
/** |
43 | 50 |
* Constructor |
... | ... | |
61 | 68 |
* |
62 | 69 |
*/ |
63 | 70 |
|
71 |
//Non standard (OGRGeometry). |
|
72 |
|
|
73 |
/** |
|
74 |
* |
|
75 |
*/ |
|
76 |
|
|
77 |
public String getGeometryName()throws OGRException{ |
|
78 |
return null; |
|
79 |
} |
|
80 |
|
|
81 |
/** |
|
82 |
* |
|
83 |
*/ |
|
84 |
|
|
85 |
public String getGeometryType()throws OGRException{ |
|
86 |
return null; |
|
87 |
} |
|
88 |
|
|
89 |
/** |
|
90 |
* |
|
91 |
*/ |
|
92 |
|
|
93 |
public OGRGeometry cloneMultiPolygon()throws OGRException{ |
|
94 |
return null; |
|
95 |
} |
|
96 |
|
|
97 |
/** |
|
98 |
* |
|
99 |
*/ |
|
100 |
|
|
101 |
public void importFromWkt( String[] wkt )throws OGRException{//Excepciones |
|
102 |
|
|
103 |
} |
|
104 |
|
|
105 |
/** |
|
106 |
* |
|
107 |
*/ |
|
108 |
|
|
109 |
public void exportToWkt( String[] wkt )throws OGRException{//Excepciones |
|
110 |
|
|
111 |
} |
|
112 |
|
|
113 |
// Non standard |
|
114 |
|
|
115 |
/** |
|
116 |
* |
|
117 |
*/ |
|
118 |
|
|
119 |
public void addGeometryDirectly( OGRGeometry geom )throws OGRException{//Excepciones |
|
120 |
|
|
121 |
} |
|
122 |
|
|
123 |
/** |
|
124 |
* |
|
125 |
*/ |
|
126 |
|
|
127 |
public double get_Area()throws OGRException{ |
|
128 |
return 0; |
|
129 |
} |
|
130 |
|
|
64 | 131 |
} |
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/JNIBase.java | ||
---|---|---|
77 | 77 |
private native int isEmptyPointNat( long cPtr ); //return OGRBoolean |
78 | 78 |
private native int getCoordinateDimensionPointNat( long cPtr ); |
79 | 79 |
|
80 |
//Line String |
|
81 |
private native int isEmptyLineStringNat( long cPtr ); //return OGRBoolean |
|
82 |
private native int getCoordinateDimensionLineStringNat( long cPtr ); |
|
83 |
private native int getNumPointsNat( long cPtr ); |
|
84 |
|
|
85 |
//Linear Ring |
|
86 |
private native int isClockwiseNat(long cPtr); |
|
87 |
private native int WkbSizeNat(long cPtr); |
|
88 |
|
|
89 |
//Polygon |
|
90 |
private native int getNumInteriorRingsNat( long cPtr ); |
|
91 |
private native int wkbSizePolygonNat( long cPtr ); |
|
92 |
private native int getDimensionPolygonNat( long cPtr ); |
|
93 |
private native int getCoordinateDimensionNat( long cPtr ); |
|
94 |
|
|
95 |
//GeometryCollection |
|
96 |
private native int getDimensionGeometryCollectionNat( long cPtr ); |
|
97 |
private native int getCoordinateDimensionGeometryCollectionNat( long cPtr ); |
|
98 |
|
|
80 | 99 |
/** |
81 | 100 |
* Funci?n que sirve como base para funcionalidades de ogr que admiten como par?metro un long y devuelven un entero. |
82 | 101 |
* |
... | ... | |
120 | 139 |
case 24: res = wkbSizeNat(cPtr );break; |
121 | 140 |
case 25: res = isEmptyPointNat( cPtr );break; //return OGRBoolean |
122 | 141 |
case 26: res = getCoordinateDimensionPointNat( cPtr );break; |
142 |
case 27: res = getNumPointsNat( cPtr );break; |
|
143 |
case 28: res = isEmptyLineStringNat( cPtr );break; //return OGRBoolean |
|
144 |
case 29: res = getCoordinateDimensionLineStringNat( cPtr );break; |
|
145 |
case 30: res = isClockwiseNat(cPtr);break; |
|
146 |
case 31: res = WkbSizeNat(cPtr);break; |
|
147 |
case 32: res = getNumInteriorRingsNat( cPtr );break; |
|
148 |
case 33: res = wkbSizeNat( cPtr );break; |
|
149 |
case 34: res = getDimensionNat( cPtr );break; |
|
150 |
case 35: res = getCoordinateDimensionNat( cPtr );break; |
|
123 | 151 |
} |
124 | 152 |
|
125 | 153 |
if(res<0) |
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRLineString.java | ||
---|---|---|
38 | 38 |
public class OGRLineString extends JNIBase{ |
39 | 39 |
|
40 | 40 |
private native void FreeOGRLineStringNat(long cPtr); |
41 |
private native void emptyNat( long cPtr ); |
|
42 |
private native long cloneLineStringNat( long cPtr ); |
|
43 |
private native void getEnvelopeNat( long cPtr, OGREnvelope psEnvelope ); |
|
44 |
private native int importFromWkbNat( long cPtr, String wkt, int i );//Excepciones |
|
45 |
private native int exportToWkbNat( long cPtr, boolean ogrwkbByteOrder , String wkt );//Excepciones |
|
46 |
private native int importFromWktNat( long cPtr, String[] ppszInput );//Excepciones |
|
47 |
private native int exportToWktNat( long cPtr, String[] ppszDstText );//Excepciones |
|
48 |
private native double getXNat( long cPtr ); |
|
49 |
private native double getYNat( long cPtr ); |
|
50 |
private native double getZNat( long cPtr ); |
|
51 |
private native int equalNat( long cPtr, OGRGeometry geom );//return OGRBoolean |
|
52 |
private native String getGeometryNameNat( long cPtr ); |
|
53 |
private native int getGeometryTypeNat( long cPtr );//return OGRwkbGeometryType |
|
54 |
private native int transformNat( long cPtr, OGRCoordinateTransformation poCT ); |
|
55 |
private native void flattenTo2DNat( long cPtr ); |
|
56 |
private native double get_LengthNat( long cPtr ); |
|
57 |
private native void startPointNat( long cPtr, OGRPoint point); |
|
58 |
private native void endPointNat( long cPtr, OGRPoint point); |
|
59 |
private native void valueNat( long cPtr, double v, OGRPoint point ); |
|
60 |
private native void getPointNat( long cPtr, int i, OGRPoint point ); |
|
61 |
private native void setNumPointsNat( long cPtr, int npoints); |
|
62 |
private native void setPointNat( long cPtr, int i, OGRPoint point ); |
|
63 |
private native void setPointNat( long cPtr, int i, double x, double y, double z ); |
|
64 |
private native void setPointsNat( long cPtr, int i, double padfX, double padfY, |
|
65 |
double padfZ ); |
|
66 |
private native void addPointNat( long cPtr, OGRPoint point ); |
|
67 |
private native void addPointNat( long cPtr, double x, double y, double z ); |
|
41 | 68 |
|
42 | 69 |
/** |
43 | 70 |
* Constructor |
... | ... | |
56 | 83 |
if(cPtr > 0) |
57 | 84 |
FreeOGRLineStringNat(cPtr); |
58 | 85 |
} |
59 |
|
|
86 |
|
|
87 |
|
|
88 |
// IWks Interface |
|
89 |
|
|
60 | 90 |
/** |
61 | 91 |
* |
62 | 92 |
*/ |
63 | 93 |
|
64 |
} |
|
94 |
public int wkbSize()throws OGRException{ |
|
95 |
return 0; |
|
96 |
} |
|
97 |
|
|
98 |
/** |
|
99 |
* |
|
100 |
*/ |
|
101 |
|
|
102 |
public void importFromWkb( String wkt, int i )throws OGRException{//Excepciones |
|
103 |
|
|
104 |
} |
|
105 |
|
|
106 |
/** |
|
107 |
* |
|
108 |
*/ |
|
109 |
|
|
110 |
public void exportToWkb( boolean ogrwkbByteOrder , String wkt )throws OGRException{//Excepciones |
|
111 |
|
|
112 |
} |
|
113 |
|
|
114 |
/** |
|
115 |
* |
|
116 |
*/ |
|
117 |
|
|
118 |
public void importFromWkt( String[] ppszInput )throws OGRException{//Excepciones |
|
119 |
|
|
120 |
} |
|
121 |
|
|
122 |
/** |
|
123 |
* |
|
124 |
*/ |
|
125 |
|
|
126 |
public void exportToWkt( String[] ppszDstText )throws OGRException{//Excepciones |
|
127 |
|
|
128 |
} |
|
129 |
|
|
130 |
|
|
131 |
// IGeometry |
|
132 |
|
|
133 |
/** |
|
134 |
* |
|
135 |
*/ |
|
136 |
|
|
137 |
public int getDimension()throws OGRException{ |
|
138 |
return 0; |
|
139 |
} |
|
140 |
|
|
141 |
/** |
|
142 |
* |
|
143 |
*/ |
|
144 |
|
|
145 |
public int getCoordinateDimension()throws OGRException{ |
|
146 |
return 0; |
|
147 |
} |
|
148 |
|
|
149 |
/** |
|
150 |
* |
|
151 |
*/ |
|
152 |
|
|
153 |
public void empty()throws OGRException{ |
|
154 |
|
|
155 |
} |
|
156 |
|
|
157 |
/** |
|
158 |
* |
|
159 |
*/ |
|
160 |
|
|
161 |
public OGRGeometry cloneLineString()throws OGRException{ |
|
162 |
return null; |
|
163 |
} |
|
164 |
|
|
165 |
/** |
|
166 |
* |
|
167 |
*/ |
|
168 |
|
|
169 |
public void getEnvelope( OGREnvelope psEnvelope )throws OGRException{ |
|
170 |
|
|
171 |
} |
|
172 |
|
|
173 |
|
|
174 |
// IPoint |
|
175 |
|
|
176 |
/** |
|
177 |
* |
|
178 |
*/ |
|
179 |
|
|
180 |
public double getX()throws OGRException{ |
|
181 |
return 0; |
|
182 |
} |
|
183 |
|
|
184 |
/** |
|
185 |
* |
|
186 |
*/ |
|
187 |
|
|
188 |
public double getY()throws OGRException{ |
|
189 |
return 0; |
|
190 |
} |
|
191 |
|
|
192 |
/** |
|
193 |
* |
|
194 |
*/ |
|
195 |
|
|
196 |
public double getZ()throws OGRException{ |
|
197 |
return 0; |
|
198 |
} |
|
199 |
|
|
200 |
// Non standard |
|
201 |
|
|
202 |
/** |
|
203 |
* |
|
204 |
*/ |
|
205 |
|
|
206 |
public void setX( double xIn )throws OGRException{ |
|
207 |
|
|
208 |
} |
|
209 |
|
|
210 |
/** |
|
211 |
* |
|
212 |
*/ |
|
213 |
|
|
214 |
public void setY( double yIn )throws OGRException{ |
|
215 |
|
|
216 |
} |
|
217 |
|
|
218 |
/** |
|
219 |
* |
|
220 |
*/ |
|
221 |
|
|
222 |
public void setZ( double zIn )throws OGRException{ |
|
223 |
|
|
224 |
} |
|
225 |
|
|
226 |
|
|
227 |
// Non standard from OGRGeometry |
|
228 |
|
|
229 |
/** |
|
230 |
* |
|
231 |
*/ |
|
232 |
|
|
233 |
public String getGeometryName()throws OGRException{ |
|
234 |
return null; |
|
235 |
} |
|
236 |
|
|
237 |
/** |
|
238 |
* |
|
239 |
*/ |
|
240 |
|
|
241 |
public int getGeometryType()throws OGRException{ //return OGRwkbGeometryType |
|
242 |
return 0; |
|
243 |
} |
|
244 |
|
|
245 |
/** |
|
246 |
* |
|
247 |
*/ |
|
248 |
|
|
249 |
public void transform( OGRCoordinateTransformation poCT )throws OGRException{//Excepciones |
|
250 |
|
|
251 |
} |
|
252 |
|
|
253 |
/** |
|
254 |
* |
|
255 |
*/ |
|
256 |
|
|
257 |
public void flattenTo2D()throws OGRException{ |
|
258 |
|
|
259 |
} |
|
260 |
|
|
261 |
|
|
262 |
|
|
263 |
|
|
264 |
// ICurve methods |
|
265 |
public double get_Length()throws OGRException{ |
|
266 |
return 0; |
|
267 |
} |
|
268 |
|
|
269 |
public void startPoint(OGRPoint point)throws OGRException{ |
|
270 |
|
|
271 |
} |
|
272 |
public void endPoint(OGRPoint point)throws OGRException{ |
|
273 |
|
|
274 |
|
|
275 |
} |
|
276 |
|
|
277 |
public void value( double v, OGRPoint point )throws OGRException{ |
|
278 |
|
|
279 |
} |
|
280 |
|
|
281 |
// ILineString methods |
|
282 |
public int getNumPoints()throws OGRException{ |
|
283 |
return 0; |
|
284 |
} |
|
285 |
|
|
286 |
public void getPoint( int i, OGRPoint point )throws OGRException{ |
|
287 |
|
|
288 |
} |
|
289 |
|
|
290 |
|
|
291 |
|
|
292 |
// ISpatialRelation |
|
293 |
/** |
|
294 |
* |
|
295 |
*/ |
|
296 |
|
|
297 |
public int equal( OGRGeometry geom )throws OGRException{ |
|
298 |
return 0; |
|
299 |
} |
|
300 |
|
|
301 |
// non standard. |
|
302 |
|
|
303 |
/** |
|
304 |
* |
|
305 |
*/ |
|
306 |
|
|
307 |
public void setNumPoints( int npoints)throws OGRException{ |
|
308 |
|
|
309 |
} |
|
310 |
|
|
311 |
/** |
|
312 |
* |
|
313 |
*/ |
|
314 |
|
|
315 |
public void setPoint( int i, OGRPoint point )throws OGRException{ |
|
316 |
|
|
317 |
} |
|
318 |
|
|
319 |
/** |
|
320 |
* |
|
321 |
*/ |
|
322 |
|
|
323 |
public void setPoint( int i, double x, double y, double z )throws OGRException{ |
|
324 |
|
|
325 |
} |
|
326 |
|
|
327 |
/** |
|
328 |
* |
|
329 |
*/ |
|
330 |
|
|
331 |
public void setPoints( int i, double padfX, double padfY, |
|
332 |
double padfZ )throws OGRException{ |
|
333 |
|
|
334 |
} |
|
335 |
|
|
336 |
/** |
|
337 |
* |
|
338 |
*/ |
|
339 |
|
|
340 |
public void addPoint( OGRPoint point )throws OGRException{ |
|
341 |
|
|
342 |
} |
|
343 |
|
|
344 |
/** |
|
345 |
* |
|
346 |
*/ |
|
347 |
|
|
348 |
public void addPoint( double x, double y, double z )throws OGRException{ |
|
349 |
|
|
350 |
} |
|
351 |
} |
|
352 |
|
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRGeometryFactory.java | ||
---|---|---|
37 | 37 |
|
38 | 38 |
public class OGRGeometryFactory extends JNIBase{ |
39 | 39 |
|
40 |
private native static int createFromWkbNat( String wkt, OGRSpatialReference spatialref, |
|
41 |
OGRGeometry geom, int i );//Excepciones |
|
42 |
private native static int createFromWktNat( String[] wkt, OGRSpatialReference spatialref, |
|
43 |
OGRGeometry geom );//Excepciones |
|
44 |
private native static OGRGeometry createFromGMLNat( String gml ); |
|
45 |
//private native static OGRGeometry createFromGEOSNat( geos.Geometry * ); |
|
46 |
private native static void destroyGeometryNat( OGRGeometry geom ); |
|
47 |
private native static OGRGeometry createGeometryNat( String wkb );//param 1=OGRwkbGeometryType |
|
48 |
private native static OGRGeometry forceToPolygonNat( OGRGeometry geom ); |
|
49 |
private native static OGRGeometry forceToMultiPolygonNat( OGRGeometry geom ); |
|
50 |
private native static OGRGeometry forceToMultiPointNat( OGRGeometry geom ); |
|
51 |
private native static OGRGeometry forceToMultiLineStringNat( OGRGeometry geom ); |
|
52 |
//private native static geos::GeometryFactory *getGEOSGeometryFactoryNat(); |
|
53 |
|
|
54 |
/** |
|
55 |
* |
|
56 |
*/ |
|
57 |
|
|
58 |
public static void createFromWkb( String wkt, OGRSpatialReference spatialref, |
|
59 |
OGRGeometry geom, int i )throws OGRException{//Excepciones |
|
60 |
|
|
61 |
} |
|
62 |
|
|
63 |
/** |
|
64 |
* |
|
65 |
*/ |
|
66 |
|
|
67 |
public static void createFromWkt( String[] wkt, OGRSpatialReference spatialref, |
|
68 |
OGRGeometry geom )throws OGRException{//Excepciones |
|
69 |
|
|
70 |
} |
|
71 |
|
|
72 |
/** |
|
73 |
* |
|
74 |
*/ |
|
75 |
|
|
76 |
public static OGRGeometry createFromGML( String gml )throws OGRException{ |
|
77 |
return null; |
|
78 |
} |
|
79 |
//public static OGRGeometry createFromGEOS( geos.Geometry * )throws OGRException{ |
|
80 |
|
|
81 |
/** |
|
82 |
* |
|
83 |
*/ |
|
84 |
|
|
85 |
public static void destroyGeometry( OGRGeometry geom )throws OGRException{ |
|
86 |
|
|
87 |
} |
|
88 |
|
|
89 |
/** |
|
90 |
* |
|
91 |
*/ |
|
92 |
|
|
93 |
public static OGRGeometry createGeometry( String wkb )throws OGRException{//param 1=OGRwkbGeometryType |
|
94 |
return null; |
|
95 |
} |
|
96 |
|
|
97 |
/** |
|
98 |
* |
|
99 |
*/ |
|
100 |
|
|
101 |
public static OGRGeometry forceToPolygon( OGRGeometry geom )throws OGRException{ |
|
102 |
return null; |
|
103 |
} |
|
104 |
|
|
105 |
/** |
|
106 |
* |
|
107 |
*/ |
|
108 |
|
|
109 |
public static OGRGeometry forceToMultiPolygon( OGRGeometry geom )throws OGRException{ |
|
110 |
return null; |
|
111 |
} |
|
112 |
|
|
113 |
/** |
|
114 |
* |
|
115 |
*/ |
|
116 |
|
|
117 |
public static OGRGeometry forceToMultiPoint( OGRGeometry geom )throws OGRException{ |
|
118 |
return null; |
|
119 |
} |
|
120 |
|
|
121 |
/** |
|
122 |
* |
|
123 |
*/ |
|
124 |
|
|
125 |
public static OGRGeometry forceToMultiLineString( OGRGeometry geom )throws OGRException{ |
|
126 |
return null; |
|
127 |
} |
|
128 |
//public static geos::GeometryFactory *getGEOSGeometryFactory()throws OGRException{ |
|
129 |
|
|
40 | 130 |
} |
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRPoint.java | ||
---|---|---|
41 | 41 |
private native void emptyNat( long cPtr ); |
42 | 42 |
private native long cloneNat( long cPtr ); |
43 | 43 |
private native void getEnvelopeNat( long cPtr, OGREnvelope psEnvelope ); |
44 |
private native void importFromWkbNat( long cPtr, String wkt, int i );//Excepciones
|
|
45 |
private native void exportToWkbNat( long cPtr, boolean ogrwkbByteOrder , String wkt );//Excepciones
|
|
46 |
private native void importFromWktNat( long cPtr, String[] ppszInput );//Excepciones
|
|
47 |
private native void exportToWktNat( long cPtr, String[] ppszDstText );//Excepciones
|
|
44 |
private native int importFromWkbNat( long cPtr, String wkt, int i );//Excepciones
|
|
45 |
private native int exportToWkbNat( long cPtr, boolean ogrwkbByteOrder , String wkt );//Excepciones
|
|
46 |
private native int importFromWktNat( long cPtr, String[] ppszInput );//Excepciones
|
|
47 |
private native int exportToWktNat( long cPtr, String[] ppszDstText );//Excepciones
|
|
48 | 48 |
private native double getXNat( long cPtr ); |
49 | 49 |
private native double getYNat( long cPtr ); |
50 | 50 |
private native double getZNat( long cPtr ); |
Also available in: Unified diff