2009年3月19日
摘要: //从 RGB 值 获得颜色 应该是 编程中用的最多的方式,所以 我提供了两个函数 一个是 将Delphi中的Tcolor 转换到 ae 的 IRgbColor //另一个是 由 Rgb 值 得到 IRgbColor //将Delphi中的 Tcolor 转换成 ae 中 的 IrgbColor //TColor 可以从很多控件的 Color 属性获得,或者 可以从 很多 颜色选择控件... 阅读全文
posted @ 2009-03-19 12:10 知真道 阅读(699) 评论(0) 推荐(0) 编辑
摘要: function InsertLegend(aePageLayoutControl: TPageLayoutControl; sTitle: string): Boolean; var pPageLayout: IPageLayout; pMap : IMap; pActiveMap: IActiveView; pGraphicContainer: IGraphic... 阅读全文
posted @ 2009-03-19 11:20 知真道 阅读(661) 评论(0) 推荐(0) 编辑
摘要: function CreateSurround(pUID: UID; pEnv: IEnvelope; strName: string; pPageLayout: IPageLayout): IMapSurround; var pGraphicsContainer: IGraphicsContainer; pActiveView: IActiveView; pMapSurroun... 阅读全文
posted @ 2009-03-19 11:16 知真道 阅读(604) 评论(0) 推荐(0) 编辑
摘要: function InsertNorthArrow(aePageLayoutControl: TPageLayoutControl; iStyle: SmallInt): Boolean; var pPageLayout: IPageLayout; pMap : IMap; pActiveMap: IActiveView; pGraphicContainer: IG... 阅读全文
posted @ 2009-03-19 11:15 知真道 阅读(868) 评论(0) 推荐(0) 编辑
摘要: //本函数 是在 PageControl上拉选一个区域内 创建一个比例尺,比例尺的样式,我自己定义一个 枚举类型 如下 type ScaleType = (stAlternating, stDoubleAlternating, stHollow, stScaleLine, stSingleDivision, stSetpped); function InsertScaler(aeP... 阅读全文
posted @ 2009-03-19 11:10 知真道 阅读(1006) 评论(0) 推荐(0) 编辑
  2009年3月17日
摘要: function SearchByPropInfo(pLayer: ILayer; sWhere: string; out iCounts: Integer): IFeatureCursor; var pQueryFilter: IQueryFilter; pFeatureLayer: IFeatureLayer; pFeatureSelection: IFeatureSelec... 阅读全文
posted @ 2009-03-17 21:54 知真道 阅读(1044) 评论(0) 推荐(0) 编辑
  2009年3月14日
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1function ExportMapToFile(pActiveView: IActiveView; filetypes: FileType; fileName: string): Bool... 阅读全文
posted @ 2009-03-14 17:53 知真道 阅读(720) 评论(0) 推荐(0) 编辑
  2009年3月7日
摘要: function LoadDwgFile(mapControl: TMapControl; dwgFilePath: string; dwgFileName: string): Boolean; var qCadWorkFactory: IWorkspaceFactory; qWorkSpace: IFeatureWorkspace; qFeatDataset: IFeature... 阅读全文
posted @ 2009-03-07 00:16 知真道 阅读(1147) 评论(1) 推荐(0) 编辑
  2009年3月6日
摘要: function ClassBreaksRenderer(pLayer: ILayer; sField: string; pColor: IColor; PColorFrom: IColor; pColorTo: IColor; eStyle: TOleEnum; iBreakCount: Integer): Boolean; var pGeoLayer: IGeoFeatureLay... 阅读全文
posted @ 2009-03-06 03:01 知真道 阅读(421) 评论(0) 推荐(0) 编辑
摘要: //对给定的图层的某一字段,用指定的颜色和样式创建专题 function SimpleRenderer(pLayer: ILayer; sField: string; pColor: IColor; eStyle: TOleEnum): Boolean; var pSimpleRenderer: ISimpleRenderer; pSimpleFillSymbol: ISimpleFil... 阅读全文
posted @ 2009-03-06 00:11 知真道 阅读(526) 评论(0) 推荐(0) 编辑