Google Sheet gviz csv 导出 - 两列标签未导出

发布于 2025-01-16 08:37:34 字数 539 浏览 6 评论 0原文

我正在尝试将此工作表导出到使用以下链接在网络地图中使用 csv: https://docs.google.com/spreadsheets/d/1XQnp7RK-Ddq4wCjpHjmcnVEKood1U08kIfRGr8sDRoU/gviz/tq?tqx=out:csv&sheet=Sheet1

它运行良好,除了两个列标题 (纬度、经度)未导出,并且 csv 中的列标签为空白。我尝试将单元格的格式从“自动”更改为“纯文本”,但这并没有解决问题。

I'm trying to export this Sheet to a csv for use in a webmap using this link:
https://docs.google.com/spreadsheets/d/1XQnp7RK-Ddq4wCjpHjmcnVEKood1U08kIfRGr8sDRoU/gviz/tq?tqx=out:csv&sheet=Sheet1

It works well, except that two of the column headers (lat, long) are not exporting and the column labels in the csv are blank. I tried to change the format of the cell from Automatic to Plain text, but that didn't fix it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

扬花落满肩 2025-01-23 08:37:34

调查结果

这似乎是 gviz api 的问题,因为有一个正在进行的 Google 问题跟踪器有关此问题的报告。您可能需要单击问题报告页面左上角的星号图标,以表明您也受到此问题的影响。

更新

作为替代解决方案,您可以尝试这种方式,因为这将导出相同的 csv 文件:

https://docs.google.com/spreadsheets/d/1XQnp7RK-Ddq4wCjpHjmcnVEKood1U08kIfRGr8sDRoU/export?format=csv&gid=0

参考:
Google 电子表格 CSV 导出的下载链接

测试

我做了一些快速测试从 Google Sheet UI & 手动下载工作表文件作为逗号分隔值 (CSV) 文件使用替代解决方案后,不存在丢失单元格的问题。但使用 gviz api 链接时,会出现问题:

  • 在此处输入图像描述
  • 在此处输入图像描述

Findings

It seems this is an issue with gviz api as there's an ongoing Google Issue tracker report about it. You may want to click the star icon on the top left of issue report page to indicate that your are also affected by this issue.

UPDATE

As an alternative solution, you may try this way as this will export the same csv file:

https://docs.google.com/spreadsheets/d/1XQnp7RK-Ddq4wCjpHjmcnVEKood1U08kIfRGr8sDRoU/export?format=csv&gid=0

Reference:
Download link for Google Spreadsheets CSV export

Test

I did some quick tests on my end & after manually downloading the sheet file as a Comma Separated Values (CSV) file from the Google Sheet UI & after using the alternative solution, there's no issue with missing cells. But when using the gviz api link, the issue occurs:

  • enter image description here
  • enter image description here
信愁 2025-01-23 08:37:34

如果您在格式菜单 > 下将该列设置为“纯文本”数字,您应该在导出时收到数据。

If you set the column to 'Plain text' under the Format menu > Number, you should receive the data upon export.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文