Closed snowman2 closed 3 years ago
For the first part, I don't see this as a bug. \n here is understood as 2 characters, not the newline character.
If instead you try the following, it will work:
projinfo "$(printf 'PROJCS["Albers Conical Equal Area",\n GEOGCS["NAD83",\n DATUM["North_American_Datum_1983",\n SPHEROID["GRS 1980",6378137,298.257222101,\n AUTHORITY["EPSG","7019"]],\n TOWGS84[0,0,0,-0,-0,-0,0],\n AUTHORITY["EPSG","6269"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["degree",0.0174532925199433,\n AUTHORITY["EPSG","9122"]],\n AUTHORITY["EPSG","4269"]],\n PROJECTION["Albers_Conic_Equal_Area"],\n PARAMETER["standard_parallel_1",29.5],\n PARAMETER["standard_parallel_2",45.5],\n PARAMETER["latitude_of_center",23],\n PARAMETER["longitude_of_center",-96],\n PARAMETER["false_easting",0],\n PARAMETER["false_northing",0],\n UNIT["meters",1]]')"
Regarding leading space/newline, addressed per 93d8fcc
Thanks :+1:
Example of problem
Same string with
\n
removed.I had the same issue with
proj_create
:But, it works fine with GDAL python bindings:
Expected Output
No error.
Environment Information
Installation method