{"id":3119,"date":"2007-05-08T16:03:35","date_gmt":"2007-05-08T20:03:35","guid":{"rendered":"http:\/\/scruss.com\/blog\/2007\/05\/08\/proj-your-cryptic-geographic-friend\/"},"modified":"2008-03-26T11:39:57","modified_gmt":"2008-03-26T15:39:57","slug":"proj-your-cryptic-geographic-friend","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2007\/05\/08\/proj-your-cryptic-geographic-friend\/","title":{"rendered":"proj: your cryptic geographic friend"},"content":{"rendered":"<p>I do a lot of work with UTM survey locations, and quite often I want to have them stored in my GPS. I used to rely on a powerful but oh-so-clunky Windows application called <a href=\"http:\/\/crunch.tec.army.mil\/software\/corpscon\/corpscon.html\">Corpscon<\/a>, but I really didn&#8217;t want to be limited to Windows machines, and Corpscon really only works for North America.<\/p>\n<p>And then I discovered <a href=\"http:\/\/proj.maptools.org\/\">proj<\/a>. While it has a pretty hideous command-line syntax, the output matches Corpscon to the sixth decimal place. Say you had a waypoint stored (for Southern Ontario, UTM Zone 17, NAD83) like this:<\/p>\n<p><code>4843744 443025 Goderich<\/code><\/p>\n<p>that is, UTM northing,easting, followed by label.<\/p>\n<p>To convert this to geographic coordinates, you&#8217;d invoke invproj (which goes from UTM to geographic) like this:<\/p>\n<p><code>invproj -E -r -f \"%.6f\" +proj=utm +zone=17 +datum=NAD83<\/code><\/p>\n<p>and it would spit out:<\/p>\n<p><code>4843744 443025  -81.707611      43.744546 Goderich<\/code><\/p>\n<p>Columns 3 and 4 are the geographic coordinates &#8211; <a href=\"http:\/\/maps.google.ca\/maps?f=q&#038;hl=en&#038;q=43%C2%B0+44'+40.37%22+N,+81%C2%B0+42'+27.40%22+W&#038;ie=UTF8&#038;om=1&#038;ll=43.744545,-81.707608&#038;spn=0.005395,0.011255&#038;z=17&#038;iwloc=addr\">43\u00c2\u00b0 44&#8242; 40.37&#8243; N, 81\u00c2\u00b0 42&#8242; 27.40&#8243; W<\/a> in more familiar notation &#8211; which is in fact a location between Brock St and Newgate St in Goderich, Ontario.<\/p>\n<p>With a Unix box, proj and <a href=\"http:\/\/www.gpsbabel.org\/\">gpsbabel<\/a>, I&#8217;m set for all my coordinate conversions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I do a lot of work with UTM survey locations, and quite often I want to have them stored in my GPS. I used to rely on a powerful but oh-so-clunky Windows application called Corpscon, but I really didn&#8217;t want to be limited to Windows machines, and Corpscon really only works for North America. And [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[504,454,455,506,505,507],"class_list":["post-3119","post","type-post","status-publish","format-standard","hentry","category-computers-suck","tag-corpscon","tag-gps","tag-gpsbabel","tag-gpx","tag-proj","tag-utm"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-Oj","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/3119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=3119"}],"version-history":[{"count":0,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/3119\/revisions"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=3119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=3119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=3119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}