Skip to content

Commit 9d0a21c

Browse files
committed
formatting
1 parent f36bd2f commit 9d0a21c

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/proj.cpp

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,19 @@ Rcpp::DataFrame CPL_get_pipelines(Rcpp::CharacterVector crs, Rcpp::CharacterVect
7373
if (grid_availability.size() == 1) {
7474
if (grid_availability[0] == "USED")
7575
proj_operation_factory_context_set_grid_availability_use(PJ_DEFAULT_CTX, factory_ctx,
76-
PROJ_GRID_AVAILABILITY_USED_FOR_SORTING); // Grid availability is only used for sorting results. Operations where some grids are missing will be sorted last.
76+
PROJ_GRID_AVAILABILITY_USED_FOR_SORTING); // Grid availability is only used for sorting results.
77+
// Operations where some grids are missing will be sorted last.
7778
else if (grid_availability[0] == "DISCARD")
78-
proj_operation_factory_context_set_grid_availability_use(PJ_DEFAULT_CTX, factory_ctx,
79-
PROJ_GRID_AVAILABILITY_DISCARD_OPERATION_IF_MISSING_GRID); // Completely discard an operation if a required grid is missing.
79+
proj_operation_factory_context_set_grid_availability_use(PJ_DEFAULT_CTX, factory_ctx,
80+
PROJ_GRID_AVAILABILITY_DISCARD_OPERATION_IF_MISSING_GRID); // Completely discard an operation if a required grid is missing.
8081
else if (grid_availability[0] == "IGNORED")
81-
proj_operation_factory_context_set_grid_availability_use(PJ_DEFAULT_CTX, factory_ctx,
82-
PROJ_GRID_AVAILABILITY_IGNORED); // Ignore grid availability at all. Results will be presented as if all grids were available.
82+
proj_operation_factory_context_set_grid_availability_use(PJ_DEFAULT_CTX, factory_ctx,
83+
PROJ_GRID_AVAILABILITY_IGNORED); // Ignore grid availability at all. Results will be presented as if all grids were available.
8384
else if (grid_availability[0] == "AVAILABLE")
84-
proj_operation_factory_context_set_grid_availability_use(PJ_DEFAULT_CTX, factory_ctx,
85-
PROJ_GRID_AVAILABILITY_KNOWN_AVAILABLE); // Results will be presented as if grids known to PROJ (that is registered in the grid_alternatives table of its database) were available. Used typically when networking is enabled.
85+
proj_operation_factory_context_set_grid_availability_use(PJ_DEFAULT_CTX, factory_ctx,
86+
PROJ_GRID_AVAILABILITY_KNOWN_AVAILABLE); // Results will be presented as if grids known to PROJ
87+
// (that is registered in the grid_alternatives table of its database)
88+
// were available. Used typically when networking is enabled.
8689
else
8790
Rcpp::stop("Unknown value for grid_availability");
8891
}

0 commit comments

Comments
 (0)