Revision 42972
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/layers/vectorial/FLyrVect.java | ||
---|---|---|
30 | 30 |
import java.util.Iterator; |
31 | 31 |
import java.util.Set; |
32 | 32 |
import java.util.TreeSet; |
33 |
import java.util.logging.Level; |
|
34 |
import java.util.logging.Logger; |
|
33 | 35 |
|
34 | 36 |
import org.cresques.cts.ICoordTrans; |
35 | 37 |
import org.cresques.cts.IProjection; |
36 | 38 |
import org.slf4j.LoggerFactory; |
37 | 39 |
|
38 | 40 |
import org.gvsig.compat.print.PrintAttributes; |
41 |
import org.gvsig.fmap.dal.DALLocator; |
|
39 | 42 |
import org.gvsig.fmap.dal.DataStore; |
40 | 43 |
import org.gvsig.fmap.dal.exception.DataException; |
44 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
41 | 45 |
import org.gvsig.fmap.dal.exception.ReadException; |
42 | 46 |
import org.gvsig.fmap.dal.exception.ReadRuntimeException; |
43 | 47 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
... | ... | |
266 | 270 |
this.baseQuery.addFilter(filter); |
267 | 271 |
} |
268 | 272 |
|
273 |
public void addBaseFilter(String filter) { |
|
274 |
try { |
|
275 |
this.addBaseFilter( DALLocator.getDataManager().createExpresion(filter)); |
|
276 |
} catch (InitializeException ex) { |
|
277 |
throw new RuntimeException("Can't create filter with '"+filter+"'", ex); |
|
278 |
} |
|
279 |
} |
|
280 |
|
|
269 | 281 |
/** |
270 | 282 |
* Draws using IFeatureIterator. This method will replace the old draw(...) |
271 | 283 |
* one. |
Also available in: Unified diff