Användarverktyg

Webbverktyg


Sidmeny

Start
Huvudsidor
Kategorier
Geodata


Vad vill du veta mer om?

Adress till koordinat
Analys
API
ArcCatalog
ArcGIS
ArcScene
ArcToolbox i ArcGIS 10
Attributdata
Attributdata i ArcGIS 10
Attributdata i MapInfo
Att projicera data utan koordinatsystem i ArcGIS 10

Bebyggelsedata
Befolkningsdata
Befolkningsprognos
Blå kartan
Buffer

Calculate Geometry i ArcGIS 10
Centroid
Clip i ArcGIS 10
Color GIB2
Connect folder

Datafångst
Diagram
Digitala kartbiblioteket
Distance (Spatial Analyst Tools) i ArcGIS 10
DXF
Dynamisk konisk projektion

Editera i ArcGIS 10
Editera i MapInfo
Ekonomiska kartan
Exportera attributdata till Excel fran ArcGIS 10
Export Data i ArcGIS 10

Färgval
Fastighetskartan
Field Calculator i ArcGIS 10
Film
Fjällkartan
Fjärranalys
Flödeskarta
Fuzzy GIB2

Generalstabskartan
Geodata
Geodatabas
Geoforum
Geographical data, datakällor
Geometric generalisation with IDRISI Taiga
Geometrisk generalisering i IDRISI Taiga
Geometrisk generalisering
Geometrisk generalisering i ArcGIS 10
Georeferencing with IDRISI Taiga
GET
GIS
GIS filformat
GIS projekt
Google Earth Engine
Google Earth
Google Maps
Google SketchUp
Google Fusion Tables
Gradnät med ArcGIS 10
GRID
Gröna kartan
GSD
Gula kartan

Handledning Kopiering och överföring av filer
Hantera projektion och koordinatsystem i ArcGIS 10
Häradskarta
HistoryPin
Home
Huvudsidor
Hydrologiska analyser i ArcGIS 10
Höjddata

Idrisi
Importera GRID till ArcGIS 10
Interpolering
Isaritmkarta

Join by Spatial Location i ArcGIS 10
Join from a table med ArcGIS 10
JPEG

Kanteffekter
Karta
Kartbladssystem 2007
Kartering
Kartogram
Kartprojektion
Kategorier
KG2204 3
KG2204 4
Klippa i MapInfo
KML med ArcGIS 10
KML med Google Earth 6
KML och KMZ
KML GIB2
Kom igang med ArcGIS
Kontakt
Konvertera mellan olika typer av geometriska vektorformat
Konvertera vektorfiler till tab MapInfoformat
Konvertera X och Y koordinater till linjer i vektorformat
Koordinatsystem
Koordinat till punkt med ArcGIS 10
Koropletkarta

Lab1 GIB1 HT12
Lab Point to Polygon and Point to Raster
Lägg till attributdata
Lägg till data i ArcGIS 10
Lantmäteriets kartor
Layout View i ArcGIS 10 0
Lidar
Lutningsrelaterade analyser i ArcGIS 10
Lästips

MapBasic
MapInfo Professional
Markdata
MBX
Metadata
MIF MID
ModelBuilder och egen Toolbox i ArcGIS 10

NASA WorldWind
Nätverksanalys
Network dataset
Norrpil
Norrpil i ArcGIS 10 0
Norrpil i MapInfo 10

Om Gisela
Ordlista

Positionering
Presentation
Prickkarta
Projicera data
Python

QGIS
Quiz

Raster from IDRISI Taiga to MapInfo 10
Raster till vektor i ArcGIS 10
Rasterdata
Raster calculator
Redigera i wikin
Referenskarta
Rektifiera i Google Earth 6
Rektifiera
Rektifiera i ArcGIS 10
Roda kartan
RT38
RT90
Rumslig kvantifiering

Saccess
Satellitnavigering
Scale with ArcGIS 10
Select i ArcGIS 10
Select i MapInfo
SGU
SHP
Siktrelaterade analyser i ArcGIS 10
Skala
Skalstock i ArcGIS 10
Skapa en buffer i ArcGIS 10
Skapa en buffer i MapInfo 10
Skapa vektordata i Google Earth 6
Skapa vektordata i MapInfo 10
Skapa tredimensionella kartor i ArcScene 10
Skapa tredimensionell höjdmodell i 3DEM
Skapa vektordata i ArcGIS 10
Svenska statens kartor genom tiderna
Sweref99
Symbolkarta

TAB
Tabell
Table of Contents i ArcGIS 10
Teckenförklaring i ArcGIS 10
Teckenförklaring i MapInfo 10
Teckenförklaring
Tematisk karta i ArcGIS 10
Tematisk karta
Terrangkartan
Terrängskuggning med ArcGIS 10
Text på kartan
Text till kolumner med Excel
TFW
TIFF
Tips ArcGIS 10
Tips Google Earth 6
Tips MapInfo 10
Tips Idrisi Taiga
Tool Not Licensed i ArcGIS 10
Topografiska kartan
Topografisk karta
Triangulering
Tyvekkartor

Utforska kartlager i ArcGIS
Utforska kartlager i ArcGIS 10

Vagkartan
Vector from IDRISI Taiga to ArcGIS 10
Vector from MapInfo 10 to IDRISI Taiga
Vector to raster with IDRISI Taiga
Vectorisation with MapInfo 10
Vektor till raster i ArcGIS 10
Vektordata
Vektor till raster i IDRISI Taiga
Verktygsfalt
Visualisering av höjddata genom tiderna
Visuell hierarki
Vägdata

Web GIB2
Web resources for An Introduction to Geographical information systems
WGS84
WMS

XML
X och Y koordinater till punkter i MapInfo

Överlagringsanalys
Översiktskartan

kml_gib2

Lab4. KML

KML (Key Markup Language) and the compressed (zipped) version KMZ is used in for example the program Google Earth. The format is usable for spreading geographical information to persons without professional GIS programs. In this exercise we will export KMZ files from ArcMap, Read and create KMZ and KML files in Google Earth and also read and create KML files using Notepad.

Export from ArcMap

Download the file areas.shp (and associated files) (Assistant will inform you from where)

Save and extract the data on your computer and open it in ArcMap.

Give the layer the color you want and export it as a KMZ file using the tool:

ArcToolbox > Conversion Tools > To KML > Layer To KML

(output file name).kmz

Read and Create in Google Earth

Start Google Earth and open the KMZ file you exported from ArcMap using:

File > Open…

You can try to click at the polygons and see the associated attribute data.

It is also possible to edit existing KML/KMZ files or create new ones using Google Earth.

Create for example polygons using:

Add > Polygon

And draw a polygon.

If the sidebar is hidden, click:

View > Sidebar

In the sidebar you can put your polygon and other things you add into folders and also change name and properties.

When you have created a folder containing some different things in different colors, right click at the folder and click: Save Place As…

It is possible to choose if you want to save it as a KML or a KMZ. Save the folder you created using Google Earth both as a KML and a KMZ file.

Read and Create using Code (in Notepad)

The data in KML files following the structure of a code language called XML (eXtensible Markup Language). Below is an example how to the region Scandinavia could be described using XML (not KML).

@@ <?xml version=”1.0” encoding=”UTF 8”?> <Region>

<Name>Scandinavia</Name>
<Country>
    <Name>Sweden</Name>
    <Population>9500000</Population>
</Country>
<Country>
    <Name>Norway</Name>
    <Population>5000000</Population>
</Country>
<Country>
    <Name>Denmark</Name>
    <Population>5500000</Population>
</Country>

</Region> @@

The first part tells the computer that this is XML code and also define the method (in this case UTF 8) of translating for example 00100100 (the binary code the data is build of):

The rest of the XML code is built on a hierarchical structure were parts start with <xx> and end with </xx>.

Open in Notepad

Open Notepad and open your files:

File > Open…

Change Text Documents to All Files and open both the KML and the KMZ file you created in Google Earth.

The content of the KML file should exist of more symbols than the compressed KMZ file, but it is possible to read by a human.

Start with a new KML using Notepad

We will now create a new KML file using Notepad. Start from a empty Notepad document and state that this is a XML dokument by writing:

@@ <?xml version=”1.0” encoding=”UTF 8”?> @@

The second part starts the XML code. Copy this row to your document:

@@ <kml xmlns=”http://www.opengis.net/kml/2.2” xmlns:gx=”http://www.opengis.net/kml/ext/2.2” xmlns:kml=”http://www.opengis.net/kml/2.2” xmlns:atom=”http://www.w3.org/2005/Atom”> @@

The third part is the actual information that in this case give coordinates for the point Subway.

@@ <Document>

<Placemark>
    <name>Subway</name>
    <Point>
        <coordinates>18.0547,59.3652,0</coordinates>
    </Point>
</Placemark>

</Document> @@

The last part end the KML code.

@@ </kml> @@

Save the file with the file extension .kml instead of .txt and open the file in Google Earth.

Create also a file with the same placemark but with one additional placemark named T Centralen and with the coordinates: 18.059, 59.331

Also save this file with the file extension .kml and open the file in Google Earth.

(Save all the files on a place you can find tomorrow.)

More about how KML files are built can be found here: https://developers.google.com/kml/documentation/

And more about XML can be found here: http://www.w3schools.com/xml/

kml_gib2.txt · Senast uppdaterad: 2019/11/21 12:26 av ene