You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When one exports a map as a shapefile and opens it in a GIS program, one can see some oddly-named fields. Specifically, "republican", "republican_1", "other part", and "other part_1" are not named similarly to their Democratic analogues, "democrat16" and "democrat20". This is not a problem in the GeoJSON export, which has the fields "republican16", "republican20", "other party16", and "other party20". I believe this is because of the shapefile 10-character limit. Maybe shorten the field names?
Edit: After looking at the field list for longer, I've noticed some other funny cut-short field names. Specifically, "CVAP Nativ", "VAP Pacifi", "CVAP Pacif", "VAP Hispan", "CVAP Hispa", and "compactnes".
Steps To Reproduce
Open an existing map, or alternatively create a new map and do a bit of redistricting to get some data
Click the "Export" button and export as Shapefile
The following steps are how I found the problem, but they are not necessary. I have not tested this in ArcGIS or any other non-QGIS software but I believe the problem will be the same, because it's with the exported shapefiles themselves.
Create a new project in QGIS
Layer → Add Layer → Add Vector Layer
Type the path of the exported shapefile and press "Add"
Click the "Identify Results" tool or do Ctrl + Shift + I
Look at the ambiguous field names
Expected behavior
There are unambiguous field names such as "republican16" and "republican20" instead of "republican" and "republican_1" in the exported shapefile.
Actual behavior
There are four confusingly-named fields: "republican", "republican_1", "other part", and "other part_1".
Screenshots
Your environment
Browser: Firefox 102.0.1
QGIS: 3.26.1
The text was updated successfully, but these errors were encountered:
Description
When one exports a map as a shapefile and opens it in a GIS program, one can see some oddly-named fields. Specifically, "republican", "republican_1", "other part", and "other part_1" are not named similarly to their Democratic analogues, "democrat16" and "democrat20". This is not a problem in the GeoJSON export, which has the fields "republican16", "republican20", "other party16", and "other party20". I believe this is because of the shapefile 10-character limit. Maybe shorten the field names?
Edit: After looking at the field list for longer, I've noticed some other funny cut-short field names. Specifically, "CVAP Nativ", "VAP Pacifi", "CVAP Pacif", "VAP Hispan", "CVAP Hispa", and "compactnes".
Steps To Reproduce
The following steps are how I found the problem, but they are not necessary. I have not tested this in ArcGIS or any other non-QGIS software but I believe the problem will be the same, because it's with the exported shapefiles themselves.
Expected behavior
There are unambiguous field names such as "republican16" and "republican20" instead of "republican" and "republican_1" in the exported shapefile.
Actual behavior
There are four confusingly-named fields: "republican", "republican_1", "other part", and "other part_1".
Screenshots
Your environment
The text was updated successfully, but these errors were encountered: