15
Draw lines/Shapes from Points By Ashok Peddi

Draw lines from shapes

Embed Size (px)

DESCRIPTION

Drwa shapes from GPS Points without ArcGIS

Citation preview

Page 1: Draw lines from shapes

Draw lines/Shapes from Points

By Ashok Peddi

Page 2: Draw lines from shapes

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

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

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

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

Need more help click here

“Example:Points

Page 7: Draw lines from shapes

Click save as option in Note Pad

Page 8: Draw lines from shapes

Save as KMZ file as shown below

Page 9: Draw lines from shapes

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

Click on Add a vector Layer In QGIS

Page 11: Draw lines from shapes

Click on browse files

Select All files

Page 12: Draw lines from shapes

Click on Open

Page 13: Draw lines from shapes

Your KML in QGIS

Page 14: Draw lines from shapes

Right Click on The layer fine in table of Contents to Save as Shape file

Page 15: Draw lines from shapes

End of the Slide show

By!!@@!! The geoJuggernaut!!@@!!

www.geospatialtraining.orgOr

www.About.me/asok