企業(yè)微信有哪些功能寧波seo軟件
arcpy
位置D:\Program Files\GeoScene\Pro\Resources\ArcPy\arcpy\__init__.py
”““AddMessage(消息)
創(chuàng)建可以使用任何GetMessages函數(shù)訪問(wèn)的地理處理信息消息(Severity=0)。
message(字符串):要添加的消息?!薄?/p>
arcpy.geoprocessing
D:\Program Files\GeoScene\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py
“”“GP函數(shù)AddMessage”“”
create({version})作用創(chuàng)建Geoprocessor對(duì)象
arcgisscripting
?.pyd文件是用Python編寫(xiě)生成的動(dòng)態(tài)鏈接庫(kù),包含一個(gè)或多個(gè)Python modules,可以被其它Python代碼調(diào)用。
python解析.pyd文件_.pyd 文件讀取-CSDN博客
參數(shù)調(diào)整
"""調(diào)整傳入函數(shù)的參數(shù),使其對(duì)腳本友好:傳入字符串化的結(jié)果對(duì)象和未包裝的圓弧對(duì)象"""
isinstance() 函數(shù)詳細(xì)解釋:isinstance() 函數(shù)來(lái)判斷一個(gè)對(duì)象是否是一個(gè)已知的類型,類似 type()。
python基礎(chǔ)教程:isinstance() 函數(shù)_isinstance函數(shù)python_夢(mèng)想拯救世界_的博客-CSDN博客
result類
一個(gè)Result對(duì)象由地理處理工具返回。
class Result(mixins.ResultMixin,_BaseArcObject):"""A Result object is returned by geoprocessing tools."""status = passthrough_attr('status')resultID = passthrough_attr('resultID')messageCount = passthrough_attr('messageCount')maxSeverity = passthrough_attr('maxSeverity')outputCount = passthrough_attr('outputCount')inputCount = passthrough_attr('inputCount')def getMessage(self, *args):"""Result.getMessage(index)Returns a specific message.返回一個(gè)特定的消息。index(Integer):指數(shù)(整數(shù)):The index position of the message.消息的索引位置。"""from arcpy.geoprocessing._base import gp_fixargsreturn convertArcObjectToPythonObject(self._arc_object.GetMessage(*gp_fixargs(args)))def getMessages(self, *args):"""Result.getMessages({severity})Returns messages.severity{Integer}:The type of messages to be returned: 0=message, 1=warning, 2=error.Not specifying a value returns all message types.* 0: informational message* 1: warning message* 2: error message嚴(yán)重性{整數(shù)}:要返回的消息類型:0=消息,1=警告,2=錯(cuò)誤。不指定值將返回所有消息類型。* 0:提示消息* 1:警告信息* 2:錯(cuò)誤信息"""from arcpy.geoprocessing._base import gp_fixargsreturn convertArcObjectToPythonObject(self._arc_object.GetMessages(*gp_fixargs(args)))def getSeverity(self, *args):"""Result.getSeverity(index)Returns the severity of a specific message.返回特定消息的嚴(yán)重性。index(Integer):The message index position."""from arcpy.geoprocessing._base import gp_fixargsreturn convertArcObjectToPythonObject(self._arc_object.GetSeverity(*gp_fixargs(args)))def getOutput(self, *args):"""Result.getOutput(index)Returns a given output, either as a recordset or a string.以記錄集或字符串的形式返回給定的輸出。If the output of the tool, such as MakeFeatureLayer is a layer,getOutput will return a Layer object.如果工具的輸出,比如MakeFeatureLayer是一個(gè)圖層,getOutput將返回一個(gè)Layer對(duì)象。index(Integer):The index position of the outputs."""from arcpy.geoprocessing._base import gp_fixargsreturn convertArcObjectToPythonObject(self._arc_object.GetOutput(*gp_fixargs(args)))def getInput(self, *args):"""Result.getInput(index)Returns a given input, either as a recordset or string.以記錄集或字符串的形式返回給定的輸入。index(Integer):The index position of the input."""from arcpy.geoprocessing._base import gp_fixargsreturn convertArcObjectToPythonObject(self._arc_object.GetInput(*gp_fixargs(args)))def getMapImageURL(self, *args):"""Result.getMapImageURL({parameter_list}, {height}, {width},{resolution})Gets a map service image for a given output, if one exists.parameter_list{Integer}:Parameter(s) on which the map service image will be based.height{Double}:The height of the image.width{Double}:The width of the image.resolution{Double}:The resolution of the image."""from arcpy.geoprocessing._base import gp_fixargsreturn convertArcObjectToPythonObject(self._arc_object.GetMapImageURL(*gp_fixargs(args)))def cancel(self, *args):"""Result.cancel()Cancels an associated job"""from arcpy.geoprocessing._base import gp_fixargsreturn convertArcObjectToPythonObject(self._arc_object.Cancel(*gp_fixargs(args)))def saveToFile(self, *args):"""Result.saveToFile(rlt_file)Saves the result to a result file (.rlt) .rlt_file(String):Full path to the outputresult file (.rlt) ."""from arcpy.geoprocessing._base import gp_fixargsreturn convertArcObjectToPythonObject(self._arc_object.SaveToFile(*gp_fixargs(args)))def _repr_html_(self, *args):"""Extent.exportToString()Exports the object to its string representation.將對(duì)象導(dǎo)出為其字符串表示形式。"""from arcpy.geoprocessing._base import gp_fixargsreturn convertArcObjectToPythonObject(self._arc_object._repr_html_(*gp_fixargs(args)))
?convertArcObjectToPythonObject
type(obj)用來(lái)查看某個(gè)變量(類對(duì)象)的具體類型,obj 表示某個(gè)變量或者類對(duì)象。
type(obj).__name__返回的是類名
type的使用參考Python type()函數(shù):動(dòng)態(tài)創(chuàng)建類
arcobject_to_python_class_mapping包含的內(nèi)容:
"""從現(xiàn)有的ARC對(duì)象創(chuàng)建的對(duì)象繞過(guò)構(gòu)造函數(shù)。"”“