




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、1MapX培訓(xùn)教程培訓(xùn)教程2今天的內(nèi)容今天的內(nèi)容7MapX概述7MapX 基本概念 (Map/Layer/Tools) 7圖層集(Layers)7工具集(Tools)7Selections and Features37查找 (Find)7數(shù)據(jù)集(DataSets)7專題圖(Themes)7對象編輯(Object Editing)7地圖輸出(Exporting Maps)今天的內(nèi)容今天的內(nèi)容41 MapX概述概述5什么是什么是MapX?MapX是MapInfo公司的地圖化的ActiveX, 在使用面向?qū)ο笳Z言(如:VB, VC+, Delphi, PB)開發(fā)的應(yīng)用中嵌入MapX可以使您的應(yīng)用具有
2、強(qiáng)大的地圖功能。MapX提供了各種屬性、方法和事件,實(shí)現(xiàn)對地圖數(shù)據(jù)的各種操作。6Buzzwords7Object 基本術(shù)語基本術(shù)語7對象Object - A thing. Something. Anything.7屬性Property - An adjective that describes an object.7方法Method - An action that an object can do.7集合Collection - A group of similar objects.7事件Event - A reaction an object makes to certain stimul
3、i.8Object Quickview Note: This is the entire object diagramSelectionFeaturesLayerLayersLegendThemesDatasetsMap92 MapX 基本概念基本概念10地圖對象地圖對象Map所有對象的基礎(chǔ)7Everything is off of this object7Maps are the basic building blocks for MapX. Each map is defined by (at minimum) a Layers collection11地圖對象屬性地圖對象屬性(Map P
4、roperties)7Annotations7AreaUnit7AutoRedraw7Bounds7CenterX7CenterY7CurrentTool7DataSet7DataSetGeoField7DataSets7DataSetTheme7DefaultStyle7DisplayCoordSys7DefaultConversionResolution7ExportSelection 7FeatureFactory 7GeoDictionary7Geoset7Geosets7GeoSetWidth7hWnd7Layers7MapPaperHeight7MapPaperWidth7MapU
5、nit7MaxSearchTime7MousePointer7NumericCoordSys 7PaperUnit7PreferCompactLegends7Rotation7SelectionStyle7Title7TitleText7Version7Zoom12CenterX, CenterY, Zoom控制地圖顯示的三個(gè)要素控制地圖顯示的三個(gè)要素7Controls what part of the map is showing7CenterX = Longitude (X coord)7CenterY = Latitude (Ycoord)7Zoom = How many miles(k
6、m, ft, etc) are being displayed across the mapXY13CurrentTool當(dāng)前工具當(dāng)前工具7Sets what tool the user has in their hands7預(yù)定義工具M(jìn)any pre-defined tools, including: &Zoom In/Out&Label&Radius Select &Pan Tool7自定義工具You also have the ability to create custom defined tools14MapX Methods7AboutBox7Cli
7、pLine7ClipLineV7ConvertCoord7ConvertCoordV7CreateCustomTool7Distance7ExportMap7IsPointVisible7PrintMap7PropertyPage7Refresh7SetSize7ZoomToMETHODS15ConvertCoord7Convert between coordinates and coordinates (either direction)7Useful for dealing with Mouse_Move eventsMETHODS16Distance7Computes distance
8、given two pairs of geographic coordinatesMETHODS17ZoomTo7Sets the CenterX, CenterY and Zoom properties with one methodMETHODS18MapX 事件事件 (Events)7AnnotationAdded7AnnotationChanged7Click7DataMismatch7DrawUserLayer7ErrorMapViewChanged7MouseDown7ThemeModifyRequested7MouseMove7MouseUp7PolyToolUsed7Reque
9、stData7ResolveDataBind7SelectionChanged7ToolUsedEVENTS19MapInfo terminology update20Annotations7A collection of text and symbols7Sit on top of all layers7Similar to a maps cosmetic layer in MapInfo Professional21Geosets22GeoSet7A collection of Layers and settings for each layer7Similar to a MapInfo
10、Pro workspace7MapX includes Geoset Manager.exe utility to manipulate geosets23What is a Geoset?7描述地圖屬性的文本文件7類似于 MapInfo Pro workspace7在geoset中設(shè)置每一層地圖的屬性&Through tags in *.gst file&If a tag is absent, MapX uses default value&Look in MapX help for list of all available tags24Geoset!GEOSET!
11、VERSION 100begin_metadataGEOSETNAME = ”SalesAreaGEOSETCENTER = 137.69,38.256GEOSETZOOMLEVEL = 1800GEOSETPROJECTION = 1,0TABLERegions.tabFILE = Regions.tabTABLERegions.tabISVISIBLE = TRUETABLERegions.tabAUTOLABEL = TRUETABLERegions.tabZOOMMIN = 300TABLERegions.tabZOOMMAX = 800TABLERegions.tabDISPLAYP
12、ENLINESTYLE = 2TABLERegions.tabDISPLAYPENLINEWIDTH = 1TABLERegions.tabDISPLAYPENCOLOR = 16711680end_metadata25創(chuàng)建創(chuàng)建/編輯編輯 GeoSets7Use Geoset Manager.exe7Make sure to give each geoset a unique name26Changing Geosets7At Design Time (Property Page)7Map1.Geoset = “United States”&*.gst must be in same
13、directory as GeoDictionary7m_ctrlMapX.SetGeoset(“us.gst”)7Map1.Layers(1).LoadGeosetLayers(“us.gst”)7During Auto matching27GeoDictionary28GeoDictionary7See help topic in MapX 3.57Contains list of registered tables to use during automatic databinding (automatching).7Map.GeoDictionary=“GeoDictionary”7H
14、KEY_LOCAL_MACHINESoftwareMapInfoMapX3.0GeoDictionary=“c:program filesmapinfo mapxmapsgeodict.dct”29GeoDictionary Contents7For each registered file&User friendly name&List of indexed fields&Refining table name&List of Geoset file names30Migm30.exe (Geodictionary Manager)31Command Line
15、 Parameters7Useful for registering tables during an install program7migm30.exe tablepath | geosetpath |tablepath /geoset=geosetfile/file=commandfilepath /remove32Command Line Parameters7See help topic in MapX 3.5 !33Sample 27Annotations, Add, Modify and Remove7Change Map View - Map object properties
16、 and methods7Load Geoset - switch between different geosets343 圖層對象(圖層對象(Layers)35Layers7A collection of Layer Objects &Much like transparencies on an overhead7Each layer has its own attributes&Labels&Zoom Layering &Style Override&Visibility&Selectablility36Pacific Ocean37Lay
17、ers Methods7Add &Add a MapInfo map layer to the layers collection7Remove&Removes a layer from the collection7Move&Repositions a layer within the collection38Layers Methods7CreateLayer&Create a new MapInfo table and add it to map7LayersDlg&Displays a built-in “Layer Control” dialo
18、g to manipulate the layers39Sample 37Layer Control Dialog7Modify part of properties of a Layer7Add a UserDrawLayer404 User Tools41ToolUsed7An event that is fired after a user releases the mouse button from a tools use 7You can find out information such as:&What tool was used&Where user click
19、ed mouse button&Where user released mouse button&Distance between pointsEVENTS42Sample 47 More standard select tools7 A custom tool to show the X-Y coordinate of the cursor435 Selections and Features44Selections7A collection of Feature objects&Created :8When user clicks with a selection
20、tool8By means of the various select methods7MapX automatically highlights all selected features7Each layer object has its own Selection collection45Features Collection7A collection of Feature objects, created by methods of the features object7Similar to the selection object, except:&The features
21、 do not get high-lit&Each layer object may have multiple features collections467SelectAll7ClearSelection7SelectByPoint7SelectByRadius7SelectByRectangle7SelectByRegion7AllFeatures7NoFeatures7SearchAtPoint7SearchWithinDistance7SearchWithinRectangle7SearchWithinFeatureFeature/Selection Methods47Sam
22、ple 57 SearchWithinDistance7 SearchWithinFeature - Search Dealers example7SelectByRectangle7SelectByRegion486 Find49Find7Find allows you to locate items on a map7The layer you are searching must have an indexed column in order for you to utilize the find method50Find Terminology7FindFeature Object i
23、s returned by the search method of the find object7A Refining Boundary is used to distinguish between multiple features with the same name7Result Codes provide information on the Find Object51Sample 67 A Find exaple - Find dealers within Distance nnn of a city of a state527 Datasets53DataBindingDAOO
24、ther SourcesODBCNOTES54Data BindingStateSalesDistrictWA4459 WESTTX6979 SCFL3423 SENY3922 EAST55DataBinding7A way of tying data from an external source to the map7Creates a when data is bound to a MapX map layer7Why?&Theme maps&Query information&Summarization of data geographically56DataT
25、ypes You May Use7Data Access Object Recordset (DAO)7Open DataBase Connectivity (ODBC) data source7Lotus Notes7Delphi Native Data Source7VB Data Control & Remote Data Control7MapInfo Table57Data Binding7When matching records in the database with features on the map, you may specify the match or l
26、et MapX choose using the GeoDictionary7Geodictionary - Maintains information about map layers and their referencing capabilities58GeoDictionaryLet theSpecify the matchYou specify match between your data and the MapX.Data Binding59Three Types of Databinding7Normal& Bind data to existing map featu
27、res7XY Bind Requires use of BindLayer object&Creates symbols on the fly from long/lat coordinates already in your database7PointRef Requires use of BindLayer object&Creates symbols on the fly by matching geographic information in your database against features on an existing map layer60BindL
28、ayer Object7Used as a parameter to the Datasets.add method7Specifies how to create new symbols from your data7Must be able to geo-reference data&Needs Longitude and Latitude &A field that can be matched up against a map layer (zipcode, city, district, etc)61BindLayer Object Properties7CoordS
29、ys7FileSpec7KeyLength7LayerName7LayerType7RefColumn17RefColumn27ReferenceLayer62Cached Data Binding7Aggregation done by MapX7Data cached by MapX&Initial load time on Datasets.Add&Fast redraw & thematics7Bogs down for very large datasets63 “Normal” Data Binding7Datasource Fields aggregate
30、d and attached to an existing map layer7You can specify Key Field and/or Layer&OR7MapX can determine Key Field and/or Layer64X-Y Data Binding7Datasource already contains X & Y coordinates7You specify X,Y and Key Fields via BindLayer object7New point layer is created7Remaining datasource fiel
31、ds are bound to the new layer as a dataset65Point Reference Binding7Datasource contains geographic key such as zipcode7You specify key Field and Reference layer via BindLayer object7New point layer is created with a point for each row in the datasource7Remaining datasource fields are bound to the ne
32、w layer as a dataset66Dynamic DataBinding&Aggregation done by Datasource&Data fetched when needed by MapX8No initial wait on Datasets.Add8Redraw speed dependant on Datasource speed8Data is requested by Geographic Key&Can handle very large datasets&XY and Point reference binds are not
33、 supported67Custom Dataset Types7COM Based&Standard extensible architecture7Install, Register, and Go7Documented in Help File7Examples&Notes&ODBC&Delphi68Data Binding Demo7Dynamic vs Normal7X-Y and PointRef7Uses ODBC Dataset7C+ code samples (uses C+ wrappers)69Sample 77 5 examples of
34、 Data Binding of data type:DAO, ODBC, SetLayer, GlobalHandle, and Unbound7And of binding type of normal, X-Y point, and point reference708 Themes71專題圖(專題圖(Themes)7Thematic mapping is the process of shading your map based on your data.7A valuable data visualization tool7Many examples&High Income
35、areas&Population Distribution&Rainfall maps&Sales distribution maps72Types of Themes7Ranges7Pie Chart7Bar Chart7Graduated Symbol7Dot Density7Individual ValueThese themes may be “l(fā)ayered” on top of one another7374Creating Themes7A Theme hangs off of a dataset in the object model7You add a
36、 theme to a dataset75Manipulating a Theme7ThemeDlg method7Modify the ThemeProperties object76Modify Theme Dialogs included with MapX77Legend7The key to understanding a theme7Tells what each style on the map means data-wise7You may modify the Legend by&Using the LegendDlg method (easiest)&Mod
37、ifying each LegendText object individually&Modifying the LegendTitle and SubTitle78Modify Legend Dialog79Time to see this stuff in action7More of the VB sample app, showing:&Adding Datasets&Using a BindLayer object&Creating a Theme80Sample 87 Example of theme types:&Ranged&Ba
38、r Chart&Pie Char&Graduated Symbol&Dot Density&Individual Value819 Object Editing82Feature Factory7An object off of the map object that allows you to do:&Feature Creation&Feature Manipulation83FeatureFactory Methods7BufferFeatures7CombineFeatures7CreateArc7CreateCircularRegion7CreateEllipticalRegion7CreateLine7CreateRegion7CreateSymbol7CreateText7EraseFeature7IntersectFeatures7IntersectionPoints7IntersectionTest84BufferFeatures7Returns a feature representing a buffer region. 85EraseFe
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度道路護(hù)欄施工安全教育與培訓(xùn)合同
- 動態(tài)工作流程協(xié)議
- 二零二五年度國際象棋錦標(biāo)賽贊助合同
- 二零二五年度居住權(quán)租賃合同終止與租賃物交接協(xié)議
- 二零二五年度航空業(yè)飛行員聘用合同樣本
- 二零二五年度導(dǎo)演與化妝師聘用合同
- 二零二五年度戀愛雙方家庭聚會及節(jié)日慶祝協(xié)議
- 2025至2030年中國哌拉西林鈉數(shù)據(jù)監(jiān)測研究報(bào)告
- 2025至2031年中國籃圈行業(yè)投資前景及策略咨詢研究報(bào)告
- 2025年安徽體育運(yùn)動職業(yè)技術(shù)學(xué)院單招職業(yè)傾向性測試題庫帶答案
- 2025天津市安全員-B證考試題庫附答案
- 二年級下冊數(shù)學(xué)口算題-可打印
- 公司信息化安全規(guī)章制度及操作手冊
- 新風(fēng)施工合同
- 2025-2030年園藝修剪機(jī)器人行業(yè)深度調(diào)研及發(fā)展戰(zhàn)略咨詢報(bào)告
- 福建省南平市2024-2025學(xué)年九年級上學(xué)期期末語文試題(解析版)
- 人教版四年級數(shù)學(xué)下冊第四單元測試卷(含答案)
- 2025年湖北省技能高考(建筑技術(shù)類)《建筑工程測量》模擬練習(xí)試題庫(含答案)
- 2023年中國綜合社會調(diào)查調(diào)查手冊
- 2024-2027年中國網(wǎng)絡(luò)安全評估行業(yè)發(fā)展監(jiān)測及投資戰(zhàn)略研究報(bào)告
- 失智老年人照護(hù)X證書制度試點(diǎn)工作養(yǎng)老護(hù)理職業(yè)和失智老人照護(hù)員工種的發(fā)展講解
評論
0/150
提交評論