MCPcopy Create free account
hub / github.com/MapServer/MapServer / Main

Method Main

mapscript/csharp/examples/shapeinfo.cs:48–62  ·  view source on GitHub ↗
(string[] args)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 1

usageFunction · 0.50

Tested by

no test coverage detected