SlideShare una empresa de Scribd logo
1 de 49
Descargar para leer sin conexión
GeoHex
               Part 1   GeoHex
               Part




                          @sa2da #geohex
                           http://geohex.net/

2010   9   4
Part 1   GeoHex




2010   9   4
GeoHex



2010   9   4
Hex



2010   9   4
CC BY-SA Original uploader was Merdal at tr.wikipedia




                                                                       Plate XIX of "Studies among the Snow Crystals ... " by Wilson Bentley,
                                                                       "The Snowflake Man." From Annual Summary of the "Monthly Weather
                                                                       Review" for 1902.

2010   9   4
1          3
                   (Regular Tessellation)




                              via. wikipedia




2010   9   4
GeoHex



2010   9   4
2010   9   4
2010   9   4
※GoogleMaps
2010   9   4
GeoHex


                        VS


               GeoHex        GeoHex

2010   9   4
01




                   →       UI




               ↑
                       ↑
2010   9   4
02




                  →




               1 : 1.41   1:1
2010   9   4
03




               →




2010   9   4
04




                         →GoogleMaps




               Level:0                 Level:24
2010   9   4
05




                 →
                 →URL        Twitter /




               20 byte
                         3 - 11 byte
2010   9   4
06




                          →




               function getDistance(_x1,_y1, _x2,_y2)
               {
                  _x2 = _x2 * Math.PI / 180.0;
                  _y2 = _y2 * Math.PI / 180.0;
                  _x1 = _x1 * Math.PI / 180.0;
                  _y1 = _y1 * Math.PI / 180.0;

                   var dx=_x2-_x1;
                   var dy=_y2-_y1;
                   var A = 6378137; //                  (6378137m)




                                                                                                  A.x - B.x
                   var x = A * (dx) * Math.cos( _y1 );
                   var y = A * (dy);
                   var old_exp = exp;
                   dy=Math.log(Math.tan(Math.PI/4+_y2/2))-Math.log(Math.tan(Math.PI/4+_y1/2));
                   var rad=((dy>=0) ? 1:-1)*Math.acos(dx/Math.sqrt(dx*dx+dy*dy))*180.0/Math.PI;
                   var tmpdist = Math.round(Math.sqrt(x*x + y*y));
                   totaldist = totaldist + tmpdist;
                   distcnt();
               }



2010   9   4
07




                             →




                35.661960,139.697900
                                          132KpxU
                35.660093,139.701741        2
                         .
                         .                  3
                         .
                         .                  2
                         .                   .
                         .                   .




               20 × (n) byte           7 + (n) byte
2010   9   4
08


                               ex) for

                           →



                                         sa2da

                   sa2da




               pinpoint
                                  vague
2010   9   4
GeoHex




2010   9   4
01




                          →




               kokogiko       sa2da




2010   9   4
02




               →




2010   9   4
03




               →60
               →AR




2010   9   4
04




               →




2010   9   4
05




               →




2010   9   4
06


                                  ×GeoHex
                         →GPS          GeoHex




                       11/40




               START                            GOAL
                               1.4km            5.2km
2010   9   4
GeoHex




2010   9   4
OK
               Creative Commons License




2010   9   4
Perl
                                           kokogiko
                                           Ruby / GitHub
                                           hal_sk
                                           AS3
                                           calcul_omikan

               http://github.com/geohex/               Android
                                                       GeoHexV1
2010   9   4
PostGIS
                         ...etc
2010   9   4
Hex




                     GeoHex   GIS




2010   9   4
Part




2010   9   4
URL: http://geohex.net
2010   9   4
[X,Y]
                   4592/-1633




                 [X,Y]
               4591/-1633         [X,Y]
                                4592/-1634




2010   9   4
[X,Y]
                   4592/-1633




                 [X,Y]
               4591/-1633         [X,Y]
                                4592/-1634




2010   9   4
[X,Y]
                   4592/-1633




                 [X,Y]
               4591/-1633         [X,Y]
                                4592/-1634




2010   9   4
[X,Y]
                   4592/-1633




                 [X,Y]
               4591/-1633         [X,Y]
                                4592/-1634




                  X                          Y
2010   9   4
[X,Y]
                      4592/-1634



               [X,Y] 2296/-817




2010   9   4
17m             67m


               x:168px
               y:148px

                         135m


                270m            1.1km




2010   9   4
299909,-107087
                                     4          19 - 15
                               /
               18744.312,-6692.9375
               h_x                 h_y
               18744    ,-6692
                   h_a        h_b
                   0.312,    -0.9375
                     if(h_b>-h_a){
                         if((h_b<2*h_a)&&(h_b>0.5*h_a)){
                             x = h_x + 1;
                             h = h_y + 1;
                         }
                     }else if(h_b<-h_a+1){
                         if((h_b>(2*h_a)-1)&&(h_b<(0.5*h_a)+0.5)){
                             x = h_x;
                             y = h_y;
                         }
                     }else{
                         x = h_x + Math.round(h_a);
                         Y = h_y + Math.round(h_b);
                     }



2010   9   4
Y                                     )
                       (+)                        (+
                          ←             X
                                    →Y→
                             (-   )←
                                            (-)
                   X


               (0,0)
2010   9   4
:
                               +85

                               - 85




               : +180   -180
2010   9   4
WGS84    2                                                   7   WGS84
                                        3   Google Mercator




                                            1
                                                                                            8
                                4




               4   Google Mercator
                                                              6   Google Mercator



                                    5   Hex

2010   9   4
/

               [LEVEL] 16                                [ZONE] quhN0Cn
               [X,Y] 37489/-13386


                                             uhN0Cn                                 Y:-13386
       X:37489
                                                                         13386*2+1
                   37489*2
                         3600*20+60*49+38                3600*7+60*26+13
                                        +1

                   abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ



2010   9   4
http://geohex.net/{Hex                 }/




                     ↑   http://geohex.net/quhN0Cn/

2010   9   4
1/3
                                    HTML
           GeoHex

           <script src="http://geohex.net/hex_v2.js" type="text/
           javascript" content="text/html; charset=Shift-JIS"></script>
           PROJ4    JS

           <script src="http://geohex.net/lib/proj4js.js" content="text/
           html; charset=shift-jis"></script>
           GoogleMapsAPI V3   API

           <script type="text/javascript" src="http://maps.google.com/
           maps/api/js?sensor=false"></script>

2010   9   4
2/3
           PROJ4js
           PROJ4
           initProj4js();




           ※




2010   9   4
3/3

                    →Hex
           getZoneByLocation(lattude, longitude, level);

           Hex       →Hex
           getZoneByCode(code);

           Hex              →Hex
           drawHex(object ,linecolor,fillcolor,infowindow[1:on,0:off]);


           Hex
           -code:
           -lat:
           -lon:
           -x:                     X
           -y:                     Y



2010   9   4
GeoHex

               GeoHex                       ...etc


                         @sa2da #geohex
                         sa2da@geohex.net

2010   9   4

Más contenido relacionado

La actualidad más candente

Pmbok 02 the environment in which projects operate
Pmbok 02 the environment in which projects operatePmbok 02 the environment in which projects operate
Pmbok 02 the environment in which projects operateWisam Shamroukh
 
SAP FI AP: End User Guide for Beginners
SAP FI AP: End User Guide for BeginnersSAP FI AP: End User Guide for Beginners
SAP FI AP: End User Guide for Beginnerssapdocs. info
 
Побудова зображень, що дає тонка лінза
Побудова зображень, що дає тонка лінзаПобудова зображень, що дає тонка лінза
Побудова зображень, що дає тонка лінзаYury Fedorchenko
 
Movement types-in-sap-mm
Movement types-in-sap-mmMovement types-in-sap-mm
Movement types-in-sap-mmvinitlodha
 
Ps user manual
Ps user manualPs user manual
Ps user manualSoumya De
 
Release strategy-enhancement-in-purchase-order
Release strategy-enhancement-in-purchase-orderRelease strategy-enhancement-in-purchase-order
Release strategy-enhancement-in-purchase-orderGiuseppe Caselli
 
Budget upload process in SAP PS
Budget upload process in SAP PSBudget upload process in SAP PS
Budget upload process in SAP PSgovil79
 
Ps training mannual ( configuration )
Ps training mannual ( configuration )Ps training mannual ( configuration )
Ps training mannual ( configuration )Soumya De
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exitsKranthi Kumar
 
27631401 sap-implementation
27631401 sap-implementation27631401 sap-implementation
27631401 sap-implementationamolbdeore
 
PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介
PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介
PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介T. Suwa
 
Kp97 Copy Plan To Plan
Kp97 Copy Plan To PlanKp97 Copy Plan To Plan
Kp97 Copy Plan To Planwhocanbe1
 
SAP PS - system statuses maintenance
SAP PS - system statuses maintenanceSAP PS - system statuses maintenance
SAP PS - system statuses maintenanceAskar Kozhepyanov
 
Linuxにて複数のコマンドを並列実行(同時実行数の制限付き)
Linuxにて複数のコマンドを並列実行(同時実行数の制限付き)Linuxにて複数のコマンドを並列実行(同時実行数の制限付き)
Linuxにて複数のコマンドを並列実行(同時実行数の制限付き)Hiro H.
 

La actualidad más candente (19)

SAP MM Essential Master Data
SAP MM Essential Master DataSAP MM Essential Master Data
SAP MM Essential Master Data
 
Pmbok 02 the environment in which projects operate
Pmbok 02 the environment in which projects operatePmbok 02 the environment in which projects operate
Pmbok 02 the environment in which projects operate
 
SAP FI AP: End User Guide for Beginners
SAP FI AP: End User Guide for BeginnersSAP FI AP: End User Guide for Beginners
SAP FI AP: End User Guide for Beginners
 
Побудова зображень, що дає тонка лінза
Побудова зображень, що дає тонка лінзаПобудова зображень, що дає тонка лінза
Побудова зображень, що дає тонка лінза
 
Movement types-in-sap-mm
Movement types-in-sap-mmMovement types-in-sap-mm
Movement types-in-sap-mm
 
Ps user manual
Ps user manualPs user manual
Ps user manual
 
Release strategy-enhancement-in-purchase-order
Release strategy-enhancement-in-purchase-orderRelease strategy-enhancement-in-purchase-order
Release strategy-enhancement-in-purchase-order
 
Budget upload process in SAP PS
Budget upload process in SAP PSBudget upload process in SAP PS
Budget upload process in SAP PS
 
Ps training mannual ( configuration )
Ps training mannual ( configuration )Ps training mannual ( configuration )
Ps training mannual ( configuration )
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exits
 
27631401 sap-implementation
27631401 sap-implementation27631401 sap-implementation
27631401 sap-implementation
 
PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介
PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介
PPL 2022 招待講演: 静的型つき函数型組版処理システムSATySFiの紹介
 
Kp97 Copy Plan To Plan
Kp97 Copy Plan To PlanKp97 Copy Plan To Plan
Kp97 Copy Plan To Plan
 
SAP PS - system statuses maintenance
SAP PS - system statuses maintenanceSAP PS - system statuses maintenance
SAP PS - system statuses maintenance
 
3 m1 p
3 m1 p3 m1 p
3 m1 p
 
Урок 23. Події. Обробники подій
Урок 23. Події. Обробники подійУрок 23. Події. Обробники подій
Урок 23. Події. Обробники подій
 
SAP Rebate agreement processing
SAP Rebate agreement processingSAP Rebate agreement processing
SAP Rebate agreement processing
 
Linuxにて複数のコマンドを並列実行(同時実行数の制限付き)
Linuxにて複数のコマンドを並列実行(同時実行数の制限付き)Linuxにて複数のコマンドを並列実行(同時実行数の制限付き)
Linuxにて複数のコマンドを並列実行(同時実行数の制限付き)
 
S4Finance
S4FinanceS4Finance
S4Finance
 

Más de Tadayasu Sasada

ココが変わったよ! iOS6.1MAP
ココが変わったよ! iOS6.1MAPココが変わったよ! iOS6.1MAP
ココが変わったよ! iOS6.1MAPTadayasu Sasada
 
ここがヘンだよ! iOS6MAP
ここがヘンだよ! iOS6MAPここがヘンだよ! iOS6MAP
ここがヘンだよ! iOS6MAPTadayasu Sasada
 
HTML5勉強会#23_GeoHex
HTML5勉強会#23_GeoHexHTML5勉強会#23_GeoHex
HTML5勉強会#23_GeoHexTadayasu Sasada
 
GeoHex LT at FOSS4G 2010 Tokyo
GeoHex LT at FOSS4G 2010 Tokyo GeoHex LT at FOSS4G 2010 Tokyo
GeoHex LT at FOSS4G 2010 Tokyo Tadayasu Sasada
 
第2回GeoHex勉強会資料#1
第2回GeoHex勉強会資料#1第2回GeoHex勉強会資料#1
第2回GeoHex勉強会資料#1Tadayasu Sasada
 

Más de Tadayasu Sasada (8)

ココが変わったよ! iOS6.1MAP
ココが変わったよ! iOS6.1MAPココが変わったよ! iOS6.1MAP
ココが変わったよ! iOS6.1MAP
 
ここがヘンだよ! iOS6MAP
ここがヘンだよ! iOS6MAPここがヘンだよ! iOS6MAP
ここがヘンだよ! iOS6MAP
 
HTML5勉強会#23_GeoHex
HTML5勉強会#23_GeoHexHTML5勉強会#23_GeoHex
HTML5勉強会#23_GeoHex
 
GeoHex LT at FOSS4G 2010 Tokyo
GeoHex LT at FOSS4G 2010 Tokyo GeoHex LT at FOSS4G 2010 Tokyo
GeoHex LT at FOSS4G 2010 Tokyo
 
第2回GeoHex勉強会資料#1
第2回GeoHex勉強会資料#1第2回GeoHex勉強会資料#1
第2回GeoHex勉強会資料#1
 
About GeoHex
About GeoHexAbout GeoHex
About GeoHex
 
Geohex v2 at GMS_nagoya
Geohex v2 at GMS_nagoyaGeohex v2 at GMS_nagoya
Geohex v2 at GMS_nagoya
 
Geohex at Off4g2009
Geohex at Off4g2009Geohex at Off4g2009
Geohex at Off4g2009
 

Último

What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 

Último (20)

What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 

Introduction to GeoHex and its applications

  • 1. GeoHex Part 1 GeoHex Part @sa2da #geohex http://geohex.net/ 2010 9 4
  • 2. Part 1 GeoHex 2010 9 4
  • 4. Hex 2010 9 4
  • 5. CC BY-SA Original uploader was Merdal at tr.wikipedia Plate XIX of "Studies among the Snow Crystals ... " by Wilson Bentley, "The Snowflake Man." From Annual Summary of the "Monthly Weather Review" for 1902. 2010 9 4
  • 6. 1 3 (Regular Tessellation) via. wikipedia 2010 9 4
  • 8. 2010 9 4
  • 9. 2010 9 4
  • 11. GeoHex VS GeoHex GeoHex 2010 9 4
  • 12. 01 → UI ↑ ↑ 2010 9 4
  • 13. 02 → 1 : 1.41 1:1 2010 9 4
  • 14. 03 → 2010 9 4
  • 15. 04 →GoogleMaps Level:0 Level:24 2010 9 4
  • 16. 05 → →URL Twitter / 20 byte 3 - 11 byte 2010 9 4
  • 17. 06 → function getDistance(_x1,_y1, _x2,_y2) { _x2 = _x2 * Math.PI / 180.0; _y2 = _y2 * Math.PI / 180.0; _x1 = _x1 * Math.PI / 180.0; _y1 = _y1 * Math.PI / 180.0; var dx=_x2-_x1; var dy=_y2-_y1; var A = 6378137; // (6378137m) A.x - B.x var x = A * (dx) * Math.cos( _y1 ); var y = A * (dy); var old_exp = exp; dy=Math.log(Math.tan(Math.PI/4+_y2/2))-Math.log(Math.tan(Math.PI/4+_y1/2)); var rad=((dy>=0) ? 1:-1)*Math.acos(dx/Math.sqrt(dx*dx+dy*dy))*180.0/Math.PI; var tmpdist = Math.round(Math.sqrt(x*x + y*y)); totaldist = totaldist + tmpdist; distcnt(); } 2010 9 4
  • 18. 07 → 35.661960,139.697900 132KpxU 35.660093,139.701741 2 . . 3 . . 2 . . . . 20 × (n) byte 7 + (n) byte 2010 9 4
  • 19. 08 ex) for → sa2da sa2da pinpoint vague 2010 9 4
  • 20. GeoHex 2010 9 4
  • 21. 01 → kokogiko sa2da 2010 9 4
  • 22. 02 → 2010 9 4
  • 23. 03 →60 →AR 2010 9 4
  • 24. 04 → 2010 9 4
  • 25. 05 → 2010 9 4
  • 26. 06 ×GeoHex →GPS GeoHex 11/40 START GOAL 1.4km 5.2km 2010 9 4
  • 27. GeoHex 2010 9 4
  • 28. OK Creative Commons License 2010 9 4
  • 29. Perl kokogiko Ruby / GitHub hal_sk AS3 calcul_omikan http://github.com/geohex/ Android GeoHexV1 2010 9 4
  • 30. PostGIS ...etc 2010 9 4
  • 31. Hex GeoHex GIS 2010 9 4
  • 32. Part 2010 9 4
  • 34. [X,Y] 4592/-1633 [X,Y] 4591/-1633 [X,Y] 4592/-1634 2010 9 4
  • 35. [X,Y] 4592/-1633 [X,Y] 4591/-1633 [X,Y] 4592/-1634 2010 9 4
  • 36. [X,Y] 4592/-1633 [X,Y] 4591/-1633 [X,Y] 4592/-1634 2010 9 4
  • 37. [X,Y] 4592/-1633 [X,Y] 4591/-1633 [X,Y] 4592/-1634 X Y 2010 9 4
  • 38. [X,Y] 4592/-1634 [X,Y] 2296/-817 2010 9 4
  • 39. 17m 67m x:168px y:148px 135m 270m 1.1km 2010 9 4
  • 40. 299909,-107087 4 19 - 15 / 18744.312,-6692.9375 h_x h_y 18744 ,-6692 h_a h_b 0.312, -0.9375 if(h_b>-h_a){ if((h_b<2*h_a)&&(h_b>0.5*h_a)){ x = h_x + 1; h = h_y + 1; } }else if(h_b<-h_a+1){ if((h_b>(2*h_a)-1)&&(h_b<(0.5*h_a)+0.5)){ x = h_x; y = h_y; } }else{ x = h_x + Math.round(h_a); Y = h_y + Math.round(h_b); } 2010 9 4
  • 41. Y ) (+) (+ ← X →Y→ (- )← (-) X (0,0) 2010 9 4
  • 42. : +85 - 85 : +180 -180 2010 9 4
  • 43. WGS84 2 7 WGS84 3 Google Mercator 1 8 4 4 Google Mercator 6 Google Mercator 5 Hex 2010 9 4
  • 44. / [LEVEL] 16 [ZONE] quhN0Cn [X,Y] 37489/-13386 uhN0Cn Y:-13386 X:37489 13386*2+1 37489*2 3600*20+60*49+38 3600*7+60*26+13 +1 abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 2010 9 4
  • 45. http://geohex.net/{Hex }/ ↑ http://geohex.net/quhN0Cn/ 2010 9 4
  • 46. 1/3 HTML GeoHex <script src="http://geohex.net/hex_v2.js" type="text/ javascript" content="text/html; charset=Shift-JIS"></script> PROJ4 JS <script src="http://geohex.net/lib/proj4js.js" content="text/ html; charset=shift-jis"></script> GoogleMapsAPI V3 API <script type="text/javascript" src="http://maps.google.com/ maps/api/js?sensor=false"></script> 2010 9 4
  • 47. 2/3 PROJ4js PROJ4 initProj4js(); ※ 2010 9 4
  • 48. 3/3 →Hex getZoneByLocation(lattude, longitude, level); Hex →Hex getZoneByCode(code); Hex →Hex drawHex(object ,linecolor,fillcolor,infowindow[1:on,0:off]); Hex -code: -lat: -lon: -x: X -y: Y 2010 9 4
  • 49. GeoHex GeoHex ...etc @sa2da #geohex sa2da@geohex.net 2010 9 4