User Tools

Site Tools


Exercise 1b: Create a KML layer

In this exercise the following tools will be used:

  • gdal/ogr tools: ogr2ogr

Use ogr tool ogr2ogr to create a KML layer for Google Earth

ogr2ogr -f KML  -where "TYPE='forest'" ${OUTPUTDIR}/cornwall_forest.kml cornwall_natural.shp
Make sure the projection of the source vector is set to EPSG:4326 (LON/LAT), otherwise use extra parameter -t_srs epsg:4326
wiki/exercise1b.txt · Last modified: 2017/12/05 22:53 (external edit)