I inherited a .gpkg (no CSV or shapefile) in which the attribute table has a single column containing the relevant non-spatial data. The contents (string) are set up with a <table><ul><il>CONTENTS</li>
divider which results in it presenting in bullet points when you hover your mouse over.
I need to have each category (current displayed as a bullet points) in its own column. I would also like to remove the bullet point formatting entirely.
As the contents of the column is longer than 255 characters, I cannot export it as a CSV to manipulate then bring back into QGIS. In the field calculator I tried to use '''string_to_array''' with no luck. Because the number of characters in each category is inconsistent '''substr''' is clunky to divide the contents.
Each row looks like:
<ul><li>ship_Vessel_SubType: Cargo_Bulk</li><li>track_direction: 173 degrees</li><li>track_first_passage: None</li><li>track_initial_destination: VANCOUVER</li><li>track_initial_status: At Anchor</li><li>track_start_datetime: 2014-01-04 00:09:05</li><li>track_end_datetime: 2014-01-04 00:48:56</li><li>ship_mmsi: 271000666</li><li>ship_Flag_State: Turkey</li><li>ship_Gross_Tons: 28798.91845</li><li>ship_Deadweight_Tons: 47498.76457</li><li>ship_Length: 190</li><li>track_length_nmi: 7.1</li><li>track_speed_kts: 10.7008343652</li><li>track_n: 3</li></ul>
(it automatically formats to bullet points).
Ideally, ship_Vessel_SubType, track_direction, track_frist_passage, track_initial_destination, etc. are each their own columns headings with no bullet formatting.
As I didn't set the data up, I don't have it in a format where I can reimport it to qgis.
How can I work with an attribute table formatted in this manner?