Revision 43020 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/extension/ShowLayerAsForm.java
ShowLayerAsForm.java | ||
---|---|---|
24 | 24 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
25 | 25 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
26 | 26 |
import org.gvsig.fmap.dal.feature.FeatureType; |
27 |
import org.gvsig.fmap.dal.feature.exception.CreateGeometryException; |
|
28 | 27 |
import org.gvsig.fmap.dal.swing.DALSwingLocator; |
29 | 28 |
import org.gvsig.fmap.dal.swing.DataSwingManager; |
30 | 29 |
import org.gvsig.fmap.geom.Geometry; |
... | ... | |
35 | 34 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
36 | 35 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
37 | 36 |
import org.gvsig.fmap.mapcontext.layers.vectorial.IntersectsGeometryEvaluator; |
37 |
import org.gvsig.fmap.mapcontext.layers.vectorial.SpatialEvaluatorsFactory; |
|
38 | 38 |
import org.gvsig.fmap.mapcontrol.MapControl; |
39 | 39 |
import org.gvsig.fmap.mapcontrol.tools.Behavior.PointBehavior; |
40 | 40 |
import org.gvsig.fmap.mapcontrol.tools.BehaviorException; |
41 | 41 |
import org.gvsig.fmap.mapcontrol.tools.Events.PointEvent; |
42 | 42 |
import org.gvsig.fmap.mapcontrol.tools.Listeners.PointListener; |
43 | 43 |
import org.gvsig.tools.ToolsLocator; |
44 |
import org.gvsig.tools.evaluator.Evaluator; |
|
44 | 45 |
import org.gvsig.tools.i18n.I18nManager; |
45 | 46 |
import org.gvsig.tools.service.ServiceException; |
46 | 47 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
... | ... | |
152 | 153 |
FeatureStore featureStore = this.form.getFeatureStore(); |
153 | 154 |
FeatureType featureType = featureStore.getDefaultFeatureType(); |
154 | 155 |
FeatureQuery featureQuery = featureStore.createFeatureQuery(); |
155 |
String geomName = featureType.getDefaultGeometryAttributeName(); |
|
156 | 156 |
featureQuery.setFeatureType(featureType); |
157 | 157 |
|
158 | 158 |
Geometry query_geo = this.layer.transformToSourceCRS(circle, true); |
... | ... | |
161 | 161 |
query_proj = this.layer.getCoordTrans().getPOrig(); |
162 | 162 |
} |
163 | 163 |
|
164 |
IntersectsGeometryEvaluator iee |
|
165 |
= new IntersectsGeometryEvaluator( |
|
164 |
Evaluator iee = SpatialEvaluatorsFactory.getInstance().intersects( |
|
166 | 165 |
query_geo, |
167 | 166 |
query_proj, |
168 |
featureStore.getDefaultFeatureType(),
|
|
169 |
geomName);
|
|
167 |
featureStore |
|
168 |
); |
|
170 | 169 |
featureQuery.setFilter(iee); |
171 | 170 |
featureQuery.setAttributeNames(null); |
172 | 171 |
|
Also available in: Unified diff