I want to import a large number of polylines and/ or polygons into one one or more QGIS layers in order to plot the data. Each will only have simple attributes (e.g. name). I need to know:

  1. The required format of the CSV file to enable step 2.
  2. The command or plug in required to create a polyline or polygon layer in QGIS.

For information, the input CSV files are written by bespoke Excel VBA or by FORTRAN codes, so I have full control of these output formats. Essentially I'm looking for the polyline and polygon equivalent of the delimited text plugin.

  • Maybe you can have a look at gis.stackexchange.com/questions/24264/….
    – PieterB
    Commented Jul 18, 2012 at 13:08
  • If you have full control of the output, perhaps you could write the data into well known text or .kml or .gml, all of which you could use in QGIS? What format do you ultimately want the data in? Commented Jul 18, 2012 at 17:05
  • Thanks for your reply. Interesting, but I think not the solution. I have co-ordinates in decimal degrees in simple text or CSV files. I want these to be displayed in QGIS as polylines (not all points to be joined together), not as points. The option of polygons would be helpful, but not so important.
    – Tim Fowler
    Commented Jul 19, 2012 at 10:21
  • Thanks for your interest. I should have been more precise. I have full output control of the format of my character files (.txt, .csv) but not easy access to complex file formats, and being new to GIS I have no idea what .kml or .gml are!
    – Tim Fowler
    Commented Jul 19, 2012 at 10:24

1 Answer 1


You can use Layer > Add delimited text layer

enter image description here enter image description here

For more about this, you can read: Visualising WKT geometry string in QGIS

  • 1
    where is the polygon here?
    – Noel
    Commented Aug 11, 2023 at 19:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.