⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shpinfo.tcl

📁 Welcome to MS4W, the no fuss installer for setting up MapServer on Microsoft Windows platforms. The
💻 TCL
字号:
#!/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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -