Table to points
Makes a point layer from a table with coordinate columns, such as a CSV of longitudes and latitudes.
Pitfall. Longitude and latitude swapped puts points in the wrong hemisphere or off the map.
Pitfall. Coordinates stored as text, or with commas as decimal separators, are read as empty.
| Also called | XY Table To Point, Create points layer from table, CSV to points, Display XY Data, points from xy |
|---|---|
| Group | conversion/points |
| Checks | crs.present, crs.area_of_use |
| Pitfalls | 2 listed above |
| Columbus tool | Not stated |
| Notes | Not stated |
| Status | active |
| Broader | Not stated |
| Narrower | Not stated |
| Related | Not stated |
Parameters
| Name | Type | Required | Default | Values | Note |
|---|---|---|---|---|---|
x_field | field | yes | Not stated | Not stated | Longitude or easting column. |
y_field | field | yes | Not stated | Not stated | Latitude or northing column. |
crs | crs | yes | Not stated | Not stated | The CRS the coordinates are in, not the one wanted. |
Inputs and outputs
| Direction | Name | Type | Geometry | Note |
|---|---|---|---|---|
| Input | table | table | Not stated | Not stated |
| Output | output | vector | point | Not stated |
In each engine
| Engine | Tool | Parameters | Differences |
|---|---|---|---|
apache-sedona | sedona.sql.ST_Point |
|
|
gdal | gdal vector make-point |
| None noted |
geopandas | geopandas.points_from_xy |
|
|
postgis | st_makepoint |
| None noted |
qgis | native:createpointslayerfromtable |
|
|
sf | sf::st_as_sf |
| None noted |
shapely | shapely.points |
|
|