Changeset 10384


Ignore:
Timestamp:
10/31/11 15:53:37 (13 years ago)
Author:
jschierm
Message:

Shp2Kml: minor usage changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/mex/Shp2Kml/Shp2Kml.cpp

    r10380 r10384  
    6565        if (verbose) printf("Checking inputs:\n");
    6666
    67 //      if (sgn != +1 && sgn != -1) _error_("Hemisphere sgn=%d must be +1 (north) or -1 (south).",sgn);
     67        if (sgn < -1 || sgn > +1) _error_("Hemisphere sgn=%d must be +1 (north), -1 (south), or 0 (no translation).",sgn);
    6868        if (fabs(cm)      > 180.) _error_("Central meridian cm=%g must be between -180 (west) and +180 (east) degrees.",cm);
    6969        if (sp < 0. || sp >  90.) _error_("Standard parallel sp=%g must be between 0 and 90 degrees (in specified hemisphere).",sp);
     
    102102        _printf_(true,"      filshp      file name of shp file to be read (char, extension optional)\n");
    103103        _printf_(true,"      filkml      file name of kml file to be written (char)\n");
    104         _printf_(true,"      sgn         sign for hemisphere (double, +1 (north); -1 (south); 0 (no translation))\n");
     104        _printf_(true,"      sgn         sign for hemisphere (double, +1 (north); -1 (south); or 0 (no translation))\n");
    105105        _printf_(true,"\n");
    106106        _printf_(true,"      central_meridian     central meridian (double, optional, but must specify with sp)\n");
     
    110110        _printf_(true,"\n");
    111111        _printf_(true,"   Examples:\n");
    112         _printf_(true,"      [ret]=Shp2Kml('file.shp','file.kml', 1);\n");
    113         _printf_(true,"      [ret]=Shp2Kml('file.shp','file.kml', 1,'central_meridian',45,'standard_parallel',70,'holes');\n");
    114         _printf_(true,"      [ret]=Shp2Kml('file.shp','file.kml',-1,'central_meridian', 0,'standard_parallel',71,'holes');\n");
     112        _printf_(true,"      [ret]=Shp2Kml('file.shp','file.kml', 0);\n");
     113        _printf_(true,"      [ret]=Shp2Kml('file.shp','file.kml', 1,'central_meridian',45,'standard_parallel',70);\n");
     114        _printf_(true,"      [ret]=Shp2Kml('file.shp','file.kml',-1,'central_meridian', 0,'standard_parallel',71);\n");
    115115        _printf_(true,"\n");
    116116}
Note: See TracChangeset for help on using the changeset viewer.