Revision 996

View differences:

trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRFieldDefn.java
40 40
	private native int getTypeNat(long cPtr);
41 41
	private native String getNameRefNat(long cPtr);
42 42
	private native String getFieldTypeNameNat(long cPtr, int tipo);
43
	
44
	private native void setName( long cPtr,  String name );
45
	private native void setType( long cPtr,  OGRFieldType eTypeIn );
46
	private native int getJustify( long cPtr ); //return OGRJustification
47
	private native void setJustify( long cPtr,  String justification );
48
	private native void setWidth( long cPtr,  int nWidthIn );
49
	private native void setPrecision( long cPtr,  int nPrecisionIn );
50
	private native void set( long cPtr,  String s, OGRFieldType ftipe, int i, int j,String justification );
51
	private native void setDefault( long cPtr,  OGRField field );
52
	private native OGRField getDefaultRef( long cPtr );
43 53

  
44 54
	
45 55
	/**
......
134 144
		if(cPtr > 0)
135 145
			FreeOGRFieldDefnNat(cPtr);
136 146
	}
147
	
148
	
149
    /**
150
     * 
151
     */
152
	
153
	public void setName( String name )throws OGRException{
154
		
155
	}
156
	
157
	/**
158
     * 
159
     */
160
	
161
	public void setType( OGRFieldType eTypeIn )throws OGRException{
162
		
163
	}
164
	
165
	/**
166
     * 
167
     */
168
	
169
	public int getJustify()throws OGRException{	//return justification
170
		return 0;
171
	}
172
	
173
	/**
174
     * 
175
     */
176
	
177
	public void setJustify( String justification )throws OGRException{
178
		
179
	}
180
	
181
	/**
182
     * 
183
     */
184
	
185
	public void setWidth( int nWidthIn )throws OGRException{
186
		
187
	}
188
	
189
	/**
190
     * 
191
     */
192
	
193
	public void setPrecision( int nPrecisionIn )throws OGRException{
194
		
195
	}
196
	
197
	/**
198
     * 
199
     */
200
	
201
	public void set( String s, OGRFieldType ftipe, int i, int j,String justification )throws OGRException{
202
		
203
	}
204
	
205
	/**
206
     * 
207
     */
208
	
209
	public void setDefault( OGRField field )throws OGRException{
210
		
211
	}
212
	
213
	/**
214
     * 
215
     */
216
	
217
	public OGRField getDefaultRef()throws OGRException{
218
		return null;
219
	}
220
	
221
	
222

  
223

  
137 224
}
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRField.java
1
/**********************************************************************
2
 * $Id$
3
 *
4
 * Name:     OGRField.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
 * 
32
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
33
 * @version 0.0
34
 * @link http://www.gvsig.gva.es
35
 */
36

  
37
public class OGRField{
38
	
39

  
40
}
0 41

  
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRSFDriver.java
37 37
public class OGRSFDriver extends JNIBase{
38 38
	
39 39
	public native String getNameNat(long cPtr);
40
	private native OGRDataSource openNat( long cPtr, String pszName, boolean bUpdate );
41
	private native int testCapabilityNat( long cPtr,String od );
42
	private native OGRDataSource createDataSourceNat( long cPtr, String pszName, String[] par );                                             
43
    private native int deleteDataSourceNat( long cPtr,String pszName );//Excepciones
44
    private native OGRDataSource copyDataSourceNat( long cPtr, 
45
    											OGRDataSource poSrcDS,
46
												String pszNewName,
47
												String[] papszOptions);
40 48
	
41 49
	public OGRSFDriver(long cPtr){
42 50
		this.cPtr=cPtr;
......
60 68
		return name;
61 69
	}
62 70
	
63
	//public OGRDataSource createDataSource( String pszName,
64
      //      char ** = NULL );
71
	
72
	/**
73
	 * 
74
	 */
75
	
76
	public OGRDataSource open( String pszName, boolean bUpdate )throws OGRException{
77
		return null;
78
	}
79

  
80
	/**
81
	 * 
82
	 */
83
	
84
	public int testCapability( String od )throws OGRException{
85
		return 0;
86
	}
87

  
88
	/**
89
	 * 
90
	 */
91
	
92
	public OGRDataSource createDataSource( String pszName,	String[] par )throws OGRException{ 
93
		return null;
94
	}
95

  
96
	/**
97
	 * 
98
	 */
99
	
100
    public void deleteDataSource( String pszName )throws OGRException{//Excepciones
101
   
102
    }
103

  
104
	/**
105
	 * 
106
	 */
107
	
108
    public OGRDataSource copyDataSource( OGRDataSource poSrcDS,
109
	                                           String pszNewName,
110
	                                           String[] papszOptions)throws OGRException{
111
    	return null;
112
    }
113
    
114

  
65 115
}
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRFeatureDefn.java
42 42
	private native void FreeOGRFeatureDefnNat(long cPtr);
43 43
	private native long getFieldDefnNat(long cPtr, int i);
44 44
	
45
	private native int getFieldIndexNat( long cPtr, String indice );
46
	private native void addFieldDefnNat( long cPtr, OGRFieldDefn fd );
47
	private native void setGeomTypeNat( long cPtr, String gtype ); //OGRwkbGeometryType OGRFeatureDefn
48
	private native OGRFeatureDefn cloneFeatureDefnNat(long cPtr );
49
	private native static OGRFeatureDefn createFeatureDefnNat( long cPtr, String pszName);
50
	private native static void destroyFeatureDefnNat( long cPtr, OGRFeatureDefn fd );
51
	
52
	
45 53
	/**
46 54
	 * Constructor
47 55
	 * @param cPtr	direcci?n de memoria al objeto OGRFeatureDefn de C. 
......
149 157
		if(cPtr > 0)
150 158
			FreeOGRFeatureDefnNat(cPtr);
151 159
	}
160
	
161
	/**
162
	 * 
163
	 */
164
	
165
	public int getFieldIndex( String indice )throws OGRException{
166
		return 0;
167
	}
168
	
169
	/**
170
	 * 
171
	 */
172
	
173
	public void addFieldDefn( OGRFieldDefn fd )throws OGRException{
174
	}
175
	
176
	/**
177
	 * 
178
	 */
179
		
180
	public void setGeomType( String gtype )throws OGRException{ //OGRwkbGeometryType OGRFeatureDefn
181
	}
182

  
183
	/**
184
	 * 
185
	 */
186
		
187
	public OGRFeatureDefn cloneFeatureDefn()throws OGRException{
188
		return null;
189
	}
190

  
191
	/**
192
	 * 
193
	 */
194
		
195
	public int reference()throws OGRException{//*
196
		return 0;
197
	}
198

  
199
	/**
200
	 * 
201
	 */
202
		
203
	public int dereference()throws OGRException{//*
204
		return 0;
205
	}
206

  
207
	/**
208
	 * 
209
	 */
210
		
211
	public int getReferenceCount()throws OGRException{
212
		return 0;
213
	}
214
	
215
	/**
216
	 * 
217
	 */
218

  
219
	public static OGRFeatureDefn createFeatureDefn( String pszName)throws OGRException{
220
		return null;
221
	}
222

  
223
	/**
224
	 * 
225
	 */
226

  
227
	
228
	public static void destroyFeatureDefn( OGRFeatureDefn fd )throws OGRException{
229
	}
230

  
231

  
152 232
}
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRDataSource.java
41 41
	private native long getLayerNat(long cPtr, int i);
42 42
	private native void FreeOGRDataSource(long cPtr);
43 43
	
44
	private native OGRLayer getLayerByNameNat(long cPtr, String name);
45
	private native int deleteLayerNat(long cPtr, int iLayer); //Excepciones
46
	private native int testCapabilityNat(long cPtr,  String odr );
47
	private native OGRLayer createLayerNat(long cPtr, String pszName,
48
	                                 OGRSpatialReference poSpatialRef,
49
	                                 String eGType, //OGRwkbGeometryType OGRFeatureDefn
50
	                                 String[] papszOptions);
51
	private native OGRLayer copyLayerNat(long cPtr,  OGRLayer poSrcLayer,
52
	                                String pszNewName,
53
	                                String[] papszOptions);
54
	private native OGRStyleTable getStyleTableNat(long cPtr);
55
	private native OGRLayer executeSQLNat(long cPtr,  String pszStatement,
56
	                                OGRGeometry poSpatialFilter,
57
	                                String pszDialect );
58
	private native void releaseResultSetNat(long cPtr,  OGRLayer poResultsSet );
59
	private native int syncToDiskNat(long cPtr); //Excepciones
60

  
61
	
44 62
	/**
45 63
	 * Constructor
46 64
	 * @param cPtr	direcci?n de memoria al objeto OGRDataSource de C. 
......
105 123
	 * Destructor 
106 124
	 */
107 125
	
108
	 protected void finalize(){
126
	/**
127
	 * 
128
	 */
129
	 
130
	protected void finalize(){
109 131
		if(cPtr > 0)
110 132
			FreeOGRDataSource(cPtr);
111 133
	}
112
}
134
	 
135
	/**
136
	 * 
137
	 */
138
	
139
	public OGRLayer getLayerByName(String name)throws OGRException{
140
    	return null;
141
    }
142
    
143
	/**
144
	 * 
145
	 */
146
	
147
    public void deleteLayer(int iLayer)throws OGRException{ //Excepciones
148
    	return ;
149
    }
150

  
151
    /**
152
	 * 
153
	 */
154
    
155
    public int testCapability( String odr )throws OGRException{
156
    	return 0;
157
    }
158

  
159
    /**
160
	 * 
161
	 */
162
    
163
    public OGRLayer createLayer(String pszName,
164
                                     OGRSpatialReference poSpatialRef,
165
                                     String eGType, //OGRwkbGeometryType OGRFeatureDefn
166
                                     String[] papszOptions)throws OGRException{
167
    	return null;
168
    }
169
    
170
    /**
171
	 * 
172
	 */
173
    
174
    public OGRLayer copyLayer( OGRLayer poSrcLayer,
175
                                    String pszNewName,
176
                                    String[] papszOptions)throws OGRException{
177
    	return null;
178
    }
179
    
180
    /**
181
	 * 
182
	 */
183
    
184
    public OGRStyleTable getStyleTable()throws OGRException{
185
    	return null;
186
    }
187

  
188
    /**
189
	 * 
190
	 */
191
    
192
    public OGRLayer executeSQL( String pszStatement,
193
                                    OGRGeometry poSpatialFilter,
194
                                    String pszDialect )throws OGRException{
195
    	return null;
196
    }
197
    
198
    /**
199
	 * 
200
	 */
201
    
202
    public void releaseResultSet( OGRLayer poResultsSet )throws OGRException{
203
    	
204
    }
205

  
206
    /**
207
	 * 
208
	 */
209
    
210
    public void syncToDisk()throws OGRException{//Excepciones
211
    	return;
212
    }
213

  
214
    /**
215
	 * 
216
	 */
217
    
218
    public int reference()throws OGRException{
219
    	return 0;
220
    }
221
    
222
    /**
223
	 * 
224
	 */
225
    
226
    public int dereference()throws OGRException{
227
    	return 0;
228
    }
229
    
230
    /**
231
	 * 
232
	 */
233
    
234
    public int getRefCount()throws OGRException{
235
    	return 0;
236
    }
237
    
238
    /**
239
	 * 
240
	 */
241
    
242
    public int getSummaryRefCount()throws OGRException{
243
    	return 0;
244
    } 
245
	 
246
	 	 
247
	 
248
}
249

  
250

  
251
	
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRGeometry.java
1
/**********************************************************************
2
 * $Id$
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 es.gva.cit.jogr;
28

  
29

  
30
/** 
31
 * 
32
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
33
 * @version 0.0
34
 * @link http://www.gvsig.gva.es
35
 */
36

  
37
public class OGRGeometry extends JNIBase{
38
	
39

  
40
}
0 41

  
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRFeature.java
38 38
	
39 39
	private native void FreeOGRFeatureNat(long cPtr);
40 40
	private native void dumpReadableNat(long cPtr, String file);
41
	private native OGRFeatureDefn getDefnRefNat(long cPtr);
42
	private native int setGeometryDirectlyNat( long cPtr, OGRGeometry geom );//Excepciones
43
	private native int setGeometryNat( long cPtr, OGRGeometry geom );//Excepciones
44
	private native OGRGeometry getGeometryRefNat(long cPtr);
45
	private native OGRGeometry stealGeometryNat(long cPtr);
46
	private native OGRFeature cloneFeatureNat(long cPtr);//*
47
	private native int equalNat( long cPtr, OGRFeature poFeature );
48
	private native OGRFieldDefn getFieldDefnRefNat(long cPtr, int iField );
49
	private native int getFieldIndexNat( long cPtr, String  pszName);
50
	private native int isFieldSetNat( long cPtr, int iField );
51
	private native void unsetFieldNat( long cPtr, int iField );
52
	private native OGRField getRawFieldRefNat( long cPtr, int i );
53
	private native int getFieldAsIntegerNat( long cPtr, int i );
54
	private native double getFieldAsDoubleNat( long cPtr, int i );
55
	private native String getFieldAsStringNat( long cPtr, int i );
56
	private native int getFieldAsIntegerListNat( long cPtr, int i, int pnCount );
57
	private native double  getFieldAsDoubleListNat( long cPtr, int i, int pnCount );
58
	private native String[] getFieldAsStringListNat( long cPtr, int i );
59
	private native int getFieldAsIntegerNat( long cPtr, String pszFName );
60
	private native double getFieldAsDoubleNat( long cPtr, String pszFName );
61
	private native String getFieldAsStringNat( long cPtr, String pszFName );
62
	private native int getFieldAsIntegerListNat( long cPtr, String pszFName, int pnCount );
63
	private native double getFieldAsDoubleListNat( long cPtr, String pszFName, int pnCount );
64
	private native String[] getFieldAsStringListNat( long cPtr, String pszFName );
65
	private native void setFieldNat( long cPtr, int i, int nValue );
66
	private native void setFieldNat( long cPtr, int i, double dfValue );
67
	private native void setFieldNat( long cPtr, int i, String pszValue );
68
	private native void setFieldNat( long cPtr, int i, int nCount, int panValues );
69
	private native void setFieldNat( long cPtr, int i, int nCount, double padfValues );
70
	private native void setFieldNat( long cPtr, int i, String[] papszValues );
71
	private native void setFieldNat( long cPtr, int i, OGRField puValue );
72
	private native void setFieldNat( long cPtr, String pszFName, int nValue );
73
	private native void setFieldNat( long cPtr, String pszFName, double dfValue );
74
	private native void setFieldNat( long cPtr, String pszFName, String pszValue);
75
	private native void setFieldNat( long cPtr, String pszFName, int nCount, int panValues );
76
	private native void setFieldNat( long cPtr, String pszFName, int nCount, double padfValues );
77
	private native void setFieldNat( long cPtr, String pszFName, String[] papszValues );                    
78
	private native void setFieldNat( long cPtr, String pszFName, OGRField puValue );
79
	private native long getFIDNat(long cPtr);
80
	private native int setFIDNat( long cPtr, long nFID );//Excepciones
81
	private native int setFromNat( long cPtr, OGRFeature feature, int b);//Excepciones
82
	private native int remapFieldsNat( long cPtr, OGRFeatureDefn poNewDefn, int panRemapSource );//Excepciones
83
	private native String getStyleStringNat(long cPtr);
84
	private native void setStyleStringNat(long cPtr, String style);
85
	private native void setStyleTableNat(long cPtr, OGRStyleTable poStyleTable);
86
	private native static OGRFeature createFeatureNat( long cPtr, OGRFeatureDefn feature );
87
	private native static void destroyFeatureNat( long cPtr, OGRFeature feature );
88
	
41 89
	static int h=0;
42 90
	
43 91
	/**
......
69 117
		if(cPtr > 0)
70 118
			FreeOGRFeatureNat(cPtr);
71 119
	}
120
	
121
	
122
	/**
123
	 * 
124
	 */
125
	
126
	public OGRFeatureDefn getDefnRef()throws OGRException{
127
		return null;
128
	}
129
	
130
	/**
131
	 * 
132
	 */
133
	
134
	public void setGeometryDirectly( OGRGeometry geom )throws OGRException{//Excepciones
135
		
136
	}
137
	
138
	/**
139
	 * 
140
	 */
141
	
142
	public void setGeometry( OGRGeometry geom )throws OGRException{//Excepciones
143
		
144
	}
145
	
146
	/**
147
	 * 
148
	 */
149
	
150
	public OGRGeometry getGeometryRef()throws OGRException{
151
		return null;
152
	}
153
	
154
	/**
155
	 * 
156
	 */
157
	
158
	public OGRGeometry stealGeometry()throws OGRException{
159
		return null;
160
	}
161
	
162
	/**
163
	 * 
164
	 */
165
	
166
	public OGRFeature cloneFeature()throws OGRException{
167
		return null;
168
	}
169
	
170
	/**
171
	 * 
172
	 */
173
	
174
	public int equal( OGRFeature poFeature )throws OGRException{
175
		return 0;
176
	}
177
	
178
	/**
179
	 * 
180
	 */
181
	
182
	public int getFieldCount()throws OGRException{
183
		return 0;
184
	}
185
	
186
	/**
187
	 * 
188
	 */
189
	
190
	public OGRFieldDefn getFieldDefnRef( int iField )throws OGRException{
191
		return null;
192
	}
193
	
194
	/**
195
	 * 
196
	 */
197
	
198
	public int getFieldIndex( String  pszName)throws OGRException{
199
		return 0;
200
	}
201
	
202
	/**
203
	 * 
204
	 */
205
	
206
	public int isFieldSet( int iField )throws OGRException{
207
		return 0;
208
	}
209
	
210
	/**
211
	 * 
212
	 */
213
	
214
	public void unsetField( int iField )throws OGRException{
215
		
216
	}
217
	
218
	/**
219
	 * 
220
	 */
221
	
222
	public OGRField getRawFieldRef( int i )throws OGRException{
223
		return null;
224
	}
225
	
226
	/**
227
	 * 
228
	 */
229
	
230
	public int getFieldAsInteger( int i )throws OGRException{
231
		return 0;
232
	}
233
	
234
	/**
235
	 * 
236
	 */
237
	
238
	public double getFieldAsDouble( int i )throws OGRException{
239
		return 0;
240
	}
241
	
242
	/**
243
	 * 
244
	 */
245
	
246
	public String getFieldAsString( int i )throws OGRException{
247
		return null;
248
	}
249
	
250
	/**
251
	 * 
252
	 */
253
	
254
	public int getFieldAsIntegerList( int i, int pnCount )throws OGRException{
255
		return 0;
256
	}
257
	
258
	/**
259
	 * 
260
	 */
261
	
262
	public double  getFieldAsDoubleList( int i, int pnCount )throws OGRException{
263
		return 0;
264
	}
265
	
266
	/**
267
	 * 
268
	 */
269
	
270
	public String[] getFieldAsStringList( int i )throws OGRException{
271
		return null;
272
	}
273
	
274
	/**
275
	 * 
276
	 */
277
	
278
	public int getFieldAsInteger( String pszFName )throws OGRException{
279
		return 0;
280
	}
281
	
282
	/**
283
	 * 
284
	 */
285
	
286
	public double getFieldAsDouble( String pszFName )throws OGRException{
287
		return 0;
288
	}
289
	
290
	/**
291
	 * 
292
	 */
293
	
294
	public String getFieldAsString( String pszFName )throws OGRException{
295
		return null;
296
	}
297
	
298
	/**
299
	 * 
300
	 */
301
	
302
	public int getFieldAsIntegerList( String pszFName, int pnCount )throws OGRException{
303
		return 0;
304
	}
305
	
306
	/**
307
	 * 
308
	 */
309
	
310
	public double getFieldAsDoubleList( String pszFName, int pnCount )throws OGRException{
311
		return 0;
312
	}
313
	
314
	/**
315
	 * 
316
	 */
317
	
318
	public String[] getFieldAsStringList( String pszFName )throws OGRException{
319
		return null;
320
	}
321
	
322
	/**
323
	 * 
324
	 */
325
	
326
	public void setField( int i, int nValue )throws OGRException{
327
		
328
	}
329
	
330
	/**
331
	 * 
332
	 */
333
	
334
	public void setField( int i, double dfValue )throws OGRException{
335
		
336
	}
337
	
338
	/**
339
	 * 
340
	 */
341
	
342
	public void setField( int i, String pszValue )throws OGRException{
343
		
344
	}
345
	
346
	/**
347
	 * 
348
	 */
349
	
350
	public void setField( int i, int nCount, int panValues )throws OGRException{
351
		
352
	}
353
	
354
	/**
355
	 * 
356
	 */
357
	
358
	public void setField( int i, int nCount, double padfValues )throws OGRException{
359
		
360
	}
361
	
362
	/**
363
	 * 
364
	 */
365
	
366
	public void setField( int i, String[] papszValues )throws OGRException{
367
		
368
	}
369
	
370
	/**
371
	 * 
372
	 */
373
	
374
	public void setField( int i, OGRField puValue )throws OGRException{
375
		
376
	}
377
	
378
	/**
379
	 * 
380
	 */
381
	
382
	public void setField( String pszFName, int nValue )throws OGRException{
383
		
384
	}
385
	
386
	/**
387
	 * 
388
	 */
389
	
390
	public void setField( String pszFName, double dfValue )throws OGRException{
391
		
392
	}
393
	
394
	/**
395
	 * 
396
	 */
397
	
398
	public void setField( String pszFName, String pszValue)throws OGRException{
399
		
400
	}
401
	
402
	/**
403
	 * 
404
	 */
405
	
406
	public void setField( String pszFName, int nCount, int panValues )throws OGRException{
407
		
408
	}
409
	
410
	/**
411
	 * 
412
	 */
413
	
414
	public void setField( String pszFName, int nCount, double padfValues )throws OGRException{
415
		
416
	}
417
	
418
	/**
419
	 * 
420
	 */
421
	
422
	public void setField( String pszFName, String[] papszValues )throws OGRException{
423
		
424
	}
425
	
426
	/**
427
	 * 
428
	 */
429
	
430
	public void setField( String pszFName, OGRField puValue )throws OGRException{
431
		
432
	}
433
	
434
	/**
435
	 * 
436
	 */
437
	
438
	public long getFID()throws OGRException{
439
		return 0;
440
	}
441
	
442
	/**
443
	 * 
444
	 */
445
	
446
	public void setFID( long nFID )throws OGRException{//Excepciones
447
		
448
	}
449
	
450
	/**
451
	 * 
452
	 */
453
	
454
	public void setFrom( OGRFeature feature, int b)throws OGRException{//Excepciones
455
		
456
	}
457
	
458
	/**
459
	 * 
460
	 */
461
	
462
	public void remapFields( OGRFeatureDefn poNewDefn, int panRemapSource )throws OGRException{//Excepciones
463
		
464
	}
465
	
466
	/**
467
	 * 
468
	 */
469
	
470
	public String getStyleString()throws OGRException{
471
		return null;
472
	}
473
	
474
	/**
475
	 * 
476
	 */
477
	
478
	public void setStyleString(String style)throws OGRException{
479
		
480
	}
481
	
482
	/**
483
	 * 
484
	 */
485
	
486
	public void setStyleTable(OGRStyleTable poStyleTable)throws OGRException{
487
		
488
	}
489
	
490
	/**
491
	 * 
492
	 */
493
	
494
	public static OGRFeature  createFeature( OGRFeatureDefn feature )throws OGRException{
495
		return null;
496
	}
497
	
498
	/**
499
	 * 
500
	 */
501
	
502
	public static void destroyFeature( OGRFeature feature )throws OGRException{
503
		
504
	}
505
	
506
	
72 507
}
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRLayerAttrIndex.java
1
/**********************************************************************
2
 * $Id$
3
 *
4
 * Name:     OGRLayerAttrIndex.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
 * 
32
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
33
 * @version 0.0
34
 * @link http://www.gvsig.gva.es
35
 */
36

  
37
public class OGRLayerAttrIndex extends JNIBase{
38
	
39
}
0 40

  
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/JNIBase.java
47 47
	private native int getWidthNat(long cPtr);
48 48
	private native int getPrecisionNat(long cPtr);
49 49
	
50
	private native int referenceNat(long cPtr);
51
	private native int dereferenceNat(long cPtr);
52
	private native int getRefCountNat(long cPtr);
53
	private native int getSummaryRefCountNat(long cPtr);
50 54
	
55
	private native int referenceFeatureDefnNat(long cPtr);
56
	private native int dereferenceFeatureDefnNat(long cPtr);
57
	private native int getReferenceCountNat(long cPtr);
58
	
59
	private native int getFieldCountFeatureNat(long cPtr);
60
	
61
	private native int syncToDiskNat(long cPtr);//Excepciones
62
	private native int startTransactionNat(long cPtr);//Excepciones
63
	private native int commitTransactionNat(long cPtr);//Excepciones
64
	private native int rollbackTransactionNat(long cPtr);//Excepciones
65
	private native int referenceLayerNat(long cPtr);
66
	private native int dereferenceLayerNat(long cPtr);
67
	private native int getRefCountLayerNat(long cPtr);
68
	
69
	private native int getOpenDSCountNat(long cPtr);
70
	
51 71
	 /**
52 72
	 * Funci?n que sirve como base para funcionalidades de ogr que admiten como par?metro un long y devuelven un entero.
53 73
	 * 
......
70 90
			case 3: res = getFieldCountNat(cPtr);break;
71 91
			case 4: res = getWidthNat(cPtr);break;
72 92
			case 5: res = getPrecisionNat(cPtr);break;
93
			case 6: res = referenceNat(cPtr);break;
94
			case 7: res = dereferenceNat(cPtr);break;
95
			case 8: res = getRefCountNat(cPtr);break;
96
			case 9: res = getSummaryRefCountNat(cPtr);break;
97
			case 10: res = referenceFeatureDefnNat(cPtr);break;
98
			case 11: res = dereferenceFeatureDefnNat(cPtr);break;
99
			case 12: res = getReferenceCountNat(cPtr);break;
100
			case 13: res = getFieldCountFeatureNat(cPtr);break;
101
			case 14: res = syncToDiskNat(cPtr);break;//Excepciones
102
			case 15: res = startTransactionNat( cPtr);break;//Excepciones
103
			case 16: res = commitTransactionNat( cPtr);break;//Excepciones
104
			case 17: res = rollbackTransactionNat( cPtr);break;//Excepciones
105
			case 18: res = referenceLayerNat( cPtr);break;
106
			case 19: res = dereferenceLayerNat( cPtr);break;
107
			case 20: res = getRefCountLayerNat( cPtr);break;
108
			case 21: res = getOpenDSCountNat(cPtr);break;
73 109
		}
74 110
			
75 111
		if(res<0)
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRSFDriverRegistrar.java
38 38
public class OGRSFDriverRegistrar extends JNIBase{
39 39
	
40 40
	private long driver;
41
	public native long openNat(String fte, int bUpdate);
42
	public native long getRegistrarNat();
43
	public native long getDriverNat(long cPtr, int i);
41
	private native long openNat(String fte, int bUpdate);
42
	private native long getRegistrarNat();
43
	private native long getDriverNat(long cPtr, int i);
44 44
	private native void FreeOGRSFDriverRegistrarNat(long cPtr);
45 45
	
46
	private native int releaseDataSource( long cPtr, OGRDataSource ds ); //Excepciones
47
	private native void registerDriver( long cPtr, OGRSFDriver poDriver );
48
	private native OGRSFDriver getDriverByName( long cPtr, String name );
49
	private native OGRDataSource getOpenDS(long cPtr, int i );
50
	
46 51
	/**
47 52
	 * Abre un fichero de im?gen
48 53
	 * @throws OGRException
......
118 123
		if(cPtr > 0)
119 124
			FreeOGRSFDriverRegistrarNat(cPtr);
120 125
	}
126
	
127
	
128
	/**
129
	 * 
130
	 */
131
	
132
	public void releaseDataSource( OGRDataSource ds )throws OGRException{ //Excepciones
133
		
134
	}
135
	
136
	/**
137
	 * 
138
	 */
139
	
140
	public void registerDriver( OGRSFDriver poDriver )throws OGRException{
141
		
142
	}
143
	
144
	/**
145
	 * 
146
	 */
147
	
148
	public OGRSFDriver getDriverByName( String name )throws OGRException{
149
		return null;
150
	}
151
	
152
	/**
153
	 * 
154
	 */
155
	
156
	public int getOpenDSCount()throws OGRException{
157
		return 0;
158
	}
159
	
160
	/**
161
	 * 
162
	 */
163
	
164
	public OGRDataSource getOpenDS( int i )throws OGRException{
165
		return null;
166
	}
167
	
168
	
121 169
}
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRStyleTable.java
1
/**********************************************************************
2
 * $Id$
3
 *
4
 * Name:     OGRStyleTable.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
 * 
32
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
33
 * @version 0.0
34
 * @link http://www.gvsig.gva.es
35
 */
36

  
37
public class OGRStyleTable extends JNIBase{
38
	
39

  
40
}
0 41

  
trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRLayer.java
34 34
 * @link http://www.gvsig.gva.es
35 35
 */
36 36

  
37

  
37 38
public class OGRLayer extends JNIBase{
38 39
	
39 40
	public native long getLayerDefnNat(long cPtr);
......
42 43
	private native void FreeOGRLayerNat(long cPtr);
43 44
	private native long getNextFeatureNat(long cPtr);
44 45
	
46
	private native OGRGeometry getSpatialFilterNat(long cPtr);
47
	private native void setSpatialFilterNat( long cPtr, OGRGeometry geom );
48
	private native int setAttributeFilterNat( long cPtr, String att ); //Excepciones
49
	private native OGRFeature getFeatureNat( long cPtr, long nFID );
50
	private native int setFeatureNat( long cPtr, OGRFeature poFeature );//Excepciones
51
	private native int createFeatureNat( long cPtr, OGRFeature poFeature );//Excepciones
52
	private native int deleteFeatureNat( long cPtr, long nFID );//Excepciones
53
	private native OGRSpatialReference getSpatialRefNat(long cPtr);
54
	private native int testCapabilityNat( long cPtr, String od );
55
	private native String getInfoNat( long cPtr, String s );
56
	private native int greateFieldNat( long cPtr, OGRFieldDefn poField, int bApproxOK);//Excepciones
57
	private native OGRStyleTable getStyleTableNat(long cPtr);
58
	private native void setStyleTableNat(long cPtr, OGRStyleTable poStyleTable);
59
	private native int initializeIndexSupportNat( long cPtr, String s );//Excepciones
60
	private native OGRLayerAttrIndex getIndexNat(long cPtr); 
61
	
45 62
	/**
46 63
	 * Constructor
47 64
	 * @param cPtr	direcci?n de memoria al objeto OGRLayer de C. 
......
142 159
		if(cPtr > 0)
143 160
			FreeOGRLayerNat(cPtr);
144 161
	 }
162
	 
163
	 
164
	 
165
	 
166
	 
167
	 
168
	 
169
	 
170
	 /**
171
	  * 
172
	  */
173
	 
174
	 public OGRGeometry getSpatialFilter()throws OGRException{
175
	 	return null;
176
	 }
177

  
178
	 /**
179
	  * 
180
	  */
181
	 
182
	 public void setSpatialFilter( OGRGeometry geom )throws OGRException{
183
	 	
184
	 }
185

  
186
	 /**
187
	  * 
188
	  */
189
	 
190
	 public void setAttributeFilter( String att) throws OGRException{ //Excepciones
191
	 	
192
	 }
193

  
194
	 /**
195
	  * 
196
	  */
197
	 
198
	 public OGRFeature getFeature( long nFID )throws OGRException{
199
	 	return null;
200
	 }
201

  
202
	 /**
203
	  * 
204
	  */
205
	 
206
	 public void setFeature( OGRFeature poFeature )throws OGRException{//Excepciones
207
	 	
208
	 }
209

  
210
	 /**
211
	  * 
212
	  */
213
	 
214
	 public void createFeature( OGRFeature poFeature )throws OGRException{//Excepciones
215
	 	
216
	 }
217

  
218
	 /**
219
	  * 
220
	  */
221
	 
222
	 public void deleteFeature( long nFID )throws OGRException{//Excepciones
223
	 	
224
	 }
225

  
226
	 /**
227
	  * 
228
	  */
229
	 
230
	 public OGRSpatialReference getSpatialRef()throws OGRException{
231
	 	return null;
232
	 }
233

  
234
	 /**
235
	  * 
236
	  */
237
	 
238
	 public int testCapability( String od )throws OGRException{
239
	 	return 0;
240
	 }
241

  
242
	 /**
243
	  * 
244
	  */
245
	 
246
	 public String getInfo( String s )throws OGRException{
247
	 	return null;
248
	 }
249

  
250
	 /**
251
	  * 
252
	  */
253
	 
254
	 public void greateField( OGRFieldDefn poField, int bApproxOK)throws OGRException{//Excepciones
255
	 	
256
	 }
257

  
258
	 /**
259
	  * 
260
	  */
261
	 
262
	 public void syncToDisk()throws OGRException{//Excepciones
263
	 	
264
	 }
265

  
266
	 /**
267
	  * 
268
	  */
269
	 
270
	 public OGRStyleTable getStyleTable()throws OGRException{
271
	 	return null;
272
	 }
273

  
274
	 /**
275
	  * 
276
	  */
277
	 
278
	 public void setStyleTable(OGRStyleTable poStyleTable)throws OGRException{
279
	 	
280
	 }
281

  
282
	 /**
283
	  * 
284
	  */
285
	 
286
	 public void startTransaction()throws OGRException{//Excepciones
287
	 	
288
	 }
289

  
290
	 /**
291
	  * 
292
	  */
293
	 
294
	 public void commitTransaction()throws OGRException{//Excepciones
295
	 	
296
	 }
297

  
298
	 /**
299
	  * 
300
	  */
301
	 
302
	 public void rollbackTransaction()throws OGRException{//Excepciones
303
	 	
304
	 }
305

  
306
	 /**
307
	  * 
308
	  */
309
	 
310
	 public int reference()throws OGRException{
311
	 	return 0;
312
	 }
313

  
314
	 /**
315
	  * 
316
	  */
317
	 
318
	 public int dereference()throws OGRException{
319
	 	return 0;
320
	 }
321

  
322
	 /**
323
	  * 
324
	  */
325
	 
326
	 public int getRefCount()throws OGRException{
327
	 	return 0;
328
	 }
329

  
330
	 /**
331
	  * 
332
	  */
333
	 
334
	 public void initializeIndexSupport( String s )throws OGRException{//Excepciones
335
	 	
336
	 }
337

  
338
	 /**
339
	  * 
340
	  */
341
	 
342
	 public OGRLayerAttrIndex getIndex()throws OGRException{ 
343
	 	return null;
344
	 }	    
145 345
}
trunk/libraries/libjni-gdal/include/es_gva_cit_jogr_OGRFeatureDefn.h
39 39
JNIEXPORT jlong JNICALL Java_es_gva_cit_jogr_OGRFeatureDefn_getFieldDefnNat
40 40
  (JNIEnv *, jobject, jlong, jint);
41 41

  
42
/*
43
 * Class:     es_gva_cit_jogr_OGRFeatureDefn
44
 * Method:    getFieldIndexNat
45
 * Signature: (JLjava/lang/String;)I
46
 */
47
JNIEXPORT jint JNICALL Java_es_gva_cit_jogr_OGRFeatureDefn_getFieldIndexNat
48
  (JNIEnv *, jobject, jlong, jstring);
49

  
50
/*
51
 * Class:     es_gva_cit_jogr_OGRFeatureDefn
52
 * Method:    addFieldDefnNat
53
 * Signature: (JLes/gva/cit/jogr/OGRFieldDefn;)V
54
 */
55
JNIEXPORT void JNICALL Java_es_gva_cit_jogr_OGRFeatureDefn_addFieldDefnNat
56
  (JNIEnv *, jobject, jlong, jobject);
57

  
58
/*
59
 * Class:     es_gva_cit_jogr_OGRFeatureDefn
60
 * Method:    setGeomTypeNat
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff