Changeset 12497 for issm/trunk-jpl/src/modules/Shp2Kml/Shp2Kml.cpp
- Timestamp:
- 06/21/12 14:08:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/modules/Shp2Kml/Shp2Kml.cpp ¶
r12496 r12497 25 25 26 26 #ifndef _HAVE_SHAPELIB_ //only works if shapelib library has been compiled in. 27 _error _("Shapelib not available! Cannot carry out shp file translation!");27 _error2_("Shapelib not available! Cannot carry out shp file translation!"); 28 28 #endif 29 29 … … 33 33 /*checks on arguments on the matlab side: */ 34 34 if (nlhs > NLHS) { 35 Shp2KmlUsage(); _error _("Shp2Kml usage error");35 Shp2KmlUsage(); _error2_("Shp2Kml usage error"); 36 36 } 37 37 if (nrhs < NRHS) { 38 Shp2KmlUsage(); _error _("Shp2Kml usage error");38 Shp2KmlUsage(); _error2_("Shp2Kml usage error"); 39 39 } 40 40 … … 54 54 55 55 /*some checks*/ 56 if (sgn < -1 || sgn > +1) _error _("Hemisphere sgn=%d must be +1 (north), -1 (south), or 0 (no translation).",sgn);57 if (fabs(cm) > 180.) _error _("Central meridian cm=%g must be between -180 (west) and +180 (east) degrees.",cm);58 if (sp < 0. || sp > 90.) _error _("Standard parallel sp=%g must be between 0 and 90 degrees (in specified hemisphere).",sp);56 if (sgn < -1 || sgn > +1) _error2_("Hemisphere sgn=" << sgn << " must be +1 (north), -1 (south), or 0 (no translation)."); 57 if (fabs(cm) > 180.) _error2_("Central meridian cm=" << cm << " must be between -180 (west) and +180 (east) degrees."); 58 if (sp < 0. || sp > 90.) _error2_("Standard parallel sp=" << sp << " must be between 0 and 90 degrees (in specified hemisphere)."); 59 59 60 60 /* Run core computations: */
Note:
See TracChangeset
for help on using the changeset viewer.