• 大小: 3.64MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-21
  • 语言: 其他
  • 标签: ArcGIS  

资源简介

模型中附带数据,添加进ArcGIS 9.3 的Toolbox就可以运行,这个是最短路径分析的

资源截图

代码片段和文件信息

#This script applies a style sheet to an xml file and generates an HTML file
#Used for converting the directions from xml to HTML
#Download and install libxml2-python-2.6.30.win32-py2.5.exe from http://xmlsoft.org/sources/win32/python/
#Import the modules
import libxml2libxsltarcgisscripting

gp = arcgisscripting.create()

#Get the parameters
xsltfile = gp.GetParameterAsText(0)
xmlfile = gp.GetParameterAsText(1)
outputfile = gp.GetParameterAsText(2)

#Load and parse the XSLT file
styledoc = libxml2.parseFile(xsltfile)
style = libxslt.parsestylesheetDoc(styledoc)

#Load the xml file
doc = libxml2.parseFile(xmlfile)

#Apply the stylesheet
result = style.applystylesheet(doc None)

#Save to HTML and clear the resources
style.saveResultToFilename(outputfile result 0)
style.freestylesheet()
doc.freeDoc()
result.freeDoc()


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        302  2008-04-15 15:39  ShortestRoute\ReadMe.txt

     文件     440832  2008-04-04 14:43  ShortestRoute\SanFranciscobasemap.mxd

     文件       7658  2008-04-04 15:00  ShortestRoute\Scratch\Route_Directions.html

     文件       1378  2008-04-04 15:00  ShortestRoute\Scratch\Route_Directions.txt

     文件         45  2008-04-04 14:44  ShortestRoute\Scratch\schema.ini

     文件        862  2008-04-02 12:27  ShortestRoute\scripts\ApplystyleSheet.py

     文件      10920  2008-01-15 13:29  ShortestRoute\scripts\Dir2WebDocumentNoMaps.xsl

     文件     556032  2008-04-04 15:02  ShortestRoute\ShortestRouteService.mxd

     文件     390656  2008-04-16 17:18  ShortestRoute\ShortestRouteService.tbx

     文件      10752  2008-03-25 14:17  ShortestRoute\ToolData\InputStops.lyr

     文件        191  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000001.gdbindexes

     文件       3338  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000001.gdbtable

     文件       5152  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000001.gdbtablx

     文件        920  2008-04-02 15:11  ShortestRoute\ToolData\SanFrancisco.gdb\a00000002.gdbtable

     文件       5152  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000002.gdbtablx

     文件        191  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000003.gdbindexes

     文件       1535  2008-04-02 15:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000003.gdbtable

     文件       5152  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000003.gdbtablx

     文件        179  2008-04-02 15:11  ShortestRoute\ToolData\SanFrancisco.gdb\a00000004.gdbtable

     文件       5152  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000004.gdbtablx

     文件        191  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000005.gdbindexes

     文件        246  2008-04-02 15:13  ShortestRoute\ToolData\SanFrancisco.gdb\a00000005.gdbtable

     文件       5152  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000005.gdbtablx

     文件        191  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000006.gdbindexes

     文件        768  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000006.gdbtable

     文件       5152  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000006.gdbtablx

     文件        445  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000007.gdbtable

     文件       5152  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000007.gdbtablx

     文件       1561  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000008.gdbtable

     文件       5152  2008-04-16 17:49  ShortestRoute\ToolData\SanFrancisco.gdb\a00000008.gdbtablx

............此处省略264个文件信息

评论

共有 条评论