Revision 970 trunk/libraries/libjni-gdal/src/es/gva/cit/jogr/OGRLayer.java

View differences:

OGRLayer.java
40 40
	public native void resetReadingNat(long cPtr);
41 41
	public native int getExtentNat(long cPtr, OGREnvelope extent, boolean bForce);
42 42
	private native void FreeOGRLayerNat(long cPtr);
43
	private native long getNextFeatureNat(long cPtr);
43 44
	
44 45
	/**
45 46
	 * Constructor
......
118 119
	 }
119 120
	 
120 121
	 /**
122
	  * 
123
	  */
124
	 
125
	 public OGRFeature getNextFeature()throws OGRException{
126
	 	
127
	 	OGRFeature feature = null;
128
	 	if(cPtr <= 0)
129
			throw new OGRException("Error en getNextFeature(). El constructor no tuvo exito");
130
	 	
131
	 	long ptro_feat = getNextFeatureNat(cPtr);
132
	 	if(ptro_feat >=0)
133
	 		feature = new OGRFeature(ptro_feat);
134
	 	return feature;
135
	 }
136
	 
137
	 /**
121 138
	 * Destructor 
122 139
	 */
123 140
		

Also available in: Unified diff