MapX培训教程.ppt_第1页
MapX培训教程.ppt_第2页
MapX培训教程.ppt_第3页
MapX培训教程.ppt_第4页
MapX培训教程.ppt_第5页
已阅读5页,还剩91页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

MapX培训教程 今天的内容 MapX概述MapX基本概念 Map Layer Tools 图层集 Layers 工具集 Tools SelectionsandFeatures 查找 Find 数据集 DataSets 专题图 Themes 对象编辑 ObjectEditing 地图输出 ExportingMaps 今天的内容 1MapX概述 什么是MapX MapX是MapInfo公司的地图化的ActiveX 在使用面向对象语言 如 VB VC Delphi PB 开发的应用中嵌入MapX可以使您的应用具有强大的地图功能 MapX提供了各种属性 方法和事件 实现对地图数据的各种操作 Buzzwords MapX Method ComponentBasedProgramming Properties ObjectOriented Object Collection Events DataBinding ActiveX GeoSet GPS Object基本术语 对象Object Athing Something Anything 属性Property Anadjectivethatdescribesanobject 方法Method Anactionthatanobjectcando 集合Collection Agroupofsimilarobjects 事件Event Areactionanobjectmakestocertainstimuli ObjectQuickview Note ThisisNOTtheentireobjectdiagram 2MapX基本概念 地图对象Map 所有对象的基础EverythingisoffofthisobjectMapsarethebasicbuildingblocksforMapX Eachmapisdefinedby atminimum aLayerscollection 地图对象属性 MapProperties AnnotationsAreaUnitAutoRedrawBoundsCenterXCenterYCurrentToolDataSetDataSetGeoFieldDataSetsDataSetThemeDefaultStyleDisplayCoordSysDefaultConversionResolution ExportSelectionFeatureFactoryGeoDictionaryGeosetGeosetsGeoSetWidthhWndLayersMapPaperHeightMapPaperWidthMapUnitMaxSearchTime MousePointerNumericCoordSysPaperUnitPreferCompactLegendsRotationSelectionStyleTitleTitleTextVersionZoom LotstoChooseFrom CenterX CenterY Zoom 控制地图显示的三个要素ControlswhatpartofthemapisshowingCenterX Longitude Xcoord CenterY Latitude Ycoord Zoom Howmanymiles km ft etc arebeingdisplayedacrossthemap X Y CurrentTool当前工具 Setswhattooltheuserhasintheirhands预定义工具Manypre definedtools including ZoomIn OutLabelRadiusSelectPanTool自定义工具Youalsohavetheabilitytocreatecustomdefinedtools MapXMethods AboutBoxClipLineClipLineVConvertCoordConvertCoordVCreateCustomToolDistance ExportMapIsPointVisiblePrintMapPropertyPageRefreshSetSizeZoomTo METHODS ConvertCoord Convertbetweenscreencoordinatesandgeographiccoordinates eitherdirection UsefulfordealingwithMouse Moveevents METHODS Distance Computesdistancegiventwopairsofgeographiccoordinates METHODS ZoomTo SetstheCenterX CenterYandZoompropertieswithonemethod METHODS MapX事件 Events AnnotationAddedAnnotationChangedClickDataMismatchDrawUserLayerErrorMapViewChangedMouseDownThemeModifyRequested MouseMoveMouseUpPolyToolUsedRequestDataResolveDataBindSelectionChangedToolUsed EVENTS MapInfoterminologyupdate Annotations AcollectionoftextandsymbolsSitontopofalllayersSimilartoamap scosmeticlayerinMapInfoProfessional Geosets GeoSet AcollectionofLayersandsettingsforeachlayerSimilartoaMapInfoProworkspaceMapXincludesGeosetManager exeutilitytomanipulategeosets WhatisaGeoset 描述地图属性的文本文件类似于MapInfoProworkspace在geoset中设置每一层地图的属性Throughtagsin gstfileIfatagisabsent MapXusesdefaultvalueLookinMapXhelpforlistofallavailabletags Geoset GEOSET VERSION100begin metadata GEOSET NAME SalesArea GEOSET CENTER 137 69 38 256 GEOSET ZOOMLEVEL 1800 GEOSET PROJECTION 1 0 TABLE Regions tab FILE Regions tab TABLE Regions tab ISVISIBLE TRUE TABLE Regions tab AUTOLABEL TRUE TABLE Regions tab ZOOM MIN 300 TABLE Regions tab ZOOM MAX 800 TABLE Regions tab DISPLAY PEN LINESTYLE 2 TABLE Regions tab DISPLAY PEN LINEWIDTH 1 TABLE Regions tab DISPLAY PEN COLOR 16711680 end metadata 创建 编辑GeoSets UseGeosetManager exeMakesuretogiveeachgeosetauniquename ChangingGeosets AtDesignTime PropertyPage Map1 Geoset UnitedStates gstmustbeinsamedirectoryasGeoDictionarym ctrlMapX SetGeoset us gst Map1 Layers 1 LoadGeosetLayers us gst DuringAutomatching GeoDictionary GeoDictionary SeehelptopicinMapX3 5Containslistofregisteredtablestouseduringautomaticdatabinding automatching Map GeoDictionary GeoDictionary HKEY LOCAL MACHINE Software MapInfo MapX 3 0 GeoDictionary c programfiles mapinfomapx maps geodict dct GeoDictionaryContents ForeachregisteredfileUserfriendlynameListofindexedfieldsRefiningtablenameListofGeosetfilenames Migm30 exe GeodictionaryManager CommandLineParameters Usefulforregisteringtablesduringaninstallprogrammigm30 exe tablepath geosetpath tablepath geoset geosetfile file commandfilepath remove CommandLineParameters SeehelptopicinMapX3 5 Sample2 Annotations Add ModifyandRemoveChangeMapView MapobjectpropertiesandmethodsLoadGeoset switch betweendifferentgeosets 3图层对象 Layers Layers AcollectionofLayerObjectsMuchliketransparenciesonanoverheadEachlayerhasitsownattributesLabelsZoomLayeringStyleOverrideVisibilitySelectablility Regions Lines Points Text PacificOcean LayersMethods AddAddaMapInfomaplayertothelayerscollectionRemoveRemovesalayerfromthecollectionMoveRepositionsalayerwithinthecollection LayersMethods CreateLayerCreateanewMapInfotableandaddittomapLayersDlgDisplaysabuilt in LayerControl dialogtomanipulatethelayers Sample3 LayerControlDialogModifypartofpropertiesofaLayerAddaUserDrawLayer 4UserTools ToolUsed Aneventthatisfiredafterauserreleasesthemousebuttonfromatool suseYoucanfindoutinformationsuchas WhattoolwasusedWhereuserclickedmousebuttonWhereuserreleasedmousebuttonDistancebetweenpoints EVENTS Sample4 MorestandardselecttoolsAcustomtooltoshowtheX Ycoordinateofthecursor 5SelectionsandFeatures Selections AcollectionofFeatureobjectsCreated WhenuserclickswithaselectiontoolBymeansofthevariousselectmethodsMapXautomaticallyhighlightsallselectedfeaturesEachlayerobjecthasitsownSelectioncollection FeaturesCollection AcollectionofFeatureobjects createdbymethodsofthefeaturesobjectSimilartotheselectionobject except Thefeaturesdonotgethigh litEachlayerobjectmayhavemultiplefeaturescollections SelectAllClearSelectionSelectByPointSelectByRadiusSelectByRectangleSelectByRegion AllFeaturesNoFeaturesSearchAtPointSearchWithinDistanceSearchWithinRectangleSearchWithinFeature SelectionMethods FeatureMethods Feature SelectionMethods Sample5 SearchWithinDistanceSearchWithinFeature SearchDealersexampleSelectByRectangleSelectByRegion 6Find Find FindallowsyoutolocateitemsonamapThelayeryouaresearchingmusthaveanindexedcolumninorderforyoutoutilizethefindmethod FindTerminology FindFeatureObjectisreturnedbythesearchmethodofthefindobjectARefiningBoundaryisusedtodistinguishbetweenmultiplefeatureswiththesamenameResultCodesprovideinformationontheFindObject Sample6 AFindexaple FinddealerswithinDistancennnofacityofastate 7Datasets DataBinding DataBinding DataBinding AwayoftyingdatafromanexternalsourcetothemapCreatesaDATASETwhendataisboundtoaMapXmaplayerWhy ThememapsQueryinformationSummarizationofdatageographically DataTypesYouMayUse DataAccessObjectRecordset DAO OpenDataBaseConnectivity ODBC datasourceLotusNotesDelphiNativeDataSourceVBDataControl RemoteDataControlMapInfoTable DataBinding Whenmatchingrecordsinthedatabasewithfeaturesonthemap youmayspecifythematchorletMapXchooseusingtheGeoDictionaryGeodictionary Maintainsinformationaboutmaplayersandtheirreferencingcapabilities OR DataBinding ThreeTypesofDatabinding NormalBinddatatoexistingmapfeaturesXYBind RequiresuseofBindLayerobject Createssymbolsontheflyfromlong latcoordinatesalreadyinyourdatabasePointRef RequiresuseofBindLayerobject Createssymbolsontheflybymatchinggeographicinformationinyourdatabaseagainstfeaturesonanexistingmaplayer BindLayerObject UsedasaparametertotheDatasets addmethodSpecifieshowtocreatenewsymbolsfromyourdataMustbeabletogeo referencedataNeedsLongitudeandLatitudeORAfieldthatcanbematchedupagainstamaplayer zipcode city district etc BindLayerObjectProperties CoordSysFileSpecKeyLengthLayerNameLayerTypeRefColumn1RefColumn2ReferenceLayer CachedDataBinding AggregationdonebyMapXDatacachedbyMapXInitialloadtimeonDatasets AddFastredraw thematicsBogsdownforverylargedatasets Normal DataBinding DatasourceFieldsaggregatedandattachedtoanexistingmaplayerYoucanspecifyKeyFieldand orLayerORMapXcandetermineKeyFieldand orLayer X YDataBinding DatasourcealreadycontainsX YcoordinatesYouspecifyX YandKeyFieldsviaBindLayerobjectNewpointlayeriscreatedRemainingdatasourcefieldsareboundtothenewlayerasadataset PointReferenceBinding DatasourcecontainsgeographickeysuchaszipcodeYouspecifykeyFieldandReferencelayerviaBindLayerobjectNewpointlayeriscreatedwithapointforeachrowinthedatasourceRemainingdatasourcefieldsareboundtothenewlayerasadataset DynamicDataBinding AggregationdonebyDatasourceDatafetchedwhenneededbyMapXNoinitialwaitonDatasets AddRedrawspeeddependantonDatasourcespeedDataisrequestedbyGeographicKeyCanhandleverylargedatasetsXYandPointreferencebindsarenotsupported CustomDatasetTypes COMBasedStandardextensiblearchitectureInstall Register andGoDocumentedinHelpFileExamplesNotesODBCDelphi DataBindingDemo DynamicvsNormalX YandPointRefUsesODBCDatasetC codesamples usesC wrappers Sample7 5examplesofDataBindingofdatatype DAO ODBC SetLayer GlobalHandle andUnboundAndofbindingtypeofnormal X Ypoint andpointreference 8Themes 专题图 Themes Thematicmappingistheprocessofshadingyourmapbasedonyourdata AvaluabledatavisualizationtoolManyexamplesHighIncomeareasPopulationDistributionRainfallmapsSalesdistributionmaps TypesofThemes RangesPieChartBarChartGraduatedSymbolDotDensityIndividualValue Thesethemesmaybe layered ontopofoneanother CreatingThemes AThemehangsoffofadatasetintheobjectmodelYouaddathemetoadataset ManipulatingaTheme ThemeDlgmethodModifytheThemePropertiesobject ModifyThemeDialogsincludedwithMapX Legend ThekeytounderstandingathemeTellswhateachstyleonthemapmeansdata wiseYoumaymodifytheLegendbyUsingtheLegendDlgmethod easiest ModifyingeachLegendTextobjectindividuallyModifyingtheLegendTitleandSubTitle ModifyLegendDialog Timetoseethisstuffinaction MoreoftheVBsampleapp showing AddingDatasetsUsingaBindLayerobjectCreatingaTheme Sample8 Exampleofthemetypes RangedBarChartPieCharGraduatedSymbolDotDensityIndividualValue 9ObjectEditing FeatureFactory Anobjectoffofthemapobjectthatallowsyoutodo FeatureCreationFeatureManipulation FeatureFactoryMethods BufferFeaturesCombineFeaturesCreateArcCreateCircularRegionCreateEllipticalRegionCreateLineCreateRegion CreateSymbolCreateTextEraseFeatureIntersectFeaturesIntersectionPointsIntersectionTest BufferFea

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论