MCPcopy Create free account
hub / github.com/OSGeo/PROJ / run_proj_cmd

Function run_proj_cmd

docs/plot/plot.py:90–107  ·  view source on GitHub ↗

Run PROJ command with optional args. Parameters ---------- args : list Zero or more arguments. **kwargs : dict Passed to ``subprocess.run``. Returns ------- subprocess.CompletedProcess

(args=[], **kwargs)

Source from the content-addressed store, hash-verified

88
89
90def run_proj_cmd(args=[], **kwargs):
91 """Run PROJ command with optional args.
92
93 Parameters
94 ----------
95 args : list
96 Zero or more arguments.
97 **kwargs : dict
98 Passed to ``subprocess.run``.
99
100 Returns
101 -------
102 subprocess.CompletedProcess
103 """
104 args = [PROJ] + args
105 proc = subprocess.run(args, capture_output=True, env=PROJ_ENV, **kwargs)
106 proc.check_returncode()
107 return proc
108
109
110def geojson2geom_array(file):

Callers 2

projectFunction · 0.85
mainFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected