database - 使用ogr2​​ogr将PostGIS表转换为个人地理数据库

标签 database odbc gis postgis ogr2ogr

我需要使用 ogr2ogr 将 PostGIS 表转换为个人地理数据库。我可以毫无问题地将表转换为 shapefile,但每当我尝试使用 ODBC 驱动程序将其转换为 .mdb 时,都会收到错误。我已经安装了 64 位 GDAL 版本以及 64 位 ODBC 驱动程序。

这是我的命令:

ogr2ogr -f "ODBC" C:\users\[user]\file.mdb PG:"host=localhost user=[user] dbname=[db] password=[password]" "[tablename]"  

这是我得到的错误:

ODBC driver failed to create C:\users\[user]\file.mdb

我是否使用了正确的命令来执行此操作,或者我是否缺少驱动程序或其他内容?

最佳答案

你不能。 ODBC 目前是只读驱动程序,无法创建数据库。

来自http://www.gdal.org/drv_odbc.html :

Currently the ODBC OGR driver is read-only, so new features, tables and datasources cannot normally be created by OGR applications. This limitation may be removed in the future.

关于database - 使用ogr2​​ogr将PostGIS表转换为个人地理数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32609157/

相关文章:

phpmyadmin 自动注销时间

php - 数据库存在,但 WordPress 无法建立数据库连接

sql - 自动生成带有虚拟数据的sql插入语句

java - 32位Win7、32位JDK和32位MS Access导致java.sql.SQLException : No suitable driver found

database - Sage 50 帐户数据库架构

wpf - 设计 WPF map 控件

gis - Google Earth Engine 上的栅格到点转换 : how to convert every single pixel?

ios - Swift - 使用 CoreData 从数据库预加载和更新数据

sql-server - 将数据从 SQL Server 移动到 MS Access mdb

r - 在 R 中使用 rgeos 包中的 gIntersection 时保留元数据