Commits

Anonymous committed d4efbd2

added usage to test application

  • Participants
  • Parent commits 5292a7d

Comments (0)

Files changed (1)

    double minx,miny,maxx,maxy;
    ossimVectorRect *r;
 
+   int label_index = 0;
+   if (argc < 1)
+   {
+      label_index = strtod(argv[2],NULL);
+   }
+   if (argc < 2)
+   {
+      printf("Usage: %s <input_vector file>\n", argv[0]);
+      exit(0);
+   }
    shpname = argv[1];
-   int label_index = strtod(argv[2],NULL);
    outfile = "out.ppm";
    int width = 800; int height= 600;
    BufferType buffer = new unsigned char[width * height * 3];
 
    return 0L;
 }
-