1

I am trying to join my csv data to TIGER census block group shapefiles. Every time I bring the table into QGIS it changes the string for the GEOID into a number so the join comes up null. My csv only has the block group ID to make the link, no address info or coordinates.

0

1 Answer 1

1

Several ways to define a field type

  1. Before importing the CSV, create a csvt file that defines the field types

After importing the CSV, change the field type:

  1. In QGIS 2.8 or later, Use the Refactor Field algorithm (found in the Processing Toolbox) to change the field type

  2. Use the Field Calculator to create a new field of the desired data type. For the field value, use the name of the original field in double quotation marks, eg if the field is called GEOID, use this expression:

    "GEOID"

    Note that two fields cannot have the same name, so the new field must have a different name than the original field. If you need the new field to have the same name as the original, create a new field with a different name, delete the original field, then create another new field with the original name.

  3. In QGIS 2.18 or older, use the Table Manager plugin to change the field type

1
  • If this answered your question, please accept the answer by clicking the green check mark next to it.
    – csk
    Jul 12, 2018 at 16:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.