<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 1/14/2019 4:09 PM, Pat Brown wrote:
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>I have a csv file with two columns. The first column is a
name and the second column contains a quarter degree map
reference. An example would be Oudtshoorn 3322CA. What do I
need to do to convert this data so that it is readable in
QGIS?</div>
<br>
</div>
</blockquote>
Look at this <a moz-do-not-send="true"
href="https://gis.stackexchange.com/questions/69277/does-quantum-gis-recognize-qdgc-information">question
and answer</a> on StackExchange<br>
<br>
If you download the qdgc_zaf.7z file on the linked site you will get
level zero through level 5 grids for South Africa (I'm just assuming
all your data is in South Africa like Oudtshoorn. )<br>
Your data is level 2, so load the level 2 grid in to QGIS.<br>
The problem you have is that you data is not in canonical format. As
best as I understand it, the coordinate you give should be written
S33E022CA<br>
Further complicating matters is that the grid names in the
shapefiles above are in the format ExxxSxxXX. <br>
You are going to want to join your data with the qdgc field in the
shapefile, so you will need to reformat to match that in the
shapefile. <br>
There are many ways to do this, depending on what programming skills
you bring to the table. You could load your data and reformat in the
field calculator. <br>
I would probably just load the CSV in Excel and use Excel substring
functions to do the job. <br>
Of course, Python will do this nicely. <br>
If you follow this path, the joined table will associated each entry
from your data to a grid cell.<br>
<br>
If you want to associate each with the point corresponding to the
center of the grid cell, I would use Excel to parse the qdgc
coordinate and create new columns for lat lon, then just open that
in qgis using Add Delimited Text Layer<br>
</body>
</html>