1 00:00:00,870 --> 00:00:07,230 Hello and welcome to this lecture in this lecture I'll teach you how to create a file that contains 2 00:00:07,230 --> 00:00:15,340 boying locations as you might already know came up for a fall that can be used to present points lines 3 00:00:15,390 --> 00:00:22,700 or polygon geometries and this can be viewed in Google or but also in other programs as well. 4 00:00:22,740 --> 00:00:30,000 So I'll quickly teach you how to generate a Kindle point fall from within Python to be able to do that 5 00:00:30,300 --> 00:00:33,730 you need to install the proper library. 6 00:00:33,750 --> 00:00:37,350 There may be a few libraries that do the work. 7 00:00:37,350 --> 00:00:43,890 However the one I would suggest here is a simple cameral library to install a symbol came a library 8 00:00:44,280 --> 00:00:45,690 just opened a command line. 9 00:00:45,700 --> 00:00:51,720 Or if your operating system and type Piep install symbol Gammill 10 00:00:54,660 --> 00:00:56,710 and the installation has finished. 11 00:00:57,180 --> 00:01:01,660 Let's now create a Kim of fall from the Python cons.. 12 00:01:02,100 --> 00:01:06,760 So first we need to import the library that we just installed. 13 00:01:06,810 --> 00:01:15,390 Once we do that to create Achim of file you always start by creating K.M. pipe an object Kemel object 14 00:01:15,450 --> 00:01:20,230 is created by the K.M. method of those symbol K.M. library. 15 00:01:20,460 --> 00:01:23,280 So just like this. 16 00:01:23,710 --> 00:01:28,880 So at this point all we have is an internal Python Kemel object. 17 00:01:29,230 --> 00:01:36,610 Just an empty Kemel object that's waiting to be filled with points lines or polygons depending on what 18 00:01:36,670 --> 00:01:44,590 you want to do with a K.M. in this case or like to create a single point inside this object and that 19 00:01:44,590 --> 00:01:47,380 can be done using the new polling method. 20 00:01:47,600 --> 00:01:51,530 New point is it's a method that this property of camel object. 21 00:01:51,670 --> 00:01:57,000 So we apply of a method for the camel object just like this. 22 00:01:57,120 --> 00:02:02,570 Then you need to pass a name for the point so that the pointer will be labeled under that name when 23 00:02:02,590 --> 00:02:04,550 viewed in Google. 24 00:02:05,140 --> 00:02:13,850 Next you need to pass code for ometer supply the long itude and the latitude coordinates to the parameter. 25 00:02:13,900 --> 00:02:20,270 So the long and the latter two will be used to plot point on the correct location. 26 00:02:20,670 --> 00:02:22,490 Of course barometer gets a. 27 00:02:22,500 --> 00:02:29,100 So make sure to use square brackets then write the long into the Langit to inside the regular brackets. 28 00:02:29,190 --> 00:02:32,870 I'm just passing some random long long E-2 a lot to do values here. 29 00:02:32,890 --> 00:02:35,930 I don't know where they will point me. 30 00:02:36,400 --> 00:02:44,950 So so far we created a camel object and added a pointer to that object and we can add other points using 31 00:02:44,950 --> 00:02:49,050 the new point method again if we like in our active object. 32 00:02:49,060 --> 00:02:52,300 For example let's add one more pair of coordinates. 33 00:02:54,080 --> 00:02:58,550 So we use the same method and that's it. 34 00:02:58,550 --> 00:03:07,430 Once you finish adding points you all you need to do is save a life on an object to kill file we can 35 00:03:07,430 --> 00:03:12,320 do that using the same method of an object. 36 00:03:12,350 --> 00:03:18,320 So you pointed to the K.M. variable that is stored in the Camel object and then to the Save method as 37 00:03:18,350 --> 00:03:24,340 apply the method we follow a path that where the camel will be stored. 38 00:03:25,130 --> 00:03:32,330 So I'm sorry this in my alt folder under the name pollings that came up last fall LaFalce should have 39 00:03:32,330 --> 00:03:33,760 been generated. 40 00:03:33,760 --> 00:03:34,260 No. 41 00:03:34,430 --> 00:03:36,570 So let's try to open it. 42 00:03:36,590 --> 00:03:38,520 So here is the file. 43 00:03:38,620 --> 00:03:42,810 And as I said one good program to view the fall of these Google Earth. 44 00:03:42,890 --> 00:03:46,890 So it's good that you have Google Earth installed on your computer. 45 00:03:47,220 --> 00:03:48,440 And here we go. 46 00:03:48,440 --> 00:03:52,590 So these are the two points I created in my script. 47 00:03:53,590 --> 00:03:55,890 They have labels too. 48 00:03:56,050 --> 00:03:58,400 So this is what I wanted to show you in this lecture. 49 00:03:58,690 --> 00:04:00,670 So see you in the next lecture.