Changeset 10384
- Timestamp:
- 10/31/11 15:53:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/Shp2Kml/Shp2Kml.cpp
r10380 r10384 65 65 if (verbose) printf("Checking inputs:\n"); 66 66 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); 68 68 if (fabs(cm) > 180.) _error_("Central meridian cm=%g must be between -180 (west) and +180 (east) degrees.",cm); 69 69 if (sp < 0. || sp > 90.) _error_("Standard parallel sp=%g must be between 0 and 90 degrees (in specified hemisphere).",sp); … … 102 102 _printf_(true," filshp file name of shp file to be read (char, extension optional)\n"); 103 103 _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"); 105 105 _printf_(true,"\n"); 106 106 _printf_(true," central_meridian central meridian (double, optional, but must specify with sp)\n"); … … 110 110 _printf_(true,"\n"); 111 111 _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"); 115 115 _printf_(true,"\n"); 116 116 }
Note:
See TracChangeset
for help on using the changeset viewer.