Revision 28176 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/featureiterators/AttrQueryFeatureIterator.java

View differences:

AttrQueryFeatureIterator.java
75 75
 * SQL syntax is very extrict, GDBMS based.
76 76
 * (for example, % character is not allowed to build strings expressions,
77 77
 * all SQL statement must end with ;, etc)
78
 * 
79
 * 
80
 * 
81
 * 
78
 *
79
 *
80
 *
81
 *
82 82
 * @author azabala
83 83
 *
84 84
 */
......
87 87
	private String sqlQuery;
88 88
	private long[] indexes;
89 89

  
90
	public AttrQueryFeatureIterator(ReadableVectorial source, 
91
			IProjection sourceProj, 
92
			IProjection targetProj, 
90
	public AttrQueryFeatureIterator(ReadableVectorial source,
91
			IProjection sourceProj,
92
			IProjection targetProj,
93 93
			String sqlQuery) throws ReadDriverException {
94
		super(source);
94
		super(source,sourceProj,targetProj,source.getRecordset().getFieldNames());
95 95
		this.sqlQuery = sqlQuery;
96 96

  
97 97
		try {
......
158 158
			reprojectIfNecessary(geom);
159 159
		} catch (ExpansionFileReadException e) {
160 160
			throw new ReadDriverException("Error accediendo al driver", e);
161
		} 
161
		}
162 162

  
163 163
		Value[] regAtt = getValues((int)indexes[currentFeature]);
164 164
		DefaultFeature feat = new DefaultFeature(geom, regAtt, (int)indexes[currentFeature] + "");

Also available in: Unified diff