arcgis怎么arcgis中如何添加图例例

 上传我的文档
 下载
 收藏
该文档贡献者很忙,什么也没留下。
 下载此文档
正在努力加载中...
arcgis10图例制作及编辑
下载积分:600
内容提示:arcgis10图例制作及编辑
文档格式:DOCX|
浏览次数:370|
上传日期: 09:50:10|
文档星级:
该用户还上传了这些文档
arcgis10图例制作及编辑
官方公共微信添加图例、比例尺、指北针 - AJG__致力GIS解决方案,分享经验 - ITeye技术网站
博客分类:
代码中有注释,直接上
public void AddNorthArrow(IPageLayout pageLayout)
IGraphicsContainer container = pageLayout as IGraphicsC
IActiveView activeView = pageLayout as IActiveV
// 获得MapFrame
IFrameElement frameElement = container.FindFrame(activeView.FocusMap);
IMapFrame mapFrame = frameElement as IMapF
//根据MapSurround的uid,创建相应的MapSurroundFrame和MapSurround
UID uid = new UIDClass();
uid.Value = "esriCarto.MarkerNorthArrow";
IMapSurroundFrame mapSurroundFrame = mapFrame.CreateSurroundFrame(uid, null);
//设置MapSurroundFrame中指北针的点符号
IMapSurround mapSurround = mapSurroundFrame.MapS
IMarkerNorthArrow markerNorthArrow = mapSurround as IMarkerNorthA
IMarkerSymbol markerSymbol = markerNorthArrow.MarkerS
markerSymbol.Size = 18;
markerNorthArrow.MarkerSymbol = markerS
//QI,确定mapSurroundFrame的位置
IElement element = mapSurroundFrame as IE
IEnvelope envelope = new EnvelopeClass();
envelope.PutCoords(0.2, 0.2, 5, 5);
element.Geometry =
//使用IGraphicsContainer接口添加显示
container.AddElement(element, 0);
activeView.Refresh();
public void AddScalebar(IPageLayout pageLayout)
IGraphicsContainer container = pageLayout as IGraphicsC
IActiveView activeView = pageLayout as IActiveV
// 获得MapFrame
IFrameElement frameElement = container.FindFrame(activeView.FocusMap);
IMapFrame mapFrame = frameElement as IMapF
//根据MapSurround的uid,创建相应的MapSurroundFrame和MapSurround
UID uid = new UIDClass();
uid.Value = "esriCarto.AlternatingScaleBar";
IMapSurroundFrame mapSurroundFrame = mapFrame.CreateSurroundFrame(uid, null);
//设置MapSurroundFrame中比例尺的样式
IMapSurround mapSurround = mapSurroundFrame.MapS
IScaleBar markerScaleBar = ((IScaleBar)mapSurround);
markerScaleBar.LabelPosition = esriVertPosEnum.esriB
markerScaleBar.UseMapSettings();
//QI,确定mapSurroundFrame的位置
IElement element = mapSurroundFrame as IE
IEnvelope envelope = new EnvelopeClass();
envelope.PutCoords(0.2, 0.2, 1, 2);
element.Geometry =
//使用IGraphicsContainer接口添加显示
container.AddElement(element, 0);
activeView.Refresh();
private void AddLegend(IPageLayout pageLayout)
IActiveView pActiveView = pageLayout as IActiveV
IGraphicsContainer container = pageLayout as IGraphicsC
// 获得MapFrame
IMapFrame mapFrame = container.FindFrame(pActiveView.FocusMap) as IMapF
//根据MapSurround的uid,创建相应的MapSurroundFrame和MapSurround
UID uid = new UIDClass();
uid.Value = "esriCarto.Legend";
IMapSurroundFrame mapSurroundFrame = mapFrame.CreateSurroundFrame(uid, null);
//设置图例的Title
ILegend2 legend = mapSurroundFrame.MapSurround as ILegend2;
legend.Title = "地图图例";
ILegendFormat format = new LegendFormatClass();
ITextSymbol symbol = new TextSymbolClass();
symbol.Size = 4;
format.TitleSymbol =
legend.Format =
//QI,确定mapSurroundFrame的位置
IElement element = mapSurroundFrame as IE
IEnvelope envelope = new EnvelopeClass();
envelope.PutCoords(2, 2, 8, 8);
element.Geometry =
//使用IGraphicsContainer接口添加显示
container.AddElement(element, 0);
pActiveView.Refresh();
浏览: 36293 次
来自: 北京
有收获。尤其是组件和皮肤操作部分。
弱弱的问句url服务那块咋整
你好,请问这个ArcGISHeatMapLayer 类加载ur ...
可以加载sogou的3d地图吗
想问下有可以调用谷歌卫星地图的方法吗?ArcGIS Help 10.1 -
使用分类图例
分类 对话框可用于定义如何根据数值型字段指定符号类型。也可用于指定如何在内容列表中和布局视图的符号图例中显示和描述图层属性。使用分类图例的关键是指定如何在内容列表中和地图布局的图例中显示符号图例。下面是一个同时显示在内容列表和页面布局中的分级符号示例:位于内容列表中的分级符号图例显示 位于页面布局中的分级符号图例显示您可以在图层属性 对话框中的符号系统选项卡上为这些图层指定图例显示属性。中间的面板(即显示符号、值范围和图例标注的面板)用于指定如何在图例中显示分类信息。您可以设置和更改符号属性和符号标题(即其中的标注),这些内容将显示在各个类的图例描述中。
设置符号属性
单击符号列或右键单击任一符号类行可打开一个包含设置符号属性、翻转分级符号的顺序、格式化图例标注中的数值显示等功能的快捷菜单。
为各类指定图例文本描述基于分级符号类的图层中包含了对图层中每个类的详细描述。图中的标注列用于指定每个类描述。此类描述内容将同时显示在内容列表中和布局视图的符号图例中。注:如果更改了地图的分类,图例标注将不再有效并且会在用户将任何更改应用到现有分类时被删除。因此,如果需要将图层恢复为原始图层类和描述,则最好生成一个图层副本。

我要回帖

更多关于 arcgis怎么添加指北针 的文章

 

随机推荐