Hello and welcome to this lecture in this lecture I'll teach you how to create a file that contains
boying locations as you might already know came up for a fall that can be used to present points lines
or polygon geometries and this can be viewed in Google or but also in other programs as well.
So I'll quickly teach you how to generate a Kindle point fall from within Python to be able to do that
you need to install the proper library.
There may be a few libraries that do the work.
However the one I would suggest here is a simple cameral library to install a symbol came a library
just opened a command line.
Or if your operating system and type Piep install symbol Gammill
and the installation has finished.
Let's now create a Kim of fall from the Python cons..
So first we need to import the library that we just installed.
Once we do that to create Achim of file you always start by creating K.M. pipe an object Kemel object
is created by the K.M. method of those symbol K.M. library.
So just like this.
So at this point all we have is an internal Python Kemel object.
Just an empty Kemel object that's waiting to be filled with points lines or polygons depending on what
you want to do with a K.M. in this case or like to create a single point inside this object and that
can be done using the new polling method.
New point is it's a method that this property of camel object.
So we apply of a method for the camel object just like this.
Then you need to pass a name for the point so that the pointer will be labeled under that name when
viewed in Google.
Next you need to pass code for ometer supply the long itude and the latitude coordinates to the parameter.
So the long and the latter two will be used to plot point on the correct location.
Of course barometer gets a.
So make sure to use square brackets then write the long into the Langit to inside the regular brackets.
I'm just passing some random long long E-2 a lot to do values here.
I don't know where they will point me.
So so far we created a camel object and added a pointer to that object and we can add other points using
the new point method again if we like in our active object.
For example let's add one more pair of coordinates.
So we use the same method and that's it.
Once you finish adding points you all you need to do is save a life on an object to kill file we can
do that using the same method of an object.
So you pointed to the K.M. variable that is stored in the Camel object and then to the Save method as
apply the method we follow a path that where the camel will be stored.
So I'm sorry this in my alt folder under the name pollings that came up last fall LaFalce should have
been generated.
No.
So let's try to open it.
So here is the file.
And as I said one good program to view the fall of these Google Earth.
So it's good that you have Google Earth installed on your computer.
And here we go.
So these are the two points I created in my script.
They have labels too.
So this is what I wanted to show you in this lecture.
So see you in the next lecture.