<div dir="ltr"><div dir="ltr"><div>Gerald,</div><div><br></div><div>No - currently cct does not process DMS. But in a recent discussion over at the PROJ Github site, Kristian Evers proposed this workaround: <br></div><div><br></div><div>(quote)<br></div><div><br>Until cct can parse DMS coordinates you can use cs2cs as a pre-filter to cct:<br><br>echo 6d55\'57\"S 37d23\'30\"E | cs2cs -f %.8f +proj=latlong | cct -c 2,1 -t0 -z1000 +proj=molodensky +ellps=clrk80 +da=-112.145 +df=-0.54750714e-4 +dx=-175 +dy=-23 +dz=-303<br> 37.3924628036 -6.9346316313 991.7547 0.000<br><br></div><div>(unquote)</div><div><br></div><div>Obviously cct *should* support DMS, but the traditional way, using " and ' does not play very well with quoted strings, so personally I tend to prefer Charles Karney's DDD:MM:SS.sss notation, used in GeographicLib. Essentially supporting both should not be a huge task, and a pull request would be very welcome</div><div><br></div><div>/Thomas<br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Den fre. 14. sep. 2018 kl. 17.03 skrev Gerald Eisenberg <<a href="mailto:eisenberg@teec.de">eisenberg@teec.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
hi all,<br>
<br>
how can I use DMS input format with the pipelinng scheme of PROJ?<br>
<br>
For example here only the last input line gives the correct answer.<br>
DMS input is apparently not honoured, but only decimal degree<br>
input recognised. Am I missing an option to allow for DMS input?<br>
<br>
>cat input.txt<br>
30 72<br>
30d30'3.77"E 72d44'59.082"N<br>
30d30'0.00"E 72d45'0.00"N<br>
30d30 72d45<br>
30.5 72.75<br>
>cct -z0 -t0 +proj=pipeline +proj=utm +zone=35 +ellps=intl +step input.txt<br>
603438.4563 7991726.2305 0.0000 0.0000<br>
603438.4563 7991726.2305 0.0000 0.0000<br>
603438.4563 7991726.2305 0.0000 0.0000<br>
603438.4563 7991726.2305 0.0000 0.0000<br>
615792.6657 8076192.4701 0.0000 0.0000<br>
<br>
_______________________________________________<br>
Proj mailing list<br>
<a href="mailto:Proj@lists.maptools.org" target="_blank">Proj@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
</blockquote></div>