aboutsummaryrefslogtreecommitdiff
path: root/src/transformations/horner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/transformations/horner.cpp')
-rw-r--r--src/transformations/horner.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/transformations/horner.cpp b/src/transformations/horner.cpp
index d88ea152..e32a6b99 100644
--- a/src/transformations/horner.cpp
+++ b/src/transformations/horner.cpp
@@ -414,7 +414,7 @@ static int parse_coefs (PJ *P, double *coefs, const char *param, int ncoefs) {
buf = static_cast<char*>(calloc (strlen (param) + 2, sizeof(char)));
if (nullptr==buf) {
- proj_log_error (P, "Horner: No memory left");
+ proj_log_error (P, "No memory left");
return 0;
}
@@ -430,7 +430,7 @@ static int parse_coefs (PJ *P, double *coefs, const char *param, int ncoefs) {
for (i = 0; i < ncoefs; i++) {
if (i > 0) {
if ( next == nullptr || ','!=*next) {
- proj_log_error (P, "Horner: Malformed polynomium set %s. need %d coefs", param, ncoefs);
+ proj_log_error (P, "Malformed polynomium set %s. need %d coefs", param, ncoefs);
return 0;
}
init = ++next;
@@ -460,11 +460,11 @@ PJ *PROJECTION(horner) {
degree = pj_param(P->ctx, P->params, "ideg").i;
if (degree < 0 || degree > 10000) {
/* What are reasonable minimum and maximums for degree? */
- proj_log_error (P, _("Horner: Degree is unreasonable: %d"), degree);
+ proj_log_error (P, _("Degree is unreasonable: %d"), degree);
return horner_freeup (P, PROJ_ERR_INVALID_OP_ILLEGAL_ARG_VALUE);
}
} else {
- proj_log_error (P, _("Horner: Must specify polynomial degree, (+deg=n)"));
+ proj_log_error (P, _("Must specify polynomial degree, (+deg=n)"));
return horner_freeup (P, PROJ_ERR_INVALID_OP_MISSING_ARG);
}
@@ -484,12 +484,12 @@ PJ *PROJECTION(horner) {
n = 2*degree + 2;
if (0==parse_coefs (P, Q->fwd_c, "fwd_c", n))
{
- proj_log_error (P, _("Horner: missing fwd_c"));
+ proj_log_error (P, _("missing fwd_c"));
return horner_freeup (P, PROJ_ERR_INVALID_OP_MISSING_ARG);
}
if (0==parse_coefs (P, Q->inv_c, "inv_c", n))
{
- proj_log_error (P, _("Horner: missing inv_c"));
+ proj_log_error (P, _("missing inv_c"));
return horner_freeup (P, PROJ_ERR_INVALID_OP_MISSING_ARG);
}
P->fwd4d = complex_horner_forward_4d;
@@ -500,34 +500,34 @@ PJ *PROJECTION(horner) {
n = horner_number_of_coefficients (degree);
if (0==parse_coefs (P, Q->fwd_u, "fwd_u", n))
{
- proj_log_error (P, _("Horner: missing fwd_u"));
+ proj_log_error (P, _("missing fwd_u"));
return horner_freeup (P, PROJ_ERR_INVALID_OP_MISSING_ARG);
}
if (0==parse_coefs (P, Q->fwd_v, "fwd_v", n))
{
- proj_log_error (P, _("Horner: missing fwd_v"));
+ proj_log_error (P, _("missing fwd_v"));
return horner_freeup (P, PROJ_ERR_INVALID_OP_MISSING_ARG);
}
if (0==parse_coefs (P, Q->inv_u, "inv_u", n))
{
- proj_log_error (P, _("Horner: missing inv_u"));
+ proj_log_error (P, _("missing inv_u"));
return horner_freeup (P, PROJ_ERR_INVALID_OP_MISSING_ARG);
}
if (0==parse_coefs (P, Q->inv_v, "inv_v", n))
{
- proj_log_error (P, _("Horner: missing inv_v"));
+ proj_log_error (P, _("missing inv_v"));
return horner_freeup (P, PROJ_ERR_INVALID_OP_MISSING_ARG);
}
}
if (0==parse_coefs (P, (double *)(Q->fwd_origin), "fwd_origin", 2))
{
- proj_log_error (P, _("Horner: missing fwd_origin"));
+ proj_log_error (P, _("missing fwd_origin"));
return horner_freeup (P, PROJ_ERR_INVALID_OP_MISSING_ARG);
}
if (0==parse_coefs (P, (double *)(Q->inv_origin), "inv_origin", 2))
{
- proj_log_error (P, _("Horner: missing inv_origin"));
+ proj_log_error (P, _("missing inv_origin"));
return horner_freeup (P, PROJ_ERR_INVALID_OP_MISSING_ARG);
}
if (0==parse_coefs (P, &Q->range, "range", 1))