[PROJ] Implemtation of WKT in cs2cs

Fandré Josianne jfandre at student.ethz.ch
Thu May 14 04:57:47 PDT 2020


Thank you very much. Now it works. I'm new to PROJ and unfortunately I haven't found any examples for the use of WKT in proj.


Josianne

________________________________
Von: Kristian Evers <kristianevers at gmail.com>
Gesendet: Donnerstag, 14. Mai 2020 13:50:04
An: Fandré Josianne
Cc: proj at lists.osgeo.org
Betreff: Re: [PROJ] Implemtation of WKT in cs2cs

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<mailto: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/f68cbd50/attachment.html>


More information about the PROJ mailing list