How to Convert .CSV to .KML Using QGIS


This article will walk you through how to convert .CSV to .KML using QGIS

Prerequisites

  • QGIS on your computer. 
  • A .CSV file with label, latitude, longitude, and heights.
    Note that you need ellipsoid heights for jobs on a local grid. If your site uses a local grid, please use the Propeller Coordinate Converter to convert your heights.
  • A site with global projections (has EPSG codes).

Instructions

1. Prepare your .CSV file with the format: Label, Latitude, Longitude, and Height. Using decimal degrees instead of degrees, minutes, and seconds for your point coordinates is recommended.

2.  Launch your QGIS. In the Menu tab, navigate to Layer > Add Layer > Add Delimited Text Layer. 

3. This will prompt the Create a Layer dialogue box. Import your .CSV file and correctly define the File Format and Geometry Definition for lat and long. Click OK

4. The Coordinate Reference System Selector will enable you to select the correct reference system for your data. Since our Viewer operates on WGS84 and your CSV values are in lat and long, select EPSG 4326. Click OK.  

5. If being imported, this is how the points in your CSV file would be displayed in the Viewer panel of QGIS.

6. To export it in KML, right-click the layer and select Save As. This will prompt the save vector dialogue box. Select KML as the file format and set the CRS to WGS84.

Make sure to set the AltitudeMode as clampToGround so that it will work properly in the Viewer. 

7. Use the UPLOAD button to upload the KML file to the platform

UPLOAD Button.pngUPLOAD Button Designs.png

8. Ensure the KML layer has been clamped to the ground after uploading.

Clamping is a feature that allows design linework, such as CAD files (DXF, TTM, KML), to be draped over your terrain surface rather than appearing as a flat, floating layer. Think of it like placing a tablecloth over a table—instead of hovering in space at a fixed elevation, the linework conforms to the contours of the terrain, following the highs and lows of the surface.

Designs Tab Clamp All Layers.png

I still can't do it!

We wrote these articles to equip you with everything you need to get the job done on your own, but we understand that sometimes this isn't sufficient.

If you're stuck, you can connect with our support team by clicking the support button on the top right corner of your user portal.

Related to