예제 #1
0
 public void PrepareQueryFilter(IDisplay display, gView.Framework.Data.IFeatureLayer layer, gView.Framework.Data.IQueryFilter filter)
 {
     if (_renderer != null)
     {
         _renderer.PrepareQueryFilter(display, layer, filter);
     }
 }
예제 #2
0
        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;
            }
        }
예제 #3
0
            public void PrepareQueryFilter(gView.Framework.Data.IFeatureLayer layer, gView.Framework.Data.IQueryFilter filter)
            {
                if (_renderer == null)
                {
                    return;
                }

                _renderer.PrepareQueryFilter(layer, filter);
            }
예제 #4
0
            public bool CanRender(gView.Framework.Data.IFeatureLayer layer, IMap map)
            {
                if (_renderer == null)
                {
                    return(false);
                }

                return(_renderer.CanRender(layer, map));
            }
예제 #5
0
        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);
        }
예제 #7
0
        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);
            }
        }
예제 #8
0
        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);
        }
예제 #9
0
        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);
            }
        }
예제 #10
0
        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);
            }
        }
예제 #11
0
            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));
            }
예제 #12
0
        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);
        }
예제 #13
0
 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);
        }
예제 #15
0
        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);
        }
예제 #16
0
 public bool HasEffect(gView.Framework.Data.IFeatureLayer layer, IMap map)
 {
     return(layer != null &&
            layer.FeatureClass != null &&
            layer.FeatureClass.GeometryType == geometryType.Polyline);
 }
예제 #17
0
 public bool CanRender(gView.Framework.Data.IFeatureLayer layer, IMap map)
 {
     return(true);
 }
예제 #18
0
 public bool HasEffect(gView.Framework.Data.IFeatureLayer layer, IMap map)
 {
     return(true);
 }
예제 #19
0
 public bool CanRender(gView.Framework.Data.IFeatureLayer layer, IMap map)
 {
     return(layer != null &&
            layer.FeatureClass != null &&
            layer.LayerGeometryType == geometryType.Polyline);
 }
예제 #20
0
 public void PrepareQueryFilter(gView.Framework.Data.IFeatureLayer layer, gView.Framework.Data.IQueryFilter filter)
 {
 }