【发布时间】:2020-04-18 12:03:43
【问题描述】:
如何在 Jetbrains DataGrip 中使用 .dbf 文件? 我在 macos 上,需要使用 .dbf 文件。我设法在 Shapefile explorer 软件中打开了 dbf 文件。但我想使用 DataGrip 提供的很酷的功能。有可能吗?
【问题讨论】:
标签: datagrip intellij-datagrip
如何在 Jetbrains DataGrip 中使用 .dbf 文件? 我在 macos 上,需要使用 .dbf 文件。我设法在 Shapefile explorer 软件中打开了 dbf 文件。但我想使用 DataGrip 提供的很酷的功能。有可能吗?
【问题讨论】:
标签: datagrip intellij-datagrip
没有办法做到这一点,即使跟踪器中没有票:https://youtrack.jetbrains.com/issues/DBE
【讨论】:
我使用dbf-to-sqlite Python 包 - 非常简单的方法来发现 DBF 结构和内部数据。它创建开箱即用的 DataGrip 支持的 SQLite 数据库。
pip install dbf-to-sqlite
dbf-to-sqlite PIndx01.dbf post_index.sqlite
【讨论】:
用shp2pgsql完成
例如:
shp2pgsql -s 4326 -g geom_4326 "file_name" schema.table | psql -h localhost -p 5432 -d database -U user
【讨论】: