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

下载本文档

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

文档简介

MapX培训教程,1,MapX培训教程,MapX培训教程,2,今天的内容,MapX概述MapX基本概念(Map/Layer/Tools)图层集(Layers)工具集(Tools)SelectionsandFeatures,MapX培训教程,3,查找(Find)数据集(DataSets)专题图(Themes)对象编辑(ObjectEditing)地图输出(ExportingMaps),今天的内容,MapX培训教程,4,1MapX概述,MapX培训教程,5,什么是MapX?,MapX是MapInfo公司的地图化的ActiveX,在使用面向对象语言(如:VB,VC+,Delphi,PB)开发的应用中嵌入MapX可以使您的应用具有强大的地图功能。MapX提供了各种属性、方法和事件,实现对地图数据的各种操作。,MapX培训教程,6,Buzzwords,MapX,Method,ComponentBasedProgramming,Properties,ObjectOriented,Object,Collection,Events,DataBinding,ActiveX,GeoSet,GPS,MapX培训教程,7,Object基本术语,对象Object-Athing.Something.Anything.属性Property-Anadjectivethatdescribesanobject.方法Method-Anactionthatanobjectcando.集合Collection-Agroupofsimilarobjects.事件Event-Areactionanobjectmakestocertainstimuli.,MapX培训教程,8,ObjectQuickview,Note:ThisisNOTtheentireobjectdiagram,MapX培训教程,9,2MapX基本概念,MapX培训教程,10,地图对象Map,所有对象的基础EverythingisoffofthisobjectMapsarethebasicbuildingblocksforMapX.Eachmapisdefinedby(atminimum)aLayerscollection,MapX培训教程,11,地图对象属性(MapProperties),AnnotationsAreaUnitAutoRedrawBoundsCenterXCenterYCurrentToolDataSetDataSetGeoFieldDataSetsDataSetThemeDefaultStyleDisplayCoordSysDefaultConversionResolution,ExportSelectionFeatureFactoryGeoDictionaryGeosetGeosetsGeoSetWidthhWndLayersMapPaperHeightMapPaperWidthMapUnitMaxSearchTime,MousePointerNumericCoordSysPaperUnitPreferCompactLegendsRotationSelectionStyleTitleTitleTextVersionZoom,LotstoChooseFrom!,MapX培训教程,12,CenterX,CenterY,Zoom,控制地图显示的三个要素ControlswhatpartofthemapisshowingCenterX=Longitude(Xcoord)CenterY=Latitude(Ycoord)Zoom=Howmanymiles(km,ft,etc)arebeingdisplayedacrossthemap,X,Y,MapX培训教程,13,CurrentTool当前工具,Setswhattooltheuserhasintheirhands预定义工具Manypre-definedtools,including:ZoomIn/OutLabelRadiusSelectPanTool自定义工具Youalsohavetheabilitytocreatecustomdefinedtools,MapX培训教程,14,MapXMethods,AboutBoxClipLineClipLineVConvertCoordConvertCoordVCreateCustomToolDistance,ExportMapIsPointVisiblePrintMapPropertyPageRefreshSetSizeZoomTo,METHODS,MapX培训教程,15,ConvertCoord,Convertbetweenscreencoordinatesandgeographiccoordinates(eitherdirection)UsefulfordealingwithMouse_Moveevents,METHODS,MapX培训教程,16,Distance,Computesdistancegiventwopairsofgeographiccoordinates,METHODS,MapX培训教程,17,ZoomTo,SetstheCenterX,CenterYandZoompropertieswithonemethod,METHODS,MapX培训教程,18,MapX事件(Events),AnnotationAddedAnnotationChangedClickDataMismatchDrawUserLayerErrorMapViewChangedMouseDownThemeModifyRequested,MouseMoveMouseUpPolyToolUsedRequestDataResolveDataBindSelectionChangedToolUsed,EVENTS,MapX培训教程,19,MapInfoterminologyupdate,MapX培训教程,20,Annotations,AcollectionoftextandsymbolsSitontopofalllayersSimilartoamapscosmeticlayerinMapInfoProfessional,MapX培训教程,21,Geosets,MapX培训教程,22,GeoSet,AcollectionofLayersandsettingsforeachlayerSimilartoaMapInfoProworkspaceMapXincludesGeosetManager.exeutilitytomanipulategeosets,MapX培训教程,23,WhatisaGeoset?,描述地图属性的文本文件类似于MapInfoProworkspace在geoset中设置每一层地图的属性Throughtagsin*.gstfileIfatagisabsent,MapXusesdefaultvalueLookinMapXhelpforlistofallavailabletags,MapX培训教程,24,Geoset,!GEOSET!VERSION100begin_metadataGEOSETNAME=”SalesAreaGEOSETCENTER=137.69,38.256GEOSETZOOMLEVEL=1800GEOSETPROJECTION=1,0TABLERegions.tabFILE=Regions.tabTABLERegions.tabISVISIBLE=TRUETABLERegions.tabAUTOLABEL=TRUETABLERegions.tabZOOMMIN=300TABLERegions.tabZOOMMAX=800TABLERegions.tabDISPLAYPENLINESTYLE=2TABLERegions.tabDISPLAYPENLINEWIDTH=1TABLERegions.tabDISPLAYPENCOLOR=16711680end_metadata,MapX培训教程,25,创建/编辑GeoSets,UseGeosetManager.exeMakesuretogiveeachgeosetauniquename,MapX培训教程,26,ChangingGeosets,AtDesignTime(PropertyPage)Map1.Geoset=“UnitedStates”*.gstmustbeinsamedirectoryasGeoDictionarym_ctrlMapX.SetGeoset(“us.gst”)Map1.Layers(1).LoadGeosetLayers(“us.gst”)DuringAutomatching,MapX培训教程,27,GeoDictionary,MapX培训教程,28,GeoDictionary,SeehelptopicinMapX3.5Containslistofregisteredtablestouseduringautomaticdatabinding(automatching).Map.GeoDictionary=“GeoDictionary”HKEY_LOCAL_MACHINESoftwareMapInfoMapX3.0GeoDictionary=“c:programfilesmapinfomapxmapsgeodict.dct”,MapX培训教程,29,GeoDictionaryContents,ForeachregisteredfileUserfriendlynameListofindexedfieldsRefiningtablenameListofGeoset,MapX培训教程,30,Migm30.exe(GeodictionaryManager),MapX培训教程,31,CommandLineParameters,Usefulforregisteringtablesduringaninstallprogrammigm30.exetablepath|geosetpath|tablepath/geoset=geosetfile/remove,MapX培训教程,32,CommandLineParameters,SeehelptopicinMapX3.5!,MapX培训教程,33,Sample2,Annotations,Add,ModifyandRemoveChangeMapView-MapobjectpropertiesandmethodsLoadGeoset-switchbetweendifferentgeosets,MapX培训教程,34,3图层对象(Layers),MapX培训教程,35,Layers,AcollectionofLayerObjectsMuchliketransparenciesonanoverheadEachlayerhasitsownattributesLabelsZoomLayeringStyleOverrideVisibilitySelectablility,MapX培训教程,36,Regions,Lines,Points,Text,PacificOcean,MapX培训教程,37,LayersMethods,AddAddaMapInfomaplayertothelayerscollectionRemoveRemovesalayerfromthecollectionMoveRepositionsalayerwithinthecollection,MapX培训教程,38,LayersMethods,CreateLayerCreateanewMapInfotableandaddittomapLayersDlgDisplaysabuilt-in“LayerControl”dialogtomanipulatethelayers,MapX培训教程,39,Sample3,LayerControlDialogModifypartofpropertiesofaLayerAddaUserDrawLayer,MapX培训教程,40,4UserTools,MapX培训教程,41,ToolUsed,AneventthatisfiredafterauserreleasesthemousebuttonfromatoolsuseYoucanfindoutinformationsuchas:WhattoolwasusedWhereuserclickedmousebuttonWhereuserreleasedmousebuttonDistancebetweenpoints,EVENTS,MapX培训教程,42,Sample4,MorestandardselecttoolsAcustomtooltoshowtheX-Ycoordinateofthecursor,MapX培训教程,43,5SelectionsandFeatures,MapX培训教程,44,Selections,AcollectionofFeatureobjectsCreated:WhenuserclickswithaselectiontoolBymeansofthevariousselectmethodsMapXautomaticallyhighlightsallselectedfeaturesEachlayerobjecthasitsownSelectioncollection,MapX培训教程,45,FeaturesCollection,AcollectionofFeatureobjects,createdbymethodsofthefeaturesobjectSimilartotheselectionobject,except:Thefeaturesdonotgethigh-litEachlayerobjectmayhavemultiplefeaturescollections,MapX培训教程,46,SelectAllClearSelectionSelectByPointSelectByRadiusSelectByRectangleSelectByRegion,AllFeaturesNoFeaturesSearchAtPointSearchWithinDistanceSearchWithinRectangleSearchWithinFeature,SelectionMethods,FeatureMethods,Feature/SelectionMethods,MapX培训教程,47,Sample5,SearchWithinDistanceSearchWithinFeature-SearchDealersexampleSelectByRectangleSelectByRegion,MapX培训教程,48,6Find,MapX培训教程,49,Find,FindallowsyoutolocateitemsonamapThelayeryouaresearchingmusthaveanindexedcolumninorderforyoutoutilizethefindmethod,MapX培训教程,50,FindTerminology,FindFeatureObjectisreturnedbythesearchmethodofthefindobjectARefiningBoundaryisusedtodistinguishbetweenmultiplefeatureswiththesamenameResultCodesprovideinformationontheFindObject,MapX培训教程,51,Sample6,AFindexaple-FinddealerswithinDistancennnofacityofastate,MapX培训教程,52,7Datasets,MapX培训教程,53,DataBinding,MapX培训教程,54,DataBinding,MapX培训教程,55,DataBinding,AwayoftyingdatafromanexternalsourcetothemapCreatesaDATASETwhendataisboundtoaMapXmaplayerWhy?ThememapsQueryinformationSummarizationofdatageographically,MapX培训教程,56,DataTypesYouMayUse,DataAccessObjectRecordset(DAO)OpenDataBaseConnectivity(ODBC)datasourceLotusNotesDelphiNativeDataSourceVBDataControl&RemoteDataControlMapInfoTable,MapX培训教程,57,DataBinding,Whenmatchingrecordsinthedatabasewithfeaturesonthemap,youmayspecifythematchorletMapXchooseusingtheGeoDictionaryGeodictionary-Maintainsinformationaboutmaplayersandtheirreferencingcapabilities,MapX培训教程,58,OR,DataBinding,MapX培训教程,59,ThreeTypesofDatabinding,NormalBinddatatoexistingmapfeaturesXYBindRequiresuseofBindLayerobjectCreatessymbolsontheflyfromlong/latcoordinatesalreadyinyourdatabasePointRefRequiresuseofBindLayerobjectCreatessymbolsontheflybymatchinggeographicinformationinyourdatabaseagainstfeaturesonanexistingmaplayer,MapX培训教程,60,BindLayerObject,UsedasaparametertotheDatasets.addmethodSpecifieshowtocreatenewsymbolsfromyourdataMustbeabletogeo-referencedataNeedsLongitudeandLatitudeORAfieldthatcanbematchedupagainstamaplayer(zipcode,city,district,etc),MapX培训教程,61,BindLayerObjectProperties,CoordSysKeyLengthLayerNameLayerTypeRefColumn1RefColumn2ReferenceLayer,MapX培训教程,62,CachedDataBinding,AggregationdonebyMapXDatacachedbyMapXInitialloadtimeonDatasets.AddFastredraw&thematicsBogsdownforverylargedatasets,MapX培训教程,63,“Normal”DataBinding,DatasourceFieldsaggregatedandattachedtoanexistingmaplayerYoucanspecifyKeyFieldand/orLayerORMapXcandetermineKeyFieldand/orLayer,MapX培训教程,64,X-YDataBinding,DatasourcealreadycontainsX&YcoordinatesYouspecifyX,YandKeyFieldsviaBindLayerobjectNewpointlayeriscreatedRemainingdatasourcefieldsareboundtothenewlayerasadataset,MapX培训教程,65,PointReferenceBinding,DatasourcecontainsgeographickeysuchaszipcodeYouspecifykeyFieldandReferencelayerviaBindLayerobjectNewpointlayeriscreatedwithapointforeachrowinthedatasourceRemainingdatasourcefieldsareboundtothenewlayerasadataset,MapX培训教程,66,DynamicDataBinding,AggregationdonebyDatasourceDatafetchedwhenneededbyMapXNoinitialwaitonDatasets.AddRedrawspeeddependantonDatasourcespeedDataisrequestedbyGeographicKeyCanhandleverylargedatasetsXYandPointreferencebindsarenotsupported,MapX培训教程,67,CustomDatasetTypes,COMBasedStandardextensiblearchitectureInstall,Register,andGoDocumentedinHelpFileExamplesNotesODBCDelphi,MapX培训教程,68,DataBindingDemo,DynamicvsNormalX-YandPointRefUsesODBCDatasetC+codesamples(usesC+wrappers),MapX培训教程,69,Sample7,5examplesofDataBindingofdatatype:DAO,ODBC,SetLayer,GlobalHandle,andUnboundAndofbindingtypeofnormal,X-Ypoint,andpointreference,MapX培训教程,70,8Themes,MapX培训教程,71,专题图(Themes),Thematicmappingistheprocessofshadingyourmapbasedonyourdata.AvaluabledatavisualizationtoolManyexamplesHighIncomeareasPopulationDistributionRainfallmapsSalesdistributionmaps,MapX培训教程,72,TypesofThemes,RangesPieChartBarChartGraduatedSymbolDotDensityIndividualValue,Thesethemesmaybe“layered”ontopofoneanother,MapX培训教程,73,MapX培训教程,74,CreatingThemes,AThemehangsoffofadatasetintheobjectmodelYouaddathemetoadataset,MapX培训教程,75,ManipulatingaTheme,ThemeDlgmethodModifytheThemePropertiesobject,MapX培训教程,76,ModifyThemeDialogsincludedwithMapX,MapX培训教程,77,Legend,ThekeytounderstandingathemeTellswhateachstyleonthemapmeansdata-wiseYoumaymodifytheLegendbyUsingtheLegendDlgmethod(easiest)ModifyingeachLegendTextobjectindividuallyModifyingtheLegendTitleandSubTitle,MapX培训教程,78,ModifyLegendDialog,MapX培训教程,79,Timetoseethisstuffinaction,MoreoftheVBsampleapp,showing:AddingDatasetsUsingaBindLayerobjectCreatingaTheme,MapX培训教程,80,Sample8,Exampleofthemetypes:RangedBarChartPieCharGraduatedSymbolDotDensityIndividualValue,MapX培训教程,81,9ObjectEditing,MapX培训教程,82,FeatureFactory,Anobjectoffofthemapobjectthatallowsyoutodo:FeatureCreationFeatureManipulation,MapX培训教程,83,FeatureFactoryMethods,BufferFeaturesCombineFeaturesCreateArcCreateCircularRegionCreateEllipticalRegionCreateLineCreateRegion,CreateSymbolCreateTextEraseFeatureIntersectFeaturesIntersectionPointsIntersectionTest,MapX培训教程,84,BufferFeatures,Returnsafeaturerepresenti

温馨提示

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

评论

0/150

提交评论