Use Excel to edit QGIS attributes?
I know I can open my QGIS .dbf files in Excel (which converts them to .xlsx files). Can I then convert the edited file back into a .dbf file for use in my QGIS project? In other words, can I use the familiar functions, such as find & replace, in Excel, in order to edit my QGIS dbf files?
qgis
add a comment |
I know I can open my QGIS .dbf files in Excel (which converts them to .xlsx files). Can I then convert the edited file back into a .dbf file for use in my QGIS project? In other words, can I use the familiar functions, such as find & replace, in Excel, in order to edit my QGIS dbf files?
qgis
4
If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.
– Jakob
Feb 8 at 14:21
2
Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.
– Rostranimin
Feb 8 at 14:36
add a comment |
I know I can open my QGIS .dbf files in Excel (which converts them to .xlsx files). Can I then convert the edited file back into a .dbf file for use in my QGIS project? In other words, can I use the familiar functions, such as find & replace, in Excel, in order to edit my QGIS dbf files?
qgis
I know I can open my QGIS .dbf files in Excel (which converts them to .xlsx files). Can I then convert the edited file back into a .dbf file for use in my QGIS project? In other words, can I use the familiar functions, such as find & replace, in Excel, in order to edit my QGIS dbf files?
qgis
qgis
asked Feb 8 at 14:17
TVZTVZ
332420
332420
4
If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.
– Jakob
Feb 8 at 14:21
2
Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.
– Rostranimin
Feb 8 at 14:36
add a comment |
4
If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.
– Jakob
Feb 8 at 14:21
2
Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.
– Rostranimin
Feb 8 at 14:36
4
4
If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.
– Jakob
Feb 8 at 14:21
If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.
– Jakob
Feb 8 at 14:21
2
2
Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.
– Rostranimin
Feb 8 at 14:36
Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.
– Rostranimin
Feb 8 at 14:36
add a comment |
2 Answers
2
active
oldest
votes
Natively you can't. But there are addons / plugins for excel to support .dbf format such as http://exceltodbf.sourceforge.net/
Libre Office supports .dbf files natively.
However, I do not recommend editing .dbf files (connected to .shp) outside of a GIS. Also never edit column names or add or delete rows unless you really know what you are doing there.
I prefer using .csv files instead. You can open them with excel, use excel functions and all that stuff (but not saving formulas as .csv is a text file format).
add a comment |
The recent Excel version could open/read dbf but no longer save to dbf file.
Anyway if you have an older excel version or use other tool to convert back to dbf be very carefull trying to edit shapefile data this way.
You easily could corrupt your data (the link between the .shp (geometry) and .dbf (attribute table) repose only on the order of data and not on any ID/key) so reordering or sorting the dbf will result in corrupt shapefile where data and geometry didn't match anymore.
3
similarly, never ever add or delete any row
– JGH
Feb 8 at 14:31
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f311524%2fuse-excel-to-edit-qgis-attributes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Natively you can't. But there are addons / plugins for excel to support .dbf format such as http://exceltodbf.sourceforge.net/
Libre Office supports .dbf files natively.
However, I do not recommend editing .dbf files (connected to .shp) outside of a GIS. Also never edit column names or add or delete rows unless you really know what you are doing there.
I prefer using .csv files instead. You can open them with excel, use excel functions and all that stuff (but not saving formulas as .csv is a text file format).
add a comment |
Natively you can't. But there are addons / plugins for excel to support .dbf format such as http://exceltodbf.sourceforge.net/
Libre Office supports .dbf files natively.
However, I do not recommend editing .dbf files (connected to .shp) outside of a GIS. Also never edit column names or add or delete rows unless you really know what you are doing there.
I prefer using .csv files instead. You can open them with excel, use excel functions and all that stuff (but not saving formulas as .csv is a text file format).
add a comment |
Natively you can't. But there are addons / plugins for excel to support .dbf format such as http://exceltodbf.sourceforge.net/
Libre Office supports .dbf files natively.
However, I do not recommend editing .dbf files (connected to .shp) outside of a GIS. Also never edit column names or add or delete rows unless you really know what you are doing there.
I prefer using .csv files instead. You can open them with excel, use excel functions and all that stuff (but not saving formulas as .csv is a text file format).
Natively you can't. But there are addons / plugins for excel to support .dbf format such as http://exceltodbf.sourceforge.net/
Libre Office supports .dbf files natively.
However, I do not recommend editing .dbf files (connected to .shp) outside of a GIS. Also never edit column names or add or delete rows unless you really know what you are doing there.
I prefer using .csv files instead. You can open them with excel, use excel functions and all that stuff (but not saving formulas as .csv is a text file format).
answered Feb 8 at 14:37
MrXsquaredMrXsquared
1,5351316
1,5351316
add a comment |
add a comment |
The recent Excel version could open/read dbf but no longer save to dbf file.
Anyway if you have an older excel version or use other tool to convert back to dbf be very carefull trying to edit shapefile data this way.
You easily could corrupt your data (the link between the .shp (geometry) and .dbf (attribute table) repose only on the order of data and not on any ID/key) so reordering or sorting the dbf will result in corrupt shapefile where data and geometry didn't match anymore.
3
similarly, never ever add or delete any row
– JGH
Feb 8 at 14:31
add a comment |
The recent Excel version could open/read dbf but no longer save to dbf file.
Anyway if you have an older excel version or use other tool to convert back to dbf be very carefull trying to edit shapefile data this way.
You easily could corrupt your data (the link between the .shp (geometry) and .dbf (attribute table) repose only on the order of data and not on any ID/key) so reordering or sorting the dbf will result in corrupt shapefile where data and geometry didn't match anymore.
3
similarly, never ever add or delete any row
– JGH
Feb 8 at 14:31
add a comment |
The recent Excel version could open/read dbf but no longer save to dbf file.
Anyway if you have an older excel version or use other tool to convert back to dbf be very carefull trying to edit shapefile data this way.
You easily could corrupt your data (the link between the .shp (geometry) and .dbf (attribute table) repose only on the order of data and not on any ID/key) so reordering or sorting the dbf will result in corrupt shapefile where data and geometry didn't match anymore.
The recent Excel version could open/read dbf but no longer save to dbf file.
Anyway if you have an older excel version or use other tool to convert back to dbf be very carefull trying to edit shapefile data this way.
You easily could corrupt your data (the link between the .shp (geometry) and .dbf (attribute table) repose only on the order of data and not on any ID/key) so reordering or sorting the dbf will result in corrupt shapefile where data and geometry didn't match anymore.
answered Feb 8 at 14:29
J.RJ.R
3,282222
3,282222
3
similarly, never ever add or delete any row
– JGH
Feb 8 at 14:31
add a comment |
3
similarly, never ever add or delete any row
– JGH
Feb 8 at 14:31
3
3
similarly, never ever add or delete any row
– JGH
Feb 8 at 14:31
similarly, never ever add or delete any row
– JGH
Feb 8 at 14:31
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f311524%2fuse-excel-to-edit-qgis-attributes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
4
If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.
– Jakob
Feb 8 at 14:21
2
Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.
– Rostranimin
Feb 8 at 14:36