What is the correct specification of the `--proj` argument?

Hi,

I’m new to the forum. I have trouble specifying --proj argument (PROJ4 string for the transformation of the outputs) correctly; so far I’ve tried the following (either quoted, double-quoted, or unquoted):

  • +proj=tmerc +lat_0=0 +lon_0=173 +k=0.9996 +x_0=1600000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
  • EPSG:2193
  • epsg:2193

The full proj4 string results in an immediate error:

usage: run.py [options] <project name>

run.py: error: unrecognized arguments: +lat_0=0 +lon_0=173 +k=0.9996 +x_0=1600000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs'

…while the EPSG:xxxx shorthand is not recognised:

[ERROR]   Could not set projection. Please use a proj4 string
Traceback (most recent call last):
  File "/code/opendm/types.py", line 183, in set_projection
    return Proj(projstring)
  File "/usr/lib/python2.7/dist-packages/pyproj/__init__.py", line 358, in __new__
    return _proj.Proj.__new__(self, projstring)
  File "_proj.pyx", line 84, in _proj.Proj.__cinit__ (_proj.c:1170)
RuntimeError: projection not named

I’m reading the list of arguments from a file. I’ve looked through the source code but couldn’t find the definitions. I’d appreciate a hint.

I’m running ODM in a Singularity container.

Thanks.