交éã»ã³ãµã¹ã®è§£æã¨å¯è¦å
æ¦è¦
ä»åã¯äº¤éã»ã³ãµã¹ã®è§£æãã¦å¸åºçºæéã®äº¤éæµåã解æãã¦æ¥æ¬ã®å¸åºçºæãã°ã«ã¼ãã³ã°ããGISã®ä»çµã¿ã使ã£ã¦å¯è¦åããã¨ããã¾ã§ãã£ãã®ã§ããã®è©±ããã¾ãã
ã¢ããã¼ã·ã§ã³
ãããããªãã§ãããªãã¨ãå§ãããã¨ããã¨ãç¹ã«ç¦å³¶çãªãã§ãããçå¢ã®è¨å®ãéããã?ãã¿ãããªç´ æ´ãªçåããã£ãããã§ãã ããã¯æ´å²çäºå®ã¨ãã¦ãå®éã«å»è©ç½®çã®æ¿æ²»çãªã´ã¿ã´ã¿ã®ä¸ã§æ±ºã¾ã£ãçå¢ãå¤æ´ãããã«ä»ã«è³ã£ã¦ããã®ã§å½ç¶ãããªãã§ããã ã¨ãªãã¨ãããããããã¸ãåççã«çå¢ã決ãããã©ããªãã?ãã¨ããçåãããã¦ããããã§ãã
å¤ãã®å°å æ°ãç´å¾ããçå¢ãèããã¨ã ã大ããªè²·ãç©ãããã¨ãã«è¡ãè¡ããé ãã«è¡ãã¨ãã«ããã¨ãã«çµç±ããè¡ãåãé½éåºçã«ãªãã¨ãã¾ãã¾ããã¾ãããã ããã ã¨ãã仮説ãã¾ãç«ã¦ã¾ãã
ãã®ä¸ã§ããã®å°åã®ã°ã«ã¼ããä½ãã®ã§ããã°ãæã交éæµåã®å¤ãå°åãç¹ãã§ãæçµçã«è¾¿ãã¤ã大ããªè¡ãåãå°åãã°ã«ã¼ãã³ã°ããã°è¯ãã§ãããã¨å¤§éæã«èããããã§ãã
ãã¦ãå¸åºçºæå¢çã®ããããã®äº¤ééã£ã¦ã©ã調ã¹ãããããªãã¨ãªãããã§ãããããã§äº¤éã»ã³ãµã¹ãåºã¦ãã¾ãã
é路交éã»ã³ãµã¹ã¨ã¯
5å¹´ã«1度ã主è¦éè·¯ã®äº¤ééã1å°åä½ã§è¨æ¸¬ãã調æ»ã§ãã ãã®èª¿æ»çµæã¯Webã§å ¬éããã¦ãããç°¡åã«ãã¦ã³ãã¼ããã¦å人ã¬ãã«ã§ãæ§ã ãªè§£æã«ããããã¨ãå¯è½ã§ãã
http://www.mlit.go.jp/road/census/h27/
ãã¼ã¿ã¨ãã¦ã¯1æ¥ã®äº¤ééã¯ãã¡ãããå¹³æ¥ã¨ä¼æ¥ã®å·®ãæéåä½ã®äº¤ééãåå¾ã§ãã¾ãã åºéã¯ä¸»è¦äº¤å·®ç¹ãå¸åºçºæå¢çã§ã§åºåãããå ¨ã¦ã®åºéã®äº¤éå°æ°ãåå¾ã§ãã¾ãã ããã¾ããªè»ç¨®æ¯ã®äº¤ééã測å®ã§ãã¾ãã å¹³æ¥ã»ä¼æ¥ã®ãã¼ã¿ã¨ä½µãã¦ãéè·¯ã®ä¸»è¦ç¨éãªã©ãé¡æ¨ã§ãããã§ãã
ãã¼ã¿ã¯é常ã«å¤§ããªCSVã§ã1ã¬ã³ã¼ãã1ã¤ã®èª¿æ»åºéã«ãªã£ã¦ãã¦ããã®åºéã®å ¨ã¦ã®ãã¼ã¿ãè©°ãè¾¼ã¾ãã¦ãã¾ãã
以ä¸ã¯åèã®PDFãã¼ã¿ã§ã(CSVã¯ãã¾ãã«ãè¦è¾ãã®ã§)
GitHub
ãããã解説ããå¦çãã³ã¼ãã«è½ã¨ããã®ããã¡ãã«ãªãã¾ãã
https://github.com/ponkotuy/traffic
交éã»ã³ãµã¹ã®ãã¼ã¿ãèªåã§ãã¦ã³ãã¼ãããã¹ã¯ãªããããã£ãããsbt run
ã§GeoJSONã®propertiesã«è§£æçµæãã¶ã¡ããã¨ããã¾ã§ãã£ã¦ãããTrafficAnalyzerã¨ããmainã¡ã½ããããã£ãããã¾ãã
ãªãScalaã§ããå¹³åã¬ãã«ã®ã¨ã³ã¸ãã¢ã¯ãã£ã¨Scalaèªããã¨æãã®ã§åé¡ãªãã§ããâ
åºéã®çªå
交éã»ã³ãµã¹ã®1ã¬ã³ã¼ãã¯ãéè·¯ãå¸åºçºæå¢çã§åºåããã¦ããããã«ãåãå¸åºçºæå ã§å®çµãã¦ããã å¸åºçºæã®ID(æ¨æºå°åã³ã¼ã)ãæ¯ããã¦ãã¾ãã ããéè·¯ã®å¸åºçºæå¢çã®äº¤ééã調ã¹ãã«ã¯ãå¸åºçºæå¢çã§å§ã¾ã£ã¦ãã/çµãã£ã¦ããéè·¯ãæ½åºãã 対ã«ãªãåºéãæ¢ã(çªåãã)å¿ è¦ãããã¾ãã ãããå®ã«åä»ãªã®ã§ãããå¸åºçºæå¢çã¨é½éåºçå¢çã§å ¨ãç°ãªã£ãå¦çãå¿ è¦ã«ãªãã¾ãã
å¸åºçºæå¢ç
æ¥ç¶å éè·¯ã®IDãæ¯ããã¦ããªãã§ããããââå¸ã¨ââçºã®å¢çããªã©ã¨ããååãä»ãã¦ããã ããã¨éè·¯å/IDãåããã®ã¨çªåã§ãã¾ãã ã¾ãCSVãã¡ã¤ã«ã¯é½éåºçæ¯ã«ãªã£ã¦ãã¦ãå¸åºçºæå¢çã¯åãé½éåºçå ã«ãããã¨ãä¿è¨¼ããã¦ããã®ã§ããã¡ã¤ã«ãã¾ããå¿ è¦ã¯ããã¾ããã
é½éåºçå¢ç
ãã¡ãã¯CSVãã¡ã¤ã«ã確å®ã«ã¾ãããã¨ã«ãªãã®ã§åä»ã§ãããæ¥ç¶å ã®IDãæ¯ããã¦ããã®ã§ããã®IDã®éè·¯ãåç §ããã°çªåã§ãã¾ããã©ããã¦å¸åºçºæå¢çã«ãã®ä»æ§ãå ¥ããªãã£ãã
ã¨ããå¢çãã§ãã¯ãããã½ã¼ã¹ã³ã¼ãã以ä¸ã®ããã«ãªã£ã¦ã¾ãã
å¯è¦å
ãããå ¨å½è¦æ¨¡ã§è§£æã«ãããã°ç°¡åã«å¸åºçºæã®äº¤éæµéã®tableãä½ããå°åã®ã°ã«ã¼ãã³ã°ãã§ãã¾ãã ãããæè§ãªã®ã§åãããããå¯è¦åãããã§ãã ããããå°å³ã£ã½ããã®ãå¯è¦åãããªãGISã®åºçªã§ãã
æåGISãææã®ãé«ãã®ãããªãã¨æã£ã¦ãããã§ããã QGISã¨ãããªã¼ãã³ã½ã¼ã¹ã®ãã¼ã«ãåºã¦ãã¦ãä¸éãå¿ è¦ãªæ©è½ãæã£ã¦ããã®ã§ãªã¹ã¹ã¡ã§ãã
https://www.qgis.org/ja/site/index.html
QGISã¯ä¸éãã®å½¢å¼ãæ±ããã¨ãã§ãã¾ãããããã°ã©ãã¼çã«é¦´æã¿ã®æ·±ãJSONããã¼ã¹ã«ããGeoJSONã使ã£ã¦å¯è¦åãã¾ãã ãªããGeoJSONã¯MBç´ã®å¤§ããªãã¡ã¤ã«ã«ãªããã¨ãå¤ãã®ã§ãå¦çããå ´åã¯é«éãªå¦çç³»ã»é«éãªã©ã¤ãã©ãªã使ãã¨å¹¸ãã«ãªãã¾ãã
ãããããã¨ã¯GeoJSONãå¼ãã§featuresã®ä¸ã§åè¦ç´ ã®propertiesã«æ¬²ããè¦ç´ ã追å ãããã ããªã®ã§ããã¼ã¹ã»è¿½è¨ã»saveã®3æ©è½ããã£ãclassãjacksonã§ä½ã£ãããã¾ããã
å¸åºçºæå°å³
ãã¦ãå¯è¦åããã«ã¯å¸åºçºæå¢çã®æ¸ãè¾¼ã¾ããGeoJSONãå¿ è¦ãªããã§ãããå½å交éçã®ãµã¤ãã«è½ã¡ã¦ã¾ãã
http://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-N03.html
ãã®å°å³ãGISã«èªã¿è¾¼ã¾ããã¨ãGeoJSONã®propertiesã«æ¸ããå¤ããã©ãã«ãã¬ã³ããªã³ã°ãããã å¤ã«å¿ãã¦è²åãããããæ¿æ·¡ãã¤ãã¦å¡ã£ããã§ãã¾ãã
ãã®ãã¼ã¿ã«å ç¨äº¤éã»ã³ãµã¹ã解æãã¦ä½ã£ãå°åã°ã«ã¼ããç»é²ããã°å¯è¦åã§ãã¾ãã
çµæ
ä»åã¯çå¢ã¨ã®éããè¦ããã£ãã®ã§æ¬å·ã®ã¿ã®å³ã«ãªãã¾ãã以ä¸ã®ããã«ãªãã¾ããã
ã¨ãã£ã¦ãå°ããã¦åãããªãã¨ãããã®ã§ããããæ°ã«ãªã£ãã¨ãããããã¯ã¢ãããã¦ã¿ã¾ãã
é森çã¯å¼åã¨å «æ¸ãæ¯è¼ç大ããé½å¸ã§ãããå «æ¸å¸ã®å½±é¿ã岩æçã¾ã§é£ãè¾¼ãã§ãã®ãè¦ã¦ã¨ãã¾ãã ãã éä¸çºãã¡ãã£ã¨ããããã§ããâ¦ã»ãã¨ãããªâ¦?
å®®åãæ°ä»æ²¼å¸ã¾ã§ä¼¸ã³ã¦ããã®ã¯å人çã«å¤§åã¡ããããã¨ããæãã§ããããæ¡ã®å®ä¸é¢ã®æ¹ã«å±ãã¦ã¾ããã
ç¦å³¶çã¯æ°æ½çã«ãã£ã¨é£ãè¾¼ãã®ãæ³åãã¦ããã§ããç¹ã«ããã¯ãªããªãã£ãã®ã¨ã ä¼æ´¥çå°ã§ã¾ã¨ã¾ããã¨ããã£ããä¸é¨ãé¡å±±ã«é£ãè¾¼ãã ã®ãå®å ¨ã«èª¤ç®ã§ãã©ããã¦ãã¨ããã§ãã æµéããåé¢ããããããå¸ãå½±é¿å大ããã¦è¨åçã«é£ãè¾¼ãã§ãã®ã¯æ³å®å ã§ãã æµéããè¨åã«ç·¨å ¥ãããã¨å²ã¨èªç¶ãªçåãã«ãªããã§ãããã?
é¢æ±ã¯ããã¨æ³åéãé½å¿ã«ä¼¸ã³ãé«ééè·¯ã«æ²¿ã£ããããªåºåãã«ãªã£ã¦ã¾ãã ç¹ã«ä¸å¤®èªåè»éãå¼·ãã ãã¨ãã¯ãå¤æ²³å¸ãè¨åçãªã®ã¯ç¡çãããã¿ããã§æ æ¨çã®å°å±±å¸ã¨ã°ã«ã¼ãä½ã£ã¦ã¾ãã
åãããå¸ã徳島å´ã«å±ãã¦ããã®ãæå¤éãã¦ã³ã£ããã§ãã é³´é大æ©ã®äº¤ééããæ´²æ¬å¸ã¨ã®å¢çã«ããç¥æ¸æ·¡è·¯é³´éèªåè»éãå«ããéè·¯ã®äº¤ééããå¤ãã¨ãããã¨ã«ä»ãªããªãã®ã§ã
å³¶æ ¹ã¨é³¥åã®çå¢ã¯ãªãã人å£éä¸ãã¦ãå°åãçã£äºã¤ã«ãã¦ãéåæããã£ãã®ã§ããããæ³å®éã1ã°ã«ã¼ãã«ãªã£ã¦ãã¾ããã åè°é¢é¸æãååºã«ãªã£ãã1ã¤ã«ãªãã°ããæ°ããã¾ãã ä¸å½å±±å°ãè¶ããããªãã®ãæ³å®éãã§ãã
å人çã«ä¸çªæ³å®éãã«ãªã£ã¦ãã®ãå±±å£çã§ãåºå³¶å¯ãã®å²©å½ãä¸å¤®ã®å±±å£å¸ãå°åã«ç·¨å ¥ãããä¸é¢ã¨ããå®ç§ãªåé¡ã§ãã
é³¥æ ã¨ã絶対ç¦å²¡ã§ããã¨æã£ã人ã¯å¤ãã¨æãã¾ããå®éãããªã£ã¦ã¾ããã
ã¾ã¨ã
å°åçãªã¾ã¨ã¾ããé路交éã®å©ç¨ç¶æ³ããæ¨æ¸¬ãã¦ã¿ããããªãã¨ããã£ã¦ã¿ã¾ããã 8å²æ¹è¯ãçµæãåºã¦ãããã®ã®ãåä¸ã°ã«ã¼ãã«å±ããã«ã¼ã«ã«é¢ãã¦ã¯è¥å¹²è¦ç´ããå¿ è¦ããããã¾ããã ã¨ããããå¸åºçºéã®äº¤ééã¯åºã¦ããã®ã§ãããå°ãã«ã¼ã«ãè¦ç´ãã°ããå°ãããã£ã½ãã°ã«ã¼ãåããã§ããããããã¾ããã
ãã¨é½éåºçã®åé¡ã®ãããªè¡æ¿åºç»ã®è¨å®ã¯ã人å£è¦æ¨¡ãã§ããã ãåä¸ã«ãªãå¿ è¦ãããã®ã§ã ãã®ãããªè¦³ç¹ã§ã¾ã¨ã¾ããåºãããããªè¦ç´ ã®å°å ¥ãå¿ è¦ã«ãªãããã§ãã
ä½è«ã§ãããå±±ä¸ã®æè½ã大ããªé½å¸ã¨æ¥ç¶ãããããã¾ãã¨ã¾ã¨ã¾ã£ã¦ãã¾ãç¾è±¡ãå¤ã観測ããã ãå®ã¯äº¤éå°é£ã§é½å¸é¨ã«åºãããªãç°èã®äººã£ã¦ãã£ã¡ãå¤ãã®ã§ã¯?ãã¿ãããªå¥ã®åé¡ããããããªæ°ããã¦ããæ¨ä»ã§ãã ãªã«ãã®èæ ®æ¼ããªããããã§ããã