Esempio n. 1
0
        /// <summary>
        /// 是否自定义符号化指定图层(骨架线显示)
        /// </summary>
        /// <param name="fetureLayer"></param>
        /// <param name="isUseFeatureDraw">是否骨架线显示, true 骨架线 else 符号化</param>
        /// <returns></returns>
        public static void RendererFeatureLayer(IFeatureLayer fetureLayer, bool isUseFeatureDraw)
        {
            IGeoFeatureLayer geoLayer = fetureLayer as IGeoFeatureLayer;

            if (geoLayer == null)
            {
                return;
            }

            IFeatureRenderer  renderer   = geoLayer.Renderer;
            IssArcGISRenderer ssRenderer = renderer as IssArcGISRenderer;

            if (ssRenderer != null)
            {
                ssRenderer.UseFeatureDraw = isUseFeatureDraw;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 是否自定义EPS符号化显示
        /// </summary>
        /// <param name="fetureLayer"></param>
        /// <returns></returns>
        public static bool IsLayerRenderer(IFeatureLayer fetureLayer)
        {
            IGeoFeatureLayer geoLayer = fetureLayer as IGeoFeatureLayer;

            if (geoLayer == null)
            {
                return(false);
            }

            IFeatureRenderer  renderer   = geoLayer.Renderer;
            IssArcGISRenderer ssRenderer = renderer as IssArcGISRenderer;

            if (ssRenderer != null)
            {
                return(ssRenderer.UseFeatureDraw);
            }
            return(false);
        }