ãå·ã¨æµåå°å³ã¿ã¤ã«ãã®ã¬ã·ã ãã®ï¼
前にブログに書いた軽ãæ°æã¡ã§å§ããã川と流域地図ããç¾å¨ã絶è³éçºä¸ãªã®ã§ãããã©ããªãã¨ããã£ã¦ããã®ãããã®ï¼ã¶æã»ã©ã§æ³¥ç¸ã§èº«ã«ã¤ããç¾æç¹ã§ã®ãããããã¡ãã£ã¨ã¾ã¨ãã¦ã¿ããã¨æãã¾ãã
ããããä½ãä½ã£ã¦ããã®ï¼
ãå°å³ã¿ã¤ã«ãã¨ãããããã¿ã¤ã«ãã¨å¼ã°ããããããªç¸®å°ºã§ä½æããå°ããªç»åãã¡ã¤ã«ã«åå²ããã大éã®å°å³ç»åãä½æãã¦ãã¾ãã
å
·ä½çã«ã¯ãããªã®ã
ãããããå°å³ãå°ããåå²ããç»åãã¡ã¤ã«ã決ã¾ã£ããã£ã¬ã¯ããªã»ãã¡ã¤ã«æ§æã«å¾ã£ã¦ä½æããã¨ãGoogleMapsã®ãããªã¹ã ã¼ãºã«æä½ãå¯è½ãªWebå°å³ã¨ãã¦å
¬éã§ãããããããã¯カシミール3Dã¿ãããªãã¼ã«ããåç
§ã§ãããã¨ãå©ç¨è
ãæ´»ç¨ããããå½¢ã§ãããä¸ã«å°å³ãå
¬éãããã¨ãã§ããããã§ãã
ã©ããã£ã¦ä½ãã®ï¼
ç¾å¨å
¬éãã¦ãããã¼ã¸ã§ã³ã®å·ã¨æµåå°å³ã¯200ä¸æ以ä¸ã®ç»åãã¡ã¤ã«ã§æ§æããã¦ãã¦ããã人ã®æã§ï¼æï¼æä½ãã¨ããã®ã¯ãã¾ãã«ãéç¾å®çãããããå°å³ç»åèªä½ã©ããã£ã¦ä½ãã®ãä½ãå§ããã¾ã§ã¯æ³åãã§ãã¾ããã§ãããã¨ããããç¾å¨ãå°çæ
å ±é¢ä¿ã®ãªã¼ãã³ã½ã¼ã¹ã½ããã¦ã§ã¢ï¼FOSS4Gã¨å¼ã°ãã¦ã¾ãï¼ãããªãå
å®ãã¦ãã¦ãã¾ãã¦ããããããã¾ã使ã£ã¦ã¿ãã¨æå¤ã¨ç°¡åã«å°å³ã¿ã¤ã«ãä½ãåºããã¨ãã§ãã¡ãã£ãããããã§ããã
ä½ã¯ã¨ãããã©ããªãã®ã使ã£ã¦ã©ããã風ã«ä½ã£ã¦ããã®ããã¡ãã£ã¨å³ã«ã¾ã¨ãã¦ã¿ã¾ããã
å°å³ã¿ã¤ã«ã®å¶ä½å·¥ç¨ã®ä¸ã§æ ¸ã¨ãªããã¼ã«ãå³ä¸ä¸æ®µã«ãããQGISãã¨ãTileMillãã§ãã
QGISã¯ãªã¼ãã³ã½ã¼ã¹ã»ãã«ããã©ãããã©ã¼ã ã®GISã½ããã¦ã§ã¢ã§ãå ·ä½çã«ã¯Shapeãã¡ã¤ã«ã¨ããå½¢å¼ã§æä¾ãããã国土交通省・国土数値情報ダウンロードサービスãã®æµåã¨æ²³å·ã®ãã¼ã¿ã«ã¤ãã¦ç·¨éãæ¼ç®ãåç §ããããã«ä½¿ç¨ãã¦ãã¾ãããã®QGISã§ããæ¥æ¬èªåããã¡ãã¨å¯¾å¿ããã¦ãã¦ãã¾ãã解説æ¸é¢ä¿ãçµæ§å å®ãã¦ããã®ã§ãããã¨ã¨ã£ã¤ããããç¶æ³ã«ãªã£ã¦ããã¨æãã¾ããå°å³ã¿ã¤ã«æãã«ãã¦ãä¸åº¦è§¦ãã¦ã¿ãã¨ãããªãã®ããã£ããã â¦ï¼ã£ã¦çµæ§ã³ã£ããããã¨æãã¾ããã
- ä½è : ä»æ¨æ´å¤§,岡å®å©æ²»
- åºç社/ã¡ã¼ã«ã¼: å¤ä»æ¸é¢
- çºå£²æ¥: 2015/09/04
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- ãã®ååãå«ãããã° (2件) ãè¦ã
CartoCSSã¨å¼ã°ããwebéçºã§ããªãã¿ã®ãã®CSSã¿ãããªè¨èªã§ãå·ã®è²ã¯éè²ã§ãæ°´ç³»ã®å¢çç·ã¯é»ã®å¤ªç·ãæµåé¢ç©ãå°ããå·ã¯zoomã¬ãã«ã10以ä¸ã®å ´åã ã表示â¦ãã¿ãããªå°å³ã®ã¹ã¿ã¤ã«ãè¨è¿°ãã¦ããã¨ãShapeãã¡ã¤ã«ãªã©ã®å°çãã¼ã¿ããç»åãçæãããã¨ãã§ãã¾ãããã ãQGISã§ã¯ãã¦ã¹ã§ã½ã¡ã½ã¡ã¯ãªãã¯ããã°ããããæå®ãã§ãã¡ãããã§ããã©ãTileMillã®å ´åããã¹ãã¨ãã£ã¿ãæä¾ãããã ãã§1è¡1è¡CartoCSSã®æ¸å¼ãè¨è¿°ããå¿ è¦ãããã¾ããã¾ããã§ããããã»ã©é£ããæãã§ã¯ãªãã¦
ã®è§£èª¬èªãã§ãµã³ãã«ã®å°å³ã®ã³ã¼ããããããããã£ã¦ã¿ãããã¦ãããã¡ã«çµæ§ç°¡åã«ç解ã§ããããããªãããªã¨æãã¾ãï¼ã§ãã¾ããï¼ã
ã¡ãªã¿ã«CartoCSSã®æ¡ä»¶æå®ã¯QGISã®ããã«æ¯ã¹ãã¨ããªãéåã§ãããããæ¸å¼ãå®ç¾ããããå ´åãããããQGISãªã©ã§æ¡ä»¶ã«åããã©ããã®ãã©ã°é
ç®ãä½æããããããªã©ã®ä¸æºåããã¦TileMillã§å¦çã§ããshapeãã¡ã¤ã«ãç¨æããå¿
è¦ãããã¾ããQGISã¨TileMillã®äºã¤ã®ãã¼ã«ãè¡ã£ããæ¥ãããã¦ããã¡ã«å°å³ãã§ãããã£ã¦ããæãã§ããã
ãã¦ãTileMillã§çæããããã¡ã¤ã«ã¯mbTilesã¨ããå½¢å¼ã®ãã¡ã¤ã«ã§ãä¸è¬ã®Webãµã¼ãã§å
¬éããã«ã¯ããããpngãjpegãã¡ã¤ã«ãåãåºãã¦ãããå¿
è¦ãããã¾ãããã®å¤æãè¡ãã®ãmb-utilã¨ããã¦ã¼ãã£ãªãã£ãPythonãåãç°å¢ãå¿
è¦ã§ãã
GitHub - mapbox/mbutil: Importer and Exporter of MBTiles
https://github.com/mapbox/mbutil
ãã®ã¦ã¼ãã£ãªãã£ã使ãã¨ãã¡ãã¨ã«ã¼ã«ã«å¾ã£ããã£ã¬ã¯ããªæ§æã®å¤§éã®ç»åãã¡ã¤ã«ãçæãããã®ã§ããã®ã¾ã¾Webãµã¼ãã§å
¬éããã°è¯ãã®ã§ããããªã«ã¶ããã¡ã¤ã«ã大éã«ãã£ã¦ãããã¸ããèæ
®ããWebãµã¼ãã®ãã¥ã¼ãã³ã°ããªãã¨ãããªããã§ããããã©ãã¾ã ããã¾ã§æãåã£ã¦ã¾ããã
ãã¦ãåºæ¬çã«ã¯ãããã®ãã¼ã«ã使ãããªãã°å人ã§ãå°å³ã¿ã¤ã«ãããã¨ç°¡åã«ä½æãããã¨ã§ããæããªã®ã§ãããä»åã®å·ã¨æµåå°å³ã®å ´åãå½åæ°å¤æ
å ±ã®æä¾ãããæµåã¡ãã·ã¥ããã¼ã¿ã®å質ã«åé¡ããã£ã¦ããããæãå
¥ããªãã¨æ¬²ãããã¼ã¿ãå¾ãããªãæãã§ããããã®ããã«ãã¼ã¿ãç´æ¥ããã°ã©ã ã§æä½ããå¿
è¦ãçããã®ã§ãããããã§ç»å ´ããã®ãgeoJSONã§ãã
GeoJSON フォーマット仕様
http://s.kitazaki.name/docs/geojson-spec-ja.html
geoJSONã¯shapeãã¡ã¤ã«ãªã©ã¨åãå°çæ
å ±ãåãæ±ãããã®ãã¡ã¤ã«ãã©ã¼ããããªã®ã§ãããshapeãã¡ã¤ã«ã¨å¤§ããéãã®ã¯ãã®åã®éãJSONãã©ã¼ãããã®ããã¹ãå½¢å¼ãªãã¡ã¤ã«ãªãã§ããã¤ã¾ããæè¿ã®å種ããã°ã©ã è¨èªãªã大ä½ãµãã¼ããã¦ãã§ãããJSONãã¡ã¤ã«ã®ã©ã¤ãã©ãªã使ç¨ãã¦ãã¼ã¿ã®å¦çãã§ãããã§ãããããã«ãQGISã¯geoJSONã«å¯¾å¿ãã¦ããã®ã§ãèªã¿è¾¼ã¾ãããéã«åºåããããããã¨ãã§ããããã§ãããã®ä½¿ãæ
£ããããã°ã©ã è¨èªä½¿ã£ã¦ãã¼ã¿ãç´æ¥ç·¨éã§ããã¨ããã®ã¯å¶ä½ç°å¢ã¨ãã¦é常ã«å¼·åã§ããã
ã¨ããããã§ãå°å³ã¿ã¤ã«å¶ä½ã®ãã£ããã¨ãã話ãæ¸ãã¦ã¿ã¾ãããå°å³ã¿ã¤ã«èªä½ã¯ã¾ã ã¾ã éçºä¸ã§ãã¦ãåã1ã¶æã»ã©åã«ã¼ãããå§ãããã®ãªã®ã§ãããããããªç¹ããã£ã¨ãããã ãããªã¼ã¨ã¯æãã¾ãããä¸å¿æåããæå¾ã¾ã§åºæ¥ããã¨ã®ãã¤ã«ã¹ãã¼ã³ã¿ãããªæãã§ã¾ãã¾ã¨ãã¦ã¿ã¾ããã次åã¯ãæµåã¡ãã·ã¥ãã«æãå
¥ããããããã®è©±ãæ¸ããã¨æãã¾ãã