{"id":319,"date":"2012-11-08T09:45:00","date_gmt":"2012-11-08T09:45:00","guid":{"rendered":"http:\/\/dbbd.sg\/blog\/uncategorized\/geocoding-from-excel-to-tilemill-part-ii\/"},"modified":"2021-06-12T02:37:21","modified_gmt":"2021-06-12T02:37:21","slug":"geocoding-from-excel-to-tilemill-part-ii","status":"publish","type":"post","link":"https:\/\/dbbd.sg\/blog\/2012\/11\/geocoding-from-excel-to-tilemill-part-ii\/","title":{"rendered":"Geocoding: From Excel to TileMill (Part II)"},"content":{"rendered":"<p>This continues from the previous post, where the iPhone GPS data has been batch exported to Excel BUT in a weird DMS format rather than the DD format that we need in order to import into TileMill. Unfortunately, there is no magic button or plugin for this, but in the end&#8230; it turns out&#8230; its not that hard after all. Doh.<\/p>\n<p><center><b>D + M\/60 + S\/3600 = DD<\/b><\/center>In Excel:<br \/>\n=SUM([@[D-Lat]]+[@[M-Lat]]\/60+[@[S-Lat]]\/3600)<br \/>\n=SUM([@[D-Lon]]+[@[M-Lon]]\/60+[@[S-Lon]]\/3600)<\/p>\n<p>Note that iPhone&#8217;s format may actually be D,M(in decimals) without an S value.<\/p>\n<p><center><img loading=\"lazy\" class=\"alignnone size-full wp-image-3226\" src=\"https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166334878_337043cbfc_c.jpg\" alt=\"Screen Shot 2012-11-08 at 10.36.40 AM.png\" width=\"800\" height=\"579\" srcset=\"https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166334878_337043cbfc_c.jpg 800w, https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166334878_337043cbfc_c-300x217.jpg 300w, https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166334878_337043cbfc_c-768x556.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/center>Degree:Minutes:Seconds GPS values converted to Decimal Degrees!<br \/>\n(See Lat and Lon column. TileMill will understand any of the following column headers: latitude, longitude, lat, long,lon, x, y.)<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-3229\" src=\"https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166281161_4b671c2232_c.jpg\" alt=\"Screen Shot 2012-11-08 at 10.20.00 AM.png\" width=\"800\" height=\"489\" srcset=\"https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166281161_4b671c2232_c.jpg 800w, https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166281161_4b671c2232_c-300x183.jpg 300w, https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166281161_4b671c2232_c-768x469.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Data successfully imported into TileMill Layer!<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-3230\" src=\"https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166314731_7c8a1ebe5e_c.jpg\" alt=\"Screen Shot 2012-11-08 at 10.44.06 AM.png\" width=\"800\" height=\"781\" srcset=\"https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166314731_7c8a1ebe5e_c.jpg 800w, https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166314731_7c8a1ebe5e_c-300x293.jpg 300w, https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166314731_7c8a1ebe5e_c-768x750.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Plotted successfully! But what is this? IT IS ALL EMPTY!?????<br \/>\n<img loading=\"lazy\" class=\"alignnone size-full wp-image-3231\" src=\"https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166328856_28e34768eb_c.jpg\" alt=\"Screen Shot 2012-11-08 at 10.32.13 AM.png\" width=\"800\" height=\"441\" srcset=\"https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166328856_28e34768eb_c.jpg 800w, https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166328856_28e34768eb_c-300x165.jpg 300w, https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166328856_28e34768eb_c-768x423.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Oh so I forgot to add in any shape layers. So next we need an ESRI Shapefile for city of Paris available here <a href=\"http:\/\/metro.teczno.com\/#paris\">here<\/a> and <a href=\"http:\/\/downloads.cloudmade.com\/europe\/western_europe\/france\/ile-de-france#downloads_breadcrumbs\">here<\/a> from <a href=\"http:\/\/metro.teczno.com\/\">metro.teczno.com<\/a> and <a href=\"http:\/\/downloads.cloudmade.com\/\">downloads.cloudmade.com<\/a> respectively, based on OpenStreetMap data. [See also: <a href=\"http:\/\/mapbox.com\/tilemill\/docs\/manual\/adding-layers\/\">Adding Layers in TileMill<\/a>]<\/p>\n<p><center><img loading=\"lazy\" class=\"alignnone size-full wp-image-3232\" src=\"https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166529774_ac51c3f12d_c.jpg\" alt=\"Screen Shot 2012-11-08 at 12.49.08 PM.png\" width=\"800\" height=\"784\" srcset=\"https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166529774_ac51c3f12d_c.jpg 800w, https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166529774_ac51c3f12d_c-300x294.jpg 300w, https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166529774_ac51c3f12d_c-768x753.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/center>Successful loading of shape layers for buildings and main roads.<br \/>\nSome random slapbang colours here just for testing purposes.<\/p>\n<p><b>SUCCESS!!!<\/b><\/p>\n<p>Now I will finetune it from here&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This continues from the previous post, where the iPhone GPS data has been batch exported to Excel BUT in a weird DMS format rather than the DD format that we need in order to import into TileMill. Unfortunately, there is no magic button or plugin for this, but in the end&#8230; it turns out&#8230; its [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3226,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1057],"tags":[775,771,777,780,779,770,781,782,778,773,776,586,769,774,585,544,587,772],"jetpack_featured_media_url":"https:\/\/dbbd.sg\/blog\/wp-content\/uploads\/2021\/06\/8166334878_337043cbfc_c.jpg","_links":{"self":[{"href":"https:\/\/dbbd.sg\/blog\/wp-json\/wp\/v2\/posts\/319"}],"collection":[{"href":"https:\/\/dbbd.sg\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbbd.sg\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbbd.sg\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dbbd.sg\/blog\/wp-json\/wp\/v2\/comments?post=319"}],"version-history":[{"count":2,"href":"https:\/\/dbbd.sg\/blog\/wp-json\/wp\/v2\/posts\/319\/revisions"}],"predecessor-version":[{"id":3236,"href":"https:\/\/dbbd.sg\/blog\/wp-json\/wp\/v2\/posts\/319\/revisions\/3236"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbbd.sg\/blog\/wp-json\/wp\/v2\/media\/3226"}],"wp:attachment":[{"href":"https:\/\/dbbd.sg\/blog\/wp-json\/wp\/v2\/media?parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbbd.sg\/blog\/wp-json\/wp\/v2\/categories?post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbbd.sg\/blog\/wp-json\/wp\/v2\/tags?post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}