@Vic your date field is merely a separate data field and irrelevant to Well Known Text (WKT), which is just one of many standardized ways of representing feature geometry.
The oid
field in your example is merely a feature identifying unique id value. Depending where you look in the wild, you'll find these have many aliases: oid
, fid
, ogc_fid
, feature_id
, etc. But they're all the same thing. Sometimes you'll get really lucky ::cough::SARCASM::cough:: and find two or three of these in the same file. In that case you'd probably want to use the field that has hopefully both the smallest (1) and the largest (n) value. But, still, you could name this field whatever you want.
Also in your example, the Line
field is where they have stored the WKT geometry, but again, this could go by any name. And in the wild you'll see several common variations, shape
, geom
, the_geom
(sigh), ogc_geometry
, etc. Personally, I like to use the pattern geom_{SRID}
, which if your coordinates are in WGS84 would be either geom_4326
or alternatively, geom_wgs84
. But you can call it whatever you want.
[Of note: As one of the commenters mentioned, your data appears to be points, and not lines. But maybe you already know that and right now you're just concerned about getting the WKT format and import working?]
Looking at QGIS, you'd probably want to use the Delimited Text dialog to add your file. Find it at:
Layer (menu) > Add Layer > Vector > Delimited Text (left side)
In that dialog, select the Well Known Text
radio option (middle). Then click on the Geometry Field
, which has hopefully auto-populated all of your fields, and choose whatever fieldname you provided for your WKT geometries in your spreadsheet. Then set the additional options for type
(Line, I guess?) and CRS
(probably EPSG:4326 unless you know it's in a different system).
Now, if you're spreadsheet is not already in a CSV or some other delimited format, you'll want to use your preferred spreadsheet software to convert it from whatever its current file type is to a CSV (or TSV, etc).
When it's all said and done, your date field should be represented as a stand-alone field in your dataset, and after you add the layer in QGIS, it should be represented as such in the attribute view, or in the info popup when you click on a feature.