ArcMap布局只能矩形,Pro可以是圓形,多邊形的,ArcMap可以插入元素,Pro中地圖不能插入元素,ArcGIS Pro可以在線更新
ArcMap字段計算器有VB,Pro沒有,字段計算器沒有VB語法,是PYTHON3,標注Pro有VB
pro字段是別名,print(),ArcMap是print 不加空格,
string.split(arcpy.GetParameterAsText(0), ";") 修改arcpy.GetParameterAsText(0).split(";")
pro中數據不放在漢字路徑下,一個問題用了好幾個小時
在pro中,不需要加 u"沒有數據",源碼前面一定#coding=utf8
在ArcMap中
try
except Exception, ErrorDesc:
#If an error set output boolean parameter "Error" to True.
arcpy.AddError(str(ErrorDesc))
是正確
Pro中
try
except Exception as err:
arcpy.AddError(str(err))
ArcMap可以
mystr.decode('utf-8')
Pro不可以
pro中沒有
arcpy.CreatePersonalGDB_management(os.path.dirname(out_mdb),os.path.basename(out_mdb))
文件地理數據庫10.0和Pro是兼容的
ArcMap是默認是絕對路徑,Pro是相對路徑
=========================
在ArcMap中可以
unicode(titlestr)
pro不需要
===================================
arcmap中
filepath+"/Band_1"
pro中
filepath+"/Layer_1"
===========================
ArcMap中arcpy.mapping.MapDocument("CURRENT")修改pro中arcpy.mp.ArcGISProject("CURRENT")
arcpy.mapping修改arcpy.mp
===================================
Pro中增加圖層
mxd = arcpy.mp.ArcGISProject("CURRENT")
df = mxd.listMaps()[0]
addLayer = df.addDataFromPath(outFeature)
df.addLayer(addLayer)
Map
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd)[0]
addLayer = arcpy.mapping.Layer(outFeature)
arcpy.mapping.AddLayer(df, addLayer, "AUTO_ARRANGE")
=============================================
arcmap
string.atof pro中float
=================================
ArcMap是
arcpy.ConstructSightLines_3d
Pro
arcpy.ddd.ConstructSightLines
========================================
arcmap string.find(toolbox,"(") pro修改toolbox.find(toolbox,"(")
==================================
ArcMap
try:
main()
except Exception as e:
arcpy.AddError(e.message)
pro
try:
main()
except Exception as e:
arcpy.AddError(e)
======================================
Pro沒有arcpy.RefreshActiveView()