[PROJ] Implemtation of WKT in cs2cs

Kristian Evers kristianevers at gmail.com
Thu May 14 04:50:04 PDT 2020


Fandre,

You have several problems:

1. proj_create_from_wkt() and proj_create() are C functions - they can’t be used from the command line
2. Your WKT contains several non-standard quote (“) character that cs2cs won’t understand
3. The quote characters has to be escaped with backslashes, except the first and last one.

Here’s an updated version of your cs2cs call that works for me:

$ echo 56 12 0 | cs2cs EPSG:4326  "GEODCRS[\"WGS 84\",DATUM[\"World Geodetic System 1984\",ELLIPSOID[\"WGS 84\",6378137,298.257223563,LENGTHUNIT[\"metre\",1.0]]]CS[ellipsoidal,2],AXIS[\"latitude\",north,ORDER[1]],AXIS[\"longitude\",east,ORDER[2]],ANGLEUNIT[\"degree\",0.0174532952]]"
56dN    12dE 0.000

/Kristian


> On 14 May 2020, at 13:10, Fandré Josianne <jfandre at student.ethz.ch> wrote:
> 
> cs2cs +init=epsg:4326 +to +proj_create_from_wkt(0,"GEODCRS[„WGS 84“,DATUM[„World Geodetic System 1984“,ELLIPSOID[“WGS 84”,6378137,298.257223563,LENGTHUNIT[“metre”,1.0]]]CS[ellipsoidal,2],AXIS[“latitude”,north,ORDER[1]],AXIS[“longitude”,east,ORDER[2]],ANGLEUNIT[“degree”,0.0174532952]]")

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20200514/58816fd6/attachment.html>


More information about the PROJ mailing list