-
Notifications
You must be signed in to change notification settings - Fork 9
qgis:shp2csv
cytggit edited this page Jan 10, 2017
·
9 revisions
1. 设置 → 数据源 → 数据源处理;
2. 忽略shape文件编码声明 的勾去掉;
1. 选中图层另存为;
2. 格式:以逗号分隔的值;
3. 另存为:选择导出的文件;
4. GEOMETRY:AS_WKT;
5. WRITE_BOM:YES;
6. 其他默认,确定;
注:目前point、polygon、Annotation采用此方法!
1. 数据库管理器;
2. 连接数据库;
3. 导入图层或文件;
4. 输入:shape文件;
5. 输出:选择模式和表格(新建表格);
6. 勾上几何字段;
7. 确定;
1. 命令行操作;
2. su postgres
3. psql -d mote_basemap
4. COPY (SELECT objectid,entity,layer,color,st_astext(geom) FROM "polyline_1222") TO '/home/postgres/pgdata/cadfiles/ttt.csv' WITH CSV header;
注:导出时选择需要的字段!