| 46 | |
| 47 | |
| 48 | public static void Main(string[] args) { |
| 49 | |
| 50 | if (args.Length != 1) usage(); |
| 51 | |
| 52 | Hashtable ht = new Hashtable(); |
| 53 | ht.Add(1,"point"); |
| 54 | ht.Add(3,"arc"); |
| 55 | ht.Add(5,"polygon"); |
| 56 | ht.Add(8,"multipoint"); |
| 57 | |
| 58 | shapefileObj shpObj = new shapefileObj(args[0],-1); |
| 59 | Console.WriteLine ("ShapeType = " + ht[shpObj.type]); |
| 60 | Console.WriteLine ("Num shapes = " + shpObj.numshapes); |
| 61 | Console.WriteLine ("(xmin, ymin) = (" + shpObj.bounds.minx + "," + shpObj.bounds.miny + ") (xmax, ymax) = (" + shpObj.bounds.maxx + "," + shpObj.bounds.maxy + ")"); |
| 62 | } |
| 63 | } |