Introduction to ArcObjects (IGIS) 01 Getting to know ArcObjects

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi guys and welcome to our joyous Channel I must apologize one be the holder of mass at the G&G is my measure front of or focuses on J a softer development by using years and models I have similar years experience in special development by interpreting of Jerry's engine components we can object-oriented programming language in custom desktop applications and using ESRI apiaries in web GIS applications okay let's go ahead and get started in the first part of our let's start with the definition of GIS and try to explain where we are and what we want to do the next part is dedicated to understanding our objects there are trying to explain the basics of our objects to give you an overview in locating objects moment diagrams there are trying to explain how to use your objects they are to help him write some code we can see the definition of Kiryas from various kind of resources and the most have main components of us in common today is an organized collection computer hardware software Geographic data and personal design to effectively capture store manipulate analyze and display data related to position on the Earth's surface from the definition of Jarius five main components can be recognized including software equal methods their data and redundant time in the software component JIRA software products can be sorted into different categories control software and commercial software in this course we focus on software products from ESRI company and now we know yes arches is the most powerful mapping software in evolving there are five major software categories from is are a company from desktop periods we all know our kids for desktop are returned our product we probably know how to use for server and arc I am from server.js products and stickers for data that Java and mobile for example from moon of the GIS and of course of cheese engine that needs to use to develop standard mapping applications and I'll put them up here is mobile open jails category in this course will focus on using seeker for that and from developer Jarius products from the company has a developer of RTS applications we have to work with our objects let's solve a definition of art objects our objects is a library of components that make up the foundation of our case here in a stove with arcgis desktop engine a server program Anansi write C++ code with mark objects classes little stars to tell you about the objects in more details the first and important thing is our objects are not objects here classes they were building blocks of part based applications like our map and our catalog as I said everything now J's applications are built from our cupcakes menus toolbars tools and even every document window are built from our cupcakes even every layer with different geometries planes lines and polygons are built from our objects so it's very important know when you're working with obvious application you're working with our context so the main point here is why we have to learn about your own cultures my person is that even you Raj is expert learning objects provides you more flexibility with working with objects for example we all know obvious applications are very powerful tools in mapping functionality but sometimes they don't mean avoidance for example sometimes you need for Jarius automation so using art objects is one of your ways or way we develop a tool or an extension sometimes we need to develop a standard application backing functionality without using our chased applications or even web GIS applications we need our using arc objects in all these scenarios so markup chips can be used in the following ways some additional purchases of applications applications and developing various applications customization apart areas can be done into four ways capability it's about areas by using customized window using model builder by providing graphical interface and without need for coding but sometimes we need more flexibility and you have to use ultimate cooking and using the objects is one of 10 ways for customizing about years and also it's one of the way for Jarius automation so for using arc objects we need software development kit like hard objects sticker can be sold with arcgis desktop and genell server it does the job we have access to invaluable resources of sample codes and documentation there are two type of a sticker for serious test of developers take up the framework and in this course we focus on using hiccup or data framework and all righty is visual okay let's start with our first program which is hurrying the name of first they are in an active data frame in a specific document in arcmap application before coding let me to give you a good advice for learning our objects the best way is doing the same without my application before coding of course if it is possible so for reading the name of first layer the first step is opened our map application as we know arcmap application and everything in the application is built from our copies the next step is to select our specific document and now we I select session documents which I want our humans and then open of course the next step is find active data frame this year we have one data frame which is by default active data frame and then we in the name of first layer which is cities here so our steps are reading hard map reading map document find activated data frame and the read the name of first the year name but now where is the classes where is a class of parchment map document date of rain and layer there are two indispensable and important tools for J's developers that can provide road maps for GIS developers architects developer help and object model diagrams let's start with our public civil - our object which is offline when you miss donestk you have access to our projects development in local in your system i expanded our country crystal key for a key areas and then our object reference all our cupcakes classes are catalyzed in these namespaces you may know some of them like or catalog park map cart or display your database geometry okay where is our classes there is a class of arcmap here in our cobb ject I select the arcmap namespace and then arcmap object model diagram you can download the up oh and E for arcmap here or you have access to the object model diagrams in your developer kit and diagrams directory in your system for each namespace we have one PDF object mother Day event for example for arcmap namespace here we are at map objects military I open the arcmap object model here is arcmap object model our project classes are showed by yoon eun per language unified modeling language which is a graphical language passes a short rectangle shape here we are you have application class and a big class object one application class is the class of arcmap application let's take a look at application class in more details until you about to all kinds of classes and relationships between classes in the next session but for now it is necessary to know some details each class has its own properties and methods and these properties and methods belong to my application interface these are interfaces of application class for now you have to know will communicate by interfaces between classes and these properties and methods belong to an application because the application stick in the ignore job application class another click to outer edge of application class so this is more than people is properties admitted belong to my application interface so next step is find a class about the document inner of Narva where is a document class we can see a wormhole here which is used to show us an extraction class is in our it material in the namespace so so let me to open the argument you I object model diagram artifact UI object nor the diagram look at me you mean find a different class ok here is a mixed document class and here is again called application in our my borehole application not map UNIX documents you know my device next are humans not my boy now the next step is finding a top-ranked class then read the name of first via again part of you I imitate and if talking about class you have to find can also teach a fight okay there is a game a wormhole Magna Carta the name of class nor Coptic for data frame is math so to reach the map class you have to open cartoon in space object model diorama carton but me open object model diagram of carton here is cut okay here's Carl toe and we need various map class Louise but let's begin let me start him in arcmap you I mixed a human arm of you i mopping carto a mixed-up me mark my UI and in here is map carton here is a class of data frame in arcmap application okay the final step is find layer class and ending and then wait the name of first layer so where is the class of layer again and again here is wormhole to show their class they are in car two layers of now BR in carto namespace so there is a layer class names free you can find their class in car tour with the default interface of pi the year and hearing is the name property of there let's recap the main point great neva firstly actively to frame the specific document in the map application we have to do for estate open-heart man the plus of arcmap in our culture class is application open the our document class of document dark objects is an experiment kids activity data frame the closet data frame in our projects is and then it yeah the year class okay we are ready for coding before programming with art objects you have to be familiar with an object-oriented programming language like C sharp or vb.net or Java in this course we use Visual Studio E and C sharp the programming language for a start new projects activity on your project link my default language is sous chef Lynette and then I expanded activity is known and then select desktop IDs there are two type of ID in our catalog called rock scene and off key I select art map again as well to my favorite folder yes and then the name of the year get their name okay you know choice and easie you can set some some parameters for our adding I'll tell you about these in the next session don't worry about them and just remember our ID name is gates layer name you have to check the padding type I checked the bottom and then class name through your name and capture never again be space okay so perfect here is like category in control category our again will add to the controls category fish here is our first and gives our parameters for example class it's real name actually bodies more details in the next session and now we want to write some coding gets me your name I double click on it gives me your name dots yes and you have to write ok already working and progestin is with our class I grabbed a depletion augment that application is for verses that when you're writing your edits it's very important as ultimate application returns an object that implements our application interface and again our multiplication returns an object that implements my application interface and here is our application and my application interface so when you write that's how to access the properties and methods our application caption color tool and arguments caption : document and sample new document document document dual argument open document and print document your exactly the same with the OMB and the developer help our application class so how we can Isis how we can communicate between application class and document callous application class and document class in our WI you have to find a way communicate between these classes because I know the second step is to read the magic that implements I am Easter human or an object of a mr. HUMINT class so we have to find the method property equation as for my application who communicate between two classes look at his caption encoding humans document with hands about it I document interface I tell you I'll tell you about them just here Monsieur here document properties written by document face and here he is like the human interface document class so we find the way if you want to know exactly about these properties and methods you have to find and with our objects here architects were friends arch map name is PA sort of living space classes here is application class and the application interface I click on it this exactly the same caption color to document find extension by clsid point is nibbles in the caption current tool and document and you can find a small description about every property and method or you can click on it define more description of the or sometimes sample code okay you want to use document property ok here is more details about document property which returns I documents that I document and and snippet codes and the sample polls we've used stupid codes in the next sessions so the human property of application interface it's exactly the same you want communicate between two classes application class and then we start here in class so you have to write variable an object of a document and then assign the value okay I humans argument and application that document inside document when you don't have interests been doing Visual Studio maybe something is wrong with you the type or Remus with name my document could not be found so we have to import the references that I document is defined there so where is the difference of my document here he is a document I click on it and document interface is in fast reaction I guess frame their friends and Hughie's as it are she is a scrapbook yeah we already have it done in school you have using ESRI ArcGIS third frame okay that is correct and the next step is to find a way to go to the our staff we have to find a way to find math object in carto object app last part oh so we had to find the way to communicate between these classes from the humans from document to data frame the default name it speaks of a system app and we must respond with documents I am ecstatic him and again we have to find he says method and property to return an object our map class again and find my mom here I'm up here and maps and I'm apps and focus maps and I map because map property of this map return an object that implements a map interface of map yes their phase I'm up so we have to use focus my property but here now we have a pointer to a document interface and we need to obtain that pointer - are you mr. Chia with interface because focus map the property of IMS document focus map here the list of properties of famous documents not by document so how we can do that we need to query interface Qi let me to show you by coding first I have declare a variable of aim is document by umekes document again we don't have since we need to obtain the reference of an image document and it is the prince of my image document by the places I am are eunuchs document is document interface document interface in SGR chase automatically so you have to add some serious or you have it up cheers as thank you so much joy so you know your name a space you have by document is correct the document document beaneasy against I it means a human you chaste document Who I am ecstatic imminent I and then assigned to a mr. Collins go now we have a pointer to a Miss document interface analysis to focus map property that returns a map interface which is the interface of math class in corto so at first I declare a variable a map a map and we don't have and we know him a curious part to any developer [Music] okay in Carter Carter places I mapped the face in ESRI ArcGIS Carter so in the recommend you stop Navis place we don't have as we are curious Carter so we have to add quite big on the currents that reference and select extension centuries ray Algeria's Carter check and okay here we have a sea of Giotto and just we need to using has read a lot of areas of art and tricks document dogs we know what we do because you active view contents view [Music] activated view active view and contents view properties of every stock human class and we need focus map which returns a map focus map 2011 origami I tell you about it okay obtain a reference whatever to a map interface in my class the best part is to obtain the reference to be your class and then with the name of layer card here map class and here's one over the earring in your car to and the future tree in court object model the page of tree here is we have less and are you in the face so my class you have to find again a painter and click right here and here is the property take parameter in Blowing it easier and it retains a layer so you have to use their property to get the first layer and mix up zero okay you have to the clear earlier pointer okay hi there glasses were there because the editors GOG is carto format and their map but layer in the South you know anymore first you know activate the theta brain the second layer is we make them self one but we have another because in programming our cupcakes using C sharp when you want to use properties that taste parameters I hear ears and neurons surround when you want to get the value you have to add get underlined before the name of property is hunger my now it's correct but you want to set value you have to add set on the right before the new your property okay you have a pointer to I layer place in the page of we up your class and here is a layer interface layer class and this is a name property which returns string which is the name of layer okay don't worry about this I think this is a mistake but I don't know why as we developers do not correct it because these properties and method belongs in a layer interface nuts i jus dataset okay let's get the name string name here that name and to show the name can use teach Bosco has which is in system that windows at for that we don't have is white cubicle and references other friends system that mean those dots you can search it sometimes windows that forms okay and if using pink system windows sorry system in those forms and box people or solution you'll succeed you for under our project you have to close our publication and then start okay if you get this error you have to set the correct class three project I right-click on my project name the properties and then debug start axonal program we have to set up two years in debug desktop being an argument exhibits a couple correct herself market exit your project and then start okay session 1 customers when you add in manager here is our I did already in yet their name in category adding contours get layer name type of button I click on customize button to go to customers window and then common you have to find adding contours category here is I think on touch category and get player named our I did you can add it everybody want in your menu in the toolbar and you can add your new toolbar section one hey here's our toolbar and in between your name to our tool box and then close ok when I click on it we can see the name of first layer this was our first session of introduction to programming our objects I hope that can help you to be familiar with our objects program
Info
Channel: Mostafa Ghiyasvand
Views: 3,538
Rating: 5 out of 5
Keywords: ArcObjects, GIS
Id: piUiYPkfE_s
Channel Id: undefined
Length: 39min 49sec (2389 seconds)
Published: Mon Jan 09 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.