作者xien (找我有事吗?)
看板GIS
标题Re: [问题] export from database
时间Tue Feb 7 17:54:16 2017
※ 引述《coeric ( )》之铭言:
: python+arcpy 新手
: 我想从既有资料库汇出某table到某gdb底下去
: 在arcgis map操作都可以,为何改用python script却无法使用?
: 少了什麽步骤吗?
: arcpy.TableToGeodatabase_conversion("Database
: Connections\xxx.sde\yyy.dbo.BUILDCOUNT",'F:\123.gdb')
: (gdb已存在)
这工具的网页说明是:
http://
desktop.arcgis.com/en/arcmap/latest/tools/
conversion-toolbox/table-to-geodatabase.htm
你这样的写法,是类似 Example 1,只能在 Python Window 执行
如果你要写成 Script 档,那你要参考 Example 2 的写法,
然後存成一个 .py 档来执行。
--
身上某一部份,开始褪色,没有光泽~~
脑中另一区域,温度下降,丧失热源~~
自找麻烦的人最最蠢了,是不是呢???
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 124.219.71.28
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/GIS/M.1486461260.A.78C.html
1F:→ coeric: .py档我知道,因为我是在.py无法执行 02/08 13:50
2F:→ coeric: 之前大多是直接使用EX1 写在py档内都ok 以为都可以 02/08 13:51