MCPcopy Create free account
hub / github.com/Kitware/VTK / pj_hgrid_init

Function pj_hgrid_init

ThirdParty/libproj/vtklibproj/src/grids.cpp:2865–2887  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

2863
2864/**********************************************/
2865ListOfHGrids 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

Callers 4

forward_3dFunction · 0.85
reverse_3dFunction · 0.85
hgridshift.cppFile · 0.85
deformation.cppFile · 0.85

Calls 3

pj_paramFunction · 0.85
getListOfGridSetsFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected