untitled

Similar documents
untitled

untitled

ArcGIS Sever.NET ArcGIS Server Web JAVA ArcGIS Server Web

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F

Visual Basic D 3D

untitled

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF

untitled

<ADB6ADB1C25EA8FAA6DB2D4D56432E706466>

EJB-Programming-4-cn.doc

untitled

EJB-Programming-3.PDF

Chapter 16 集合

ebook140-9

Microsoft Word - 01.DOC

untitled

多層次傳銷與獎金系統

27 :OPC 45 [4] (Automation Interface Standard), (Costom Interface Standard), OPC 2,,, VB Delphi OPC, OPC C++, OPC OPC OPC, [1] 1 OPC 1.1 OPC OPC(OLE f

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

untitled

untitled

untitled

untitled

untitled

untitled

RUN_PC連載_8_.doc

1 Internet [1]P Web Service Web Service Web XML HTTP URL 1..NET Framework.NET Framework Web Service HTTP 80.NET Framework 2

( 总 第 1073 期 ) 浙 江 省 人 民 政 府 主 办 2015 年 3 月 17 日 出 版 省 政 府 令 省 政 府 文 件 目 录 浙 江 省 大 型 群 众 性 活 动 安 全 管 理 办 法 ( 浙 江 省 人 民 政 府 令 第 333 号 ) (3) 浙 江 省 人 民 政

Simulator By SunLingxi 2003

(TestFailure) JUnit Framework AssertionFailedError JUnit Composite TestSuite Test TestSuite run() run() JUnit

RunPC2_.doc

epub 61-2

IP505SM_manual_cn.doc

基于ECO的UML模型驱动的数据库应用开发1.doc

ebook140-8

untitled

untitled

概述

VB控件教程大全

Microsoft Office SharePoint Server MOSS Web SharePoint Web SharePoint 22 Web SharePoint Web Web SharePoint Web Web f Lists.asmx Web Web CAML f

第一章 章标题-F2 上空24,下空24

WinMDI 28

國 史 館 館 訊 06 期 張 存 武 教 授 ( 略 ) 劉 維 開 教 授 17

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

untitled

59 1 CSpace 2 CSpace CSpace URL CSpace 1 CSpace URL 2 Lucene 3 ID 4 ID Web 1. 2 CSpace LireSolr 3 LireSolr 3 Web LireSolr ID

IsPostBack 2

RUN_PC連載_10_.doc

ebook 96-16

Microsoft Word - Web Dynpro For ABAP跟踪测试工具简介 _2_.doc

05 01 X Window X Window Linux Linux X Window X Window Webmin Web Linux Linux X Window X Window Notebook PC X Window X Window module Linux Linux kernel

Text 文字输入功能 , 使用者可自行定义文字 高度, 旋转角度 , 行距 , 字间距离 和 倾斜角度。

BC04 Module_antenna__ doc

无类继承.key

RunPCPB8 new feature.PDF

Microsoft Word - ch04三校.doc

chapter 2 HTML5 目錄iii HTML HTML HTML HTML HTML canvas

untitled

基于CDIO一体化理念的课程教学大纲设计

ebook

(CIP) Web /,. :, ISBN X.W T P393.4 CIP (2004) Web ( ) ( / ) : * 787

untitled

(Geographic data or geodata ) 30 (Buelher, K and L. Mckee1996) (Open GIS Consortium OGC) OGC GIS Open GIS OGC (Geography Markup Langu

1 1 大概思路 创建 WebAPI 创建 CrossMainController 并编写 Nuget 安装 microsoft.aspnet.webapi.cors 跨域设置路由 编写 Jquery EasyUI 界面 运行效果 2 创建 WebAPI 创建 WebAPI, 新建 -> 项目 ->

BYOD IP+Optical (IP NGN) API 4. End-to-End (Service Aware) 5. IP NGN (IP Next Generation Network) ( ) Prime Carrier Management Access Edge Co

声 明 本 公 司 及 全 体 董 事 监 事 高 级 管 理 人 员 承 诺 不 存 在 任 何 虚 假 记 载 误 导 性 陈 述 或 重 大 遗 漏, 并 对 其 真 实 性 准 确 性 完 整 性 承 担 个 别 和 连 带 的 法 律 责 任 本 公 司 负 责 人 和 主 管 会 计 工

1.ai

投影片 1

untitled

Microsoft Word - template.doc

Oracle高级复制配置手册_业务广告_.doc

RUN_PC連載_12_.doc

本 课 程 作 为 非 计 算 机 专 业 本 科 通 识 课 程, 是 一 门 理 论 和 实 践 紧 密 结 合 的 实 用 课 程, 内 容 包 括 计 算 机 基 础 部 分 和 程 序 设 计 部 分 计 算 机 基 础 部 分 涵 盖 计 算 机 软 硬 件 组 成 数 制 表 示 操

Microsoft PowerPoint - Lecture7II.ppt

Microsoft Word - 面向应用能力,构建师范院校计算机公共课程 “三层次教育”课程体系new.doc

VB程序设计教程

TopTest_Adminstrator.doc

Microsoft Word - 最新正文.doc

ext-web-auth-wlc.pdf

untitled

使用Delphi .NET开发-aimingoo

untitled


untitled

06 01 action JavaScript action jquery jquery AJAX CSS jquery CSS jquery HTML CSS jquery.css() getter setter.css('backgroundcolor') jquery CSS b

Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram

Move Component Object selection Component selection UV Maya Hotkeys editor Maya USING MAYA POLYGONAL MODELING 55

投影片 1

1. 2. Flex Adobe 3.

epub 66-4

<4D F736F F D20312D3120D5D0B9C9CBB5C3F7CAE9A3A8C9CFBBE1B8E5A3A92E646F63>

mvc

AL-M200 Series

穨文件1

(Microsoft Word - \272\364\263q\245|\244A_ _\304\254\253\330\336\263__\272\353\302\262\263\370\247i.doc)

A API Application Programming Interface 见 应 用 程 序 编 程 接 口 ARP Address Resolution Protocol 地 址 解 析 协 议 为 IP 地 址 到 对 应 的 硬 件 地 址 之 间 提 供 动 态 映 射 阿 里 云 内

<BABAD3EFD1D4CEC4D1A7D7A8D2B5D1A7C9FABBF1B5C3B8F7C0E0D7CAB8F1B4D3D2B5D6A4CAE9C7E9BFF6CDB3BCC6B1ED2E786C73>

Basic System Administration

使用SQL Developer

<4D F736F F D C9CFB0EBC4EACFB5CDB3BCAFB3C9CFEEC4BFB9DCC0EDCAA6C9CFCEE7CAD4BEED>

Transcription:

ADF Web

ArcGIS Server ADF GeocodeConnection control 4-2

Web ArcGIS Server Application Developer Framework (ADF).NET interop semblies.net Web ADF GIS Server 4-3

.NET ADF Web Represent the views in ArcMap Page layout, map, overview Toolbar, TOC, North Arrow, etc. Match addresses using geocode server objects Impersonation 4-4

.NET ADF Web : ASP.NET Web.NET server objects Server API 4-5

Web controls buddy server object ToolbarControl TOCControl Buddy Control 4-6

AGSWebControl Host ServerObject ReleeServerContext ServerConnection ContentsChanged Get Get the the mapserver mapserver object object mapctrl1.host mapctrl1.host "Sparticle" "Sparticle" mapctrl1.serverobject mapctrl1.serverobject "RedlandsMap" "RedlandsMap" mapctrl1.dataframe mapctrl1.dataframe "RedlandsLayers" "RedlandsLayers" 4-7

Web Web GIS Web : : GIS Server API ArcObjects Web control (user interface) Convenience cls (GIS business logic) 4-8

Map control Map ImageUrl Draw Extent MapDescription CreateWebMap Public Public Sub Sub updatemapimage(byval updatemapimage(byval imgresult imgresult IImageResult) IImageResult) Map1.ImageUrl Map1.ImageUrl imgresult.url imgresult.url Map1.Draw() Map1.Draw() Sub Sub 4-9

Map : Map Circle DragRectangle MapClick Private Private Sub Sub Map1_MapClick(ByVal Map1_MapClick(ByVal sender sender System.Object, System.Object, ByVal ByVal args args ESRI.ArcGIS.Server.WebControls.PointEventArgs) ESRI.ArcGIS.Server.WebControls.PointEventArgs) Handles Handles Map1.MapClick Map1.MapClick screenpoint screenpoint System.Drawing.Point System.Drawing.Point screenpoint screenpoint args.screenpoint args.screenpoint...... Sub Sub 4-10

Map WebMap MapServer DefaultMapDescription ManageLifetime ConvertRecordSetToDataSet ReleeServerContext ServerContext Refresh webmap webmap WebMap WebMap Map1.CreateWebMap() Map1.CreateWebMap() Try Try webmap.drawfullextent() webmap.drawfullextent() webmap.refresh webmap.refresh Finally Finally webmap.dispose() webmap.dispose() Try Try 4-11

WebMap: server object WebMap server object ArcObjects Map control (User interface) WebMap (Convenience cls) webmap webmap webmap webmap Try Try webmap webmap Map1.CreateWebMap Map1.CreateWebMap mapdesc mapdesc IMapDescription IMapDescription webmap.mapdescription webmap.mapdescription mpsvr mpsvr IMapServer IMapServer webmap.mapserver webmap.mapserver mpsvrinfo mpsvrinfo IMapServerInfo IMapServerInfo mpsvrinfo mpsvrinfo mpsvr.getserverinfo(mpsrv.defaultmapname) mpsvr.getserverinfo(mpsrv.defaultmapname) mpsbookmark mpsbookmark IMapServerBookmarks IMapServerBookmarks mpsbookmark mpsbookmark mapserverinfo.bookmarks mapserverinfo.bookmarks bookmark bookmark IMapServerBookmark IMapServerBookmark bookmark bookmark mapserverbookmarks.get_element(1) mapserverbookmarks.get_element(1) maparea maparea IMapArea IMapArea bookmark bookmark mapdesc.maparea mapdesc.maparea maparea maparea webmap.mapdescription webmap.mapdescription mapdesc mapdesc webmap.refresh() webmap.refresh() Finally Finally webmap.dispose webmap.dispose Try Try 4-12

Page layout ToolItems CreateWebPageLayout PageDescription WebLayoutImage webimage webimage WebLayoutImage WebLayoutImage webimage webimage PageLayout1.WebLayoutImage PageLayout1.WebLayoutImage layoutcoll layoutcoll LayoutImageDataFrameInfoCollection LayoutImageDataFrameInfoCollection layoutinfo layoutinfo LayoutImageDataFrameInfo LayoutImageDataFrameInfo layoutcoll layoutcoll webimage.maps webimage.maps layoutinfo layoutinfo layoutcoll.item(0) layoutcoll.item(0) visibleextent visibleextent System.Drawing.Rectangle System.Drawing.Rectangle visibleextent layoutinfo.visiblelocationonimage() visibleextent layoutinfo.visiblelocationonimage() 4-13

Page layout WebPageLayout server object ArcObjects PageDrawExtent FromPagePoint ServerObject Export WebToc IsPooled pglayout pglayout WebPageLayout WebPageLayout Try Try pglayout pglayout PageLayout1.CreateWebPageLayout() PageLayout1.CreateWebPageLayout() env env IEnvelope IEnvelope env env pglayout.servercontext.createobject( esrigeometry.envelope ) pglayout.servercontext.createobject( esrigeometry.envelope ) env.putcoords(0,0,1,1) env.putcoords(0,0,1,1) pglayout.pagedrawextent(env) pglayout.pagedrawextent(env) Finally Finally pglayout.dispose() pglayout.dispose() Try Try 4-14

Overview map AOIExtent BuddyControl OVMapChanged WebMap mapextent mapextent Extent Extent mapextent mapextent New New Extent Extent (480821.28,3768550.94, (480821.28,3768550.94, 482268.11,3769892.34) 482268.11,3769892.34) Specify Specify the the new new map map extent extent Map1.Extent Map1.Extent mapextent mapextent Map1.Draw() Map1.Draw() Specify Specify Area Area of of Interest Interest for for Overview Overview Map Map OverviewMap1.AOIExtent mapextent OverviewMap1.AOIExtent mapextent OverviewMap1.Draw() OverviewMap1.Draw() 4-15

session state Web session state Image MapDescription ServerContext Extent page IDs <page><control id> : MapDescription Default.pxMap1_md 4-16

Session state Web server context session state object server context session state context Check Check session session for for ServerContext ServerContext sess_ctx sess_ctx String String sess_ctx sess_ctx String.Format( servercontext_sparticle_redlandsmapobj ) String.Format( servercontext_sparticle_redlandsmapobj ) sessobj sessobj object object Session(sess_ctx) Session(sess_ctx) If If Not Not sessobj sessobj Is Is Nothing Nothing Then Then 'ServerContext 'ServerContext saved saved in in session session for for non-pooled non-pooled SO SO sc sc IServerContext IServerContext sessobj sessobj Work Work with with the the servercontext servercontext If If 4-17

Web session state server object Server object :,, 4-18

MapDescription server object 1. Web server object WebMap::ApplyMapDescriptionToServer 2. server object 3. server object WebMap::RefreshServerObjects 4. WebMap Update Update Server Server Object Object webmap webmap WebMap WebMap Map1.CreateWebMap() Map1.CreateWebMap() webmap.applymapdescriptiontoserver() webmap.applymapdescriptiontoserver() Make Make fine-grained fine-grained changes changes mapserverobj mapserverobj IMapServerObjects IMapServerObjects mapserverobj mapserverobj webmap.mapserver webmap.mapserver map map IActiveView IActiveView map map mapserverobj.map( Default ) mapserverobj.map( Default ) map.clearlayers() map.clearlayers() Update Update map map server server and and webmap webmap webmap.refreshserverobjects() webmap.refreshserverobjects() webmap.refresh() webmap.refresh() 4-19

server context server objects WebMap::Dispose WebMap server context server objects WebMap::Dispose WebMap server context session server context WebMap::ReleeServerContext Using(WebMap Using(WebMap webmap webmap Map1.CreateWebMap()) Map1.CreateWebMap()) { { ) ) webmap webmap WebMap WebMap Map1.CreateWebMap() Map1.CreateWebMap() Try Try...... Finally Finally webmap.dispose webmap.dispose Try Try Sub Sub Session_(ByVal Session_(ByVal sender sender Object, Object, ByVal ByVal e e EventArgs) EventArgs) obj obj Object Object For For i i 0 0 To To Session.Count Session.Count - - 1 1 obj obj Session(i) Session(i) If If TypeOf TypeOf obj obj Is Is WebPageLayout WebPageLayout Then Then pglayout pglayout WebPageLayout WebPageLayout pglayout pglayout obj obj pglayout.releeservercontext() pglayout.releeservercontext() If If Next Next Session.RemoveAll() Session.RemoveAll() Sub Sub 4-20

.NET : WebObject webobject webobject WebObject WebObject New New WebObject WebObject webobject.managelifetime(cursor) webobject.managelifetime(cursor)...... webobject.dispose() webobject.dispose() 4-21

ArcGIS Server ADF GeocodeConnection control 4-22

GeocodeConnection geocode server object System.Component.Model.Component : WebGeocode 4-23

GeocodeConnection GeocodeConnection Host, ServerObject ShowAllCandidates MinimumMatchScore CreateWebGeocode WebGeocodeCode LocatorProperties ServerContext GeocodeAddress geocodeconnection1.host geocodeconnection1.host Sparticle Sparticle geocodeconnection1.serverobject geocodeconnection1.serverobject RedlandsGeocode RedlandsGeocode webgeocode webgeocode WebGeocode WebGeocode webgeocode webgeocode geocodeconnnection1.createwebgeocode geocodeconnnection1.createwebgeocode propset propset IPropertySet IPropertySet propset propset webgeocode.locatorproperties webgeocode.locatorproperties names() names() Object Object values() values() Object Object name name Object Object value value Object Object propset.getallproperties(names,values) propset.getallproperties(names,values) Get Get the the properties properties For For Each Each name name in in names names Response.Write(name) Response.Write(name) Next Next For For Each Each value value in in values values Response.Write(value) Response.Write(value) Next Next 4-24

TOC Toolbar NorthArrow ScaleBar Impersonation 4-25

ToolbarControl TOCControl buddy : active tool, layer visibility Tool Toolbar TOC Buddy Control 4-26

Buddy TOC buddy Overview buddy Toolbar buddy 4-27

buddy buddy control TOC::BuddyControl OverviewMap::BuddyControl Toolbar::BuddyControls 'set 'set the the TOC TOC buddy buddy Toc1.BuddyControl Toc1.BuddyControl "Map1" "Map1" 'set 'set the the toolbar toolbar buddy buddy Toolbar1.BuddyControlType Toolbar1.BuddyControlType BuddyControlType.Map BuddyControlType.Map Toolbar1.EnableViewState Toolbar1.EnableViewState True True buddycontrolcol buddycontrolcol BuddyControlCollection BuddyControlCollection buddycontrolcol buddycontrolcol Toolbar1.BuddyControls Toolbar1.BuddyControls buddymap buddymap BuddyControl BuddyControl New New BuddyControl BuddyControl buddymap.name buddymap.name "Map1" "Map1" buddycontrolcol.add(buddymap) buddycontrolcol.add(buddymap) 4-28

: TOC control : WebTOC WebMap WebPageLayout webmap webmap WebMap WebMap Map1.CreateWebMap Map1.CreateWebMap webtoc webtoc WebToc WebToc webmap.webtoc(webimageformat.bmp, webmap.webtoc(webimageformat.bmp, False, False, Nothing) Nothing) tocdataframe tocdataframe TocDataFrame TocDataFrame tocitem tocitem TocItem TocItem tocdataframe tocdataframe webtoc.find("redlands webtoc.find("redlands Schools") Schools") tocitem tocitem tocdataframe.find("streets") tocdataframe.find("streets") islayervisible islayervisible Boolean Boolean If If tocitem.visiblity tocitem.visiblity LayerVisibility.NotVisible LayerVisibility.NotVisible Then Then islayervisible islayervisible False False If If 4-29

: : Web : 4-30

: Impersonation Web GIS server Win32 API LogonUser agsusers agsadmin 4-31

: Toolbar Toolbar items Tool Command Space Separator 4-32

toolbar ToolbarItem Collection ToolbarItemCollection::Add Public Public sub sub addtool(toolitem addtool(toolitem ToolBarItem) ToolBarItem) Toolbar1.ToolbarItems.Clear() Toolbar1.ToolbarItems.Clear() Toolbar1.ToolbarItems.Add(toolItem); Toolbar1.ToolbarItems.Add(toolItem); Sub Sub 4-33

Tools : JavaScript Tool (e.g., ZoomIn tool) Client-side action (DragRectangle) JavaScript JavaScript fires server-side action Server-side action (Zooms in to specified region) 4-34

JavaScript All documented ( 5) ClientToolAction JavaScript MapClientToolAction JavaScript Function PageLayoutClientToolAction JavaScript Function Point MapPoint Point PagePoint DragImage MapDragImage DragImage PageDragImage DragRectangle MapDragRectangle DragRectangle PageDragRectangle Line MapLine MapDragImage PageMapDragImage Oval MapOval MapDragRectangle PageMapDragRectangle Polygon MapPolygon MapPoint PageMapPoint Polyline MapPolyline Circle MapCircle 4-35

Sends request to server object to access to the map ESRI.ArcGIS.Server.WebControls.Tools namespace 4-36

toolbar Tool::ClientToolAction Tool::ServerToolActionsembly Tool::ServerToolActionCls ToolbarItems Collection zoomintool zoomintool Tool Tool New New Tool("MapZoomIn") Tool("MapZoomIn") zoomintool.clienttoolaction zoomintool.clienttoolaction "DragRectangle" "DragRectangle" zoomintool.servertoolactionsembly zoomintool.servertoolactionsembly "ESRI.ArcGIS.Server.WebControls" "ESRI.ArcGIS.Server.WebControls" zoomintool.servertoolactioncls zoomintool.servertoolactioncls "ESRI.ArcGIS.Server.WebControls.Tools.MapZoomIn" "ESRI.ArcGIS.Server.WebControls.Tools.MapZoomIn" zoomintool.text zoomintool.text "MapZoomIn" "MapZoomIn" zoomintool.name zoomintool.name "ZoomIn" "ZoomIn" Toolbar1.ToolbarItems.Add(zoomInTool) Toolbar1.ToolbarItems.Add(zoomInTool) 4-37

MapToolItems/PageToolItems : HTML button MapToolItem Collection <INPUT <INPUT id"button1" id"button1" onclick"mapdragrectangle('map1','magnify',true)" onclick"mapdragrectangle('map1','magnify',true)" type"button" type"button" value Magnify" value Magnify" style"z-index: style"z-index: 102; > 102; > 4-38

: ServerToolActionCls - MapZoomIn Map::DrawRectangle Private Private Sub Sub Map1_DragRectangle(ByVal Map1_DragRectangle(ByVal sender sender Object, Object, ByVal ByVal args args ToolEventArgs) ToolEventArgs) Handles Handles Map1.DragRectangle Map1.DragRectangle If If args.toolname args.toolname Magnify" Magnify" Then Then rectargs rectargs RectangleEventArgs RectangleEventArgs rectargs rectargs args args pt1 pt1 New New ScreenPoint ScreenPoint pt1.x pt1.x rectargs.screenextent.left rectargs.screenextent.left pt1.y pt1.y rectargs.screenextent.bottom rectargs.screenextent.bottom...... 4-39

4 Web,,,TOC Toolbar Host, server object BuddyControls TOC API 4-40

server object??? 4-41