0

如何在 Jetbrains DataGrip 中使用 .dbf 文件?我在 macos 上,需要使用 .dbf 文件。我设法在 Shapefile explorer 软件中打开了 dbf 文件。但我想使用 DataGrip 提供的很酷的功能。是否可以?

4

3 回答 3

2

没有办法做到这一点,即使跟踪器中没有票:https ://youtrack.jetbrains.com/issues/DBE

于 2020-04-20T09:04:01.750 回答
2

我使用dbf-to-sqlitePython 包——非常简单的方法来发现里面的 DBF 结构和数据。它创建开箱即用的 DataGrip 支持的 SQLite 数据库。

pip install dbf-to-sqlite
dbf-to-sqlite PIndx01.dbf post_index.sqlite
于 2021-04-08T15:45:19.500 回答
0

完成shp2pgsql

例如:

shp2pgsql -s 4326 -g geom_4326 "file_name" schema.table | psql -h localhost -p 5432 -d database -U user
于 2020-05-05T16:55:18.970 回答