[Proj] cct DMS input

Thomas Knudsen knudsen.thomas at gmail.com
Fri Sep 14 08:12:53 PDT 2018


Gerald,

No - currently cct does not process DMS. But in a recent discussion over at
the PROJ Github site, Kristian Evers proposed this workaround:

(quote)

Until cct can parse DMS coordinates you can use cs2cs as a pre-filter to
cct:

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
 37.3924628036   -6.9346316313      991.7547        0.000

(unquote)

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

/Thomas



Den fre. 14. sep. 2018 kl. 17.03 skrev Gerald Eisenberg <eisenberg at teec.de>:

>
>
> hi all,
>
>   how can I use DMS input format with the pipelinng scheme of PROJ?
>
> For example here only the last input line gives the correct answer.
> DMS input is apparently not honoured, but only decimal degree
> input recognised. Am I missing an option to allow for DMS input?
>
> >cat input.txt
> 30 72
> 30d30'3.77"E 72d44'59.082"N
> 30d30'0.00"E 72d45'0.00"N
> 30d30 72d45
> 30.5 72.75
> >cct  -z0 -t0 +proj=pipeline +proj=utm +zone=35 +ellps=intl +step input.txt
>   603438.4563   7991726.2305        0.0000        0.0000
>   603438.4563   7991726.2305        0.0000        0.0000
>   603438.4563   7991726.2305        0.0000        0.0000
>   603438.4563   7991726.2305        0.0000        0.0000
>   615792.6657   8076192.4701        0.0000        0.0000
>
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20180914/e3a31367/attachment.html>


More information about the Proj mailing list