using System; /** *

Title: Mapscript shape dump example.

*

Description: A Java based mapscript to dump information from a shapefile.

* @author Yew K Choo (ykchoo@geozervice.com) * @version 1.0 */ /// /// A C# based mapscript mapscript to dump information from a shapefile. /// class ShapeDump { public static void usage() { Console.WriteLine("usage: shpdump {shapefile}"); System.Environment.Exit(-1); } public static void Main(string[] args) { if (args.Length != 1) usage(); shapefileObj sf_obj = new shapefileObj(args[0],-1); shapeObj s_obj = new shapeObj(-1); for (int i=0; i