<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>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.</p>
<p><br>
</p>
<p>Josianne<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Kristian Evers <kristianevers@gmail.com><br>
<b>Gesendet:</b> Donnerstag, 14. Mai 2020 13:50:04<br>
<b>An:</b> Fandré Josianne<br>
<b>Cc:</b> proj@lists.osgeo.org<br>
<b>Betreff:</b> Re: [PROJ] Implemtation of WKT in cs2cs</font>
<div> </div>
</div>
<div>Fandre,
<div class=""><br class="">
</div>
<div class="">You have several problems:</div>
<div class=""><br class="">
</div>
<div class="">1. proj_create_from_wkt() and proj_create() are C functions - they can’t be used from the command line</div>
<div class="">2. Your WKT contains several non-standard quote (“) character that cs2cs won’t understand</div>
<div class="">3. The quote characters has to be escaped with backslashes, except the first and last one.</div>
<div class=""><br class="">
</div>
<div class="">Here’s an updated version of your cs2cs call that works for me:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">$ 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]]"</div>
<div class="">56dN    12dE 0.000</div>
<div class=""><br class="">
</div>
<div class="">/Kristian</div>
<div class=""><br class="">
</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 14 May 2020, at 13:10, Fandré Josianne <<a href="mailto:jfandre@student.ethz.ch" class="">jfandre@student.ethz.ch</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: monospace; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">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]]")</span></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</body>
</html>