TU ANUNCIO / YOUR PUBLICITY

AQUÍ PODRÍA ESTAR TU ANUNCIO: / HERE COULD BE YOUR AD E-mail

martes, 12 de junio de 2012

Display file. .las directly in Google Earth


Is it possible to view files. .las on Google Earth?

The answer is simple: Your application is created las2kml other. So let's create it. For this purpose the former is understood as is a kml file. We open Google Earth and mark a line. (The example is done in Segovia, my hometown following his well-known aqueduct)



Creating a route
Saving file kml

If we open the kml file:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>Segovia.kml</name>
<StyleMap id="msn_ylw-pushpin">
<Pair>
<key>normal</key>
<styleUrl>#sn_ylw-pushpin</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#sh_ylw-pushpin</styleUrl>
</Pair>
</StyleMap>
<Style id="sn_ylw-pushpin">
<IconStyle>
<scale>1.1</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
<LineStyle>
<width>2</width>
</LineStyle>
</Style>
<Style id="sh_ylw-pushpin">
<IconStyle>
<scale>1.3</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
<LineStyle>
                        <color>ff0000ff</color>
<width>2</width>
</LineStyle>
</Style>
<Placemark>
<name>Segovia</name>
<styleUrl>#msn_ylw-pushpin</styleUrl>
<LineString>
<tessellate>1</tessellate>
<coordinates>
-4.118265493030573,40.94847300973688,0
                                -4.116645232462327,40.94649058184002,0 
</coordinates>
</LineString>
</Placemark>
</Document>
</kml>


But we can reduce it to the minimum expression as:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>Segovia.kml</name>
<Placemark><StyleMap><Pair><Style><LineStyle>

<color>ff0000ff</color>
<width>2</width>

</LineStyle></Style></Pair></StyleMap>
<LineString><altitudeMode>absolute</altitudeMode><coordinates>
    -4.118265,40.948473,1000 -4.118266,40.948474,1000
   </coordinates>
  </LineString>
 </Placemark>
</Document>
</kml>


From here you just have to create the new kml file.

For this purpose we chose a small file .las:


3D Appearance Lidar Sample File
There was to be reduced to only 20,000 points for not blocked Google Earth and the result is this:

Extracto desde Google Earth

No hay comentarios:

Publicar un comentario