Revision 13873

View differences:

trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/featureiterators/SpatialQueryFeatureIterator.java
45 45
 *
46 46
 * $Id$
47 47
 * $Log$
48
 * Revision 1.3  2007-06-07 09:30:09  azabala
48
 * Revision 1.4  2007-09-19 16:02:29  azabala
49
 * bug solved (feature returned by iterator has the attributes of the next record)
50
 *
51
 * Revision 1.3  2007/06/07 09:30:09  azabala
49 52
 * refactor of BOUND FACTOR
50 53
 *
51 54
 * Revision 1.2  2007/06/06 18:03:03  azabala
......
153 156
					//we only update the counter if spatialChecker could read the geometry
154 157
					//if it is boundedshape it doesnt read the geometry, so we need to read 
155 158
					//currentFeature again 
156
					if(spatialChecker.returnShapes())
157
						currentFeature++;
159
//					if(spatialChecker.returnShapes())
160
//						currentFeature++;
158 161
					break;
159
				}else
162
				}
163
				else
160 164
					currentFeature++;
161
			}
165
			}//while
166
			
167
			
162 168
			//here, currentFeature intersects with the rectangle2d filter
163 169
			IGeometry geom = null;
164 170
			IFeature feat = null;
......
166 172
				geom = spatialChecker.getLastGeometry();
167 173
			}else{
168 174
				geom = source.getShape(currentFeature);
169
				currentFeature++;
175
//				currentFeature++;
170 176
				reprojectIfNecessary(geom);
171 177
			}
172
			
173 178
			Value[] regAtt = getValues(currentFeature);
174 179
			feat = new DefaultFeature(geom, regAtt, currentFeature + "");
175 180
			nextFeature = feat;
181
			currentFeature++;
176 182
			return true;
177 183
		} catch (ExpansionFileReadException e) {
178 184
			throw new ReadDriverException(

Also available in: Unified diff