/
| 2863 | |
| 2864 | /**********************************************/ |
| 2865 | ListOfHGrids pj_hgrid_init(PJ *P, const char *gridkey) { |
| 2866 | /********************************************** |
| 2867 | |
| 2868 | Initizalize and populate list of horizontal |
| 2869 | grids. |
| 2870 | |
| 2871 | Takes a PJ-object and the plus-parameter |
| 2872 | name that is used in the proj-string to |
| 2873 | specify the grids to load, e.g. "+grids". |
| 2874 | The + should be left out here. |
| 2875 | |
| 2876 | Returns the number of loaded grids. |
| 2877 | |
| 2878 | ***********************************************/ |
| 2879 | |
| 2880 | std::string key("s"); |
| 2881 | key += gridkey; |
| 2882 | const char *grids = pj_param(P->ctx, P->params, key.c_str()).s; |
| 2883 | if (grids == nullptr) |
| 2884 | return {}; |
| 2885 | |
| 2886 | return getListOfGridSets(P->ctx, grids); |
| 2887 | } |
| 2888 | |
| 2889 | // --------------------------------------------------------------------------- |
| 2890 |
no test coverage detected