Draw lines from shapes
-
Upload
ashok-peddi -
Category
Education
-
view
386 -
download
5
description
Transcript of Draw lines from shapes
![Page 1: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/1.jpg)
Draw lines/Shapes from Points
By Ashok Peddi
![Page 2: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/2.jpg)
In ArcGIS License
If you have ArcGIS License , well and good !There is an option called “Points to
Polygon” or “Points to Line” in Data management Tools (I am not sure search it in ArcToobox)
If you don’t have ArcGIS License, Don’t worry you have sense .
![Page 3: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/3.jpg)
If you know KML
If you know KML it is well and good you can write code!(Keyhole Markup language ,extension of XML developed by an Keyhole inc (Acquired by Google in 2001))
If you don’t know KML then follow these instructions
See next slide..
![Page 4: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/4.jpg)
What is KML?
• I already mentioned that Keyhole markup Language which is an specific with XML is accepted by OGC standards.
• I have given an example write this code in Notepad and save it in KMZ format.
![Page 5: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/5.jpg)
Code to convert Points(GPS Points) to Line!• <?xml version="1.0" encoding="UTF-8"?>• <kml xmlns="http://www.opengis.net/kml/2.2">• <Document><name>KML file with polygon for bird species range</name>• <description>Source various books and websites</description>• <Style id="rangecolour">• <LineStyle><color>660000FF</color><width>0.1</width></LineStyle>• <PolyStyle>• <color>660000FF</color>• </PolyStyle>• </Style>• <Style id="linecolour">• <LineStyle><color>660000FF</color><width>3</width></LineStyle>• </Style>• <Placemark><name>distribution/range</name>• <description></description>• <styleUrl>#linecolour</styleUrl>• <LineString>• <tessellate>1</tessellate><altitudeMode>clampToGround</altitudeMode>• <coordinates>
Here you need type/copy paste your Coordinates
• </coordinates>• </LineString>• </Placemark>• </Document>• </kml>
![Page 6: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/6.jpg)
Need more help click here
“Example:Points
![Page 7: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/7.jpg)
Click save as option in Note Pad
![Page 8: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/8.jpg)
Save as KMZ file as shown below
![Page 9: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/9.jpg)
Now your KML is ready
Open this KML in Google Earth or QGIS.In QGIS you can open KML directly with Open
command and save it as a Shape file(ESRI format).
See the next slide..
![Page 10: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/10.jpg)
Click on Add a vector Layer In QGIS
![Page 11: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/11.jpg)
Click on browse files
Select All files
![Page 12: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/12.jpg)
Click on Open
![Page 13: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/13.jpg)
Your KML in QGIS
![Page 14: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/14.jpg)
Right Click on The layer fine in table of Contents to Save as Shape file
![Page 15: Draw lines from shapes](https://reader038.fdocuments.us/reader038/viewer/2022103000/55517216b4c9057f478b4a03/html5/thumbnails/15.jpg)
End of the Slide show
By!!@@!! The geoJuggernaut!!@@!!
www.geospatialtraining.orgOr
www.About.me/asok