Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • In-Stata Conversion of Geographic Coordinates to UTM

    Dear Statalist users,

    does anybody know of a Stata module to convert geographic coordinates (i.e. lat-long coordinates) to Universal Transverse Mercator (UTM) Coordinate System. In any case, does anyone have Stata code which they are willing to share?

    To be fair, although there are several solutions to this problems outside of Stata, I was wondering if there was any in-Stata solution.

    Best regards,
    jlft.

    PS: This question seems unanswered in previous Statalist discussions (see (1) and (2) at the bottom).
    (1) http://www.stata.com/statalist/archi.../msg00141.html
    (2) http://www.stata.com/statalist/archi.../msg01293.html

  • #2
    It probably comes under your "several solutions outside of Stata" heading, but the code in the third answer here (Stackexchange) could be translated to Mata fairly easily.

    Brendan

    Comment


    • #3
      Thanks, Brendan. I ended up using a different set of coordinates (i.e. one that was in geographic coordinates) in order to sort this problem out. I am working on translating the code you mentioned to Stata/Mata language.

      Best,
      j.

      Comment


      • #4
        I was in the same spot, and opted to use -Rsource- from SSC and this package

        http://hosho.ees.hokudai.ac.jp/~kubo...ml/convUL.html

        Defiantly a kludge, but perhaps faster than re-doing in Mata, as it should be 2-3 lines total.
        __________________________________________________ __
        Assistant Professor, Department of Biostatistics and Epidemiology
        School of Public Health and Health Sciences
        University of Massachusetts- Amherst

        Comment


        • #5
          Thanks, Andrew. The link you posted seems broken, though.

          Comment

          Working...
          X