shpinfo.tcl
来自「Welcome to MS4W, the no fuss installer f」· TCL 代码 · 共 34 行
TCL
34 行
#!/usr/local/bin/tclsh8.3# if running a test before install, include directory to find packagelappend auto_path [pwd]/..package require Mapscriptarray set types { 1 point 3 arc 5 polygon 8 multipoint}set file $argvif {! [file isfile $file.shp]} { puts "shapefile \"$file\" not found" puts "usage: $argv0 <shapefile>" exit}mapscript::shapefileObj shp1 $file -1puts "\nShapefile $file:\n"puts "\ttype: $types([shp1 cget -type])"puts "\tnumber of features: [shp1 cget -numshapes]"set rectPtr [shp1 cget -bounds]puts "\tbounds: ([mapscript::rectObjRef $rectPtr cget -minx],[mapscript::rectObjRef $rectPtr cget -miny]) ([mapscript::rectObjRef $rectPtr cget -maxx],[mapscript::rectObjRef $rectPtr cget -maxy])"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?