Delimited Text Layer Plugin
Loads and displays delimited text files containing x,y coordinates.
Requirements
Example of a valid text file
Example of a valid text file with a WKT field
Notes
Requirements
To view a delimited text file as layer, the text file must contain:
- A delimited header row of field names. This must be the first line in the text file.
- The header row must contain an X and Y field or a Well Known Text (WKT) field. These fields can have any name.
- The x and y coordinates must be specified as a number. The coordinate system is not important.
- A WKT field must be in the standard format.
Example of a valid text file with x and y fields
X;Y;ELEV
-300120;7689960;13
-654360;7562040;52
1640;7512840;3
[...]
Example of a valid text file with a WKT field
id|wkt
1|POINT(172.0702250 -43.6031036)
2|POINT(172.0702250 -43.6031036)
3|POINT(172.1543206 -43.5731302)
4|POINT(171.9282585 -43.5493308)
5|POINT(171.8827359 -43.5875983)
Notes
- The example text file:
- Uses ; as delimiter. Any character can be used to delimit the fields.
- The first row is the header row. It contains the fields X, Y and ELEV.
- No quotes (") are used to delimit text fields.
- The x coordinates are contained in the X field.
- The y coordinates are contained in the Y field.
- The example text file with WKT:
- Has two fields defined in the header row: id and wkt.
- Uses | as a delimiter.
- Specifies each point using the WKT notation