public void PrepareQueryFilter(IDisplay display, gView.Framework.Data.IFeatureLayer layer, gView.Framework.Data.IQueryFilter filter) { if (_renderer != null) { _renderer.PrepareQueryFilter(display, layer, filter); } }
public void PrepareQueryFilter(gView.Framework.Data.IFeatureLayer layer, gView.Framework.Data.IQueryFilter filter) { List <string> propertyNames = new List <string>(); foreach (Rule rule in _rules) { if (rule == null || rule.Filter == null) { continue; } foreach (string pname in rule.Filter.PropertyNames) { if (propertyNames.Contains(pname)) { continue; } propertyNames.Add(pname); } } foreach (string propertyName in propertyNames) { filter.AddField(propertyName); } if (layer != null && layer.FeatureClass != null) { _featureSRef = layer.FeatureClass.SpatialReference; } else { _featureSRef = null; } }
public void PrepareQueryFilter(gView.Framework.Data.IFeatureLayer layer, gView.Framework.Data.IQueryFilter filter) { if (_renderer == null) { return; } _renderer.PrepareQueryFilter(layer, filter); }
public bool CanRender(gView.Framework.Data.IFeatureLayer layer, IMap map) { if (_renderer == null) { return(false); } return(_renderer.CanRender(layer, map)); }
public bool CanRender(gView.Framework.Data.IFeatureLayer layer, IMap map) { if (layer != null && layer.FeatureClass is INetworkFeatureClass) { return(true); } return(false); }
public object PropertyPanel(gView.Framework.Carto.IFeatureRenderer renderer, gView.Framework.Data.IFeatureLayer layer) { _renderer = renderer as SLDRenderer; _layer = layer; BuildList(); panel1.Dock = DockStyle.Fill; return(panel1); }
public void PrepareQueryFilter(gView.Framework.Data.IFeatureLayer layer, gView.Framework.Data.IQueryFilter filter) { foreach (IFeatureRenderer renderer in _renderers) { if (renderer == null) { continue; } renderer.PrepareQueryFilter(layer, filter); } }
public bool CanRender(gView.Framework.Data.IFeatureLayer layer, IMap map) { //if (layer != null && // (layer.Class is WMSThemeClass || // layer.Class is WFSFeatureClass)) return true; if (layer == null && layer.FeatureClass == null && layer.FeatureClass.GeometryType == geometryType.Network) { return(false); } return(true); }
public void PrepareQueryFilter(gView.Framework.Data.IFeatureLayer layer, gView.Framework.Data.IQueryFilter filter) { for (int i = 0; i < _renderers.Count; i++) { IFeatureRenderer renderer = _renderers[i]; if (renderer == null) { continue; } filter.AddField("*"); renderer.PrepareQueryFilter(layer, filter); } }
public void PrepareQueryFilter(gView.Framework.Data.IFeatureLayer layer, gView.Framework.Data.IQueryFilter filter) { if (layer.FeatureClass == null) { return; } if (layer.FeatureClass.FindField(_valueField) != null) { filter.AddField(_valueField); } if (layer.FeatureClass.FindField(_symbolRotation.RotationFieldName) != null) { filter.AddField(_symbolRotation.RotationFieldName); } }
public bool HasEffect(gView.Framework.Data.IFeatureLayer layer, IMap map) { if (_renderer == null || map == null || map.Display == null) { return(false); } if (this.MinimumScale > 1 && this.MinimumScale > map.Display.mapScale) { return(false); } if (this.MaximumScale > 1 && this.MaximumScale < map.Display.mapScale) { return(false); } return(_renderer.HasEffect(layer, map)); }
public bool CanRender(gView.Framework.Data.IFeatureLayer layer, IMap map) { if (layer != null && layer.FeatureClass != null && (layer.FeatureClass.GeometryType == geometryType.Unknown || layer.FeatureClass.GeometryType == geometryType.Network || layer.FeatureClass.GeometryType == geometryType.Aggregate)) { return(true); } else if (layer is IWebServiceTheme) { return(true); } return(false); }
public bool HasEffect(gView.Framework.Data.IFeatureLayer layer, IMap map) { if (_renderers == null) { return(false); } foreach (IFeatureRenderer renderer in _renderers) { if (renderer == null) { continue; } if (renderer.HasEffect(layer, map)) { return(true); } } return(false); }
public object PropertyPanel(gView.Framework.Carto.ILabelRenderer renderer, gView.Framework.Data.IFeatureLayer layer) { _renderer = renderer as ILabelGroupRenderer; _layer = layer; if (_renderer == null || _layer == null) { return(null); } if (_renderer is ScaleDependentLabelRenderer) { panelScale.Visible = true; } BuildList(); panel1.Dock = DockStyle.Fill; return(panel1); }
public bool CanRender(gView.Framework.Data.IFeatureLayer layer, IMap map) { if (layer == null) { return(false); } if (layer.FeatureClass == null) { return(false); } /* * if (layer.FeatureClass.GeometryType == geometryType.Unknown || * layer.FeatureClass.GeometryType == geometryType.Network) return false; * */ if (layer.LayerGeometryType == geometryType.Unknown || layer.LayerGeometryType == geometryType.Network) { return(false); } return(true); }
public bool HasEffect(gView.Framework.Data.IFeatureLayer layer, IMap map) { return(layer != null && layer.FeatureClass != null && layer.FeatureClass.GeometryType == geometryType.Polyline); }
public bool CanRender(gView.Framework.Data.IFeatureLayer layer, IMap map) { return(true); }
public bool HasEffect(gView.Framework.Data.IFeatureLayer layer, IMap map) { return(true); }
public bool CanRender(gView.Framework.Data.IFeatureLayer layer, IMap map) { return(layer != null && layer.FeatureClass != null && layer.LayerGeometryType == geometryType.Polyline); }
public void PrepareQueryFilter(gView.Framework.Data.IFeatureLayer layer, gView.Framework.Data.IQueryFilter filter) { }