ããã¼ã³ç»åã®ãã©ãã°ã©ã¡ããªã§ä½æããç¹ç¾¤ãã¼ã¿ããã©ã¦ã¶ã§å¿«é©ã«è¡¨ç¤ºã§ããCOPCå½¢å¼ã®ç¹ç¾¤ãã¼ã¿ã®ä½æã¨è¡¨ç¤ºããã£ã¦ã¿ã¾ããã
lasãlazãã¡ã¤ã«ã®ç¨æ
å°ç座æ¨ç³»ï¼ç·¯åº¦ãçµåº¦ï¼ä»¥å¤ã§æ¸ãåºããlasãã¡ã¤ã«ãããã¯lazãã¡ã¤ã«ã®ç¹ç¾¤ãã¼ã¿ãç¨æãã¾ããé«åº¦ã¯æ¥åä½é«ã§ããï¼æ¨é«ã«ãªã£ã¦ããå ´åã¯è£è¶³ã§èª¬æãã¦ããæ¹æ³ã§å¤æãã¾ããï¼
COPCã¸ã®å¤æ
å¤ææ¹æ³ã¯2éãããã¾ãã
ãã®ï¼
QGIS3.26以éãç¨æãã¾ããlasãlazãã¡ã¤ã«ãç»é¢ã«ãã©ãã°ããã¨xxx.copc.lazã®ãããªãã¡ã¤ã«ãåºæ¥ä¸ããã¾ããä»ã®ã¨ãããã¡ã¤ã«åã«æ¥æ¬èªã¯ä½¿ãã¾ããã
ãã®ï¼
PDALã使ç¨ãã¾ããWindowsãªãQGIS3.26ãã¤ã³ã¹ãã¼ã«ããéã«å
¥ãOSGeo4Wã§å©ç¨ã§ãã¾ãã
OSGeo4Wã§ä»¥ä¸ã®ã³ãã³ããå®è¡ãããã¨lazãcopcã«å¤æã§ãã¾ãã
pdal translate -i xxx.laz -o xxx.copc.laz --writers.copc.forward=all
COPCãã¡ã¤ã«ã®ã¢ãããã¼ã
ã©ããã®WEBãµã¼ãã¼ã«COPCã«å¤æãããã¡ã¤ã«ãã¢ãããã¼ããã¾ããWEBãµã¼ãã¼ã§ã¯CORSãåãä»ããããã«.htaccessã以ä¸ã®ããã«è¨å®ãã¦ããã¾ãã
Header set Access-Control-Allow-Origin "https://viewer.copc.io"
COPCãã¼ã¿ã®è¡¨ç¤º
https://viewer.copc.io
ã«ã¢ã¯ã»ã¹ãã¦ãã¼ã¿ãã¿ã³ããAdd point cloudãæ¼ãã¦copcãã¡ã¤ã«ã®URLãè²¼ãä»ãã¾ãã
ãããã¯ä»¥ä¸ã®ããã«ç´æ¥URLãæå®ãã¦ã¢ã¯ã»ã¹ãã¾ãã
https://viewer.copc.io/?copc=https://www.example.com/xxx.copc.laz
- Ctrlãæ¼ããªãããã©ãã°ã§å転ã§ãã¾ãã
- è²ã¯ããã©ã«ãã§Elevationã«ãªã£ã¦ããã®ã§ããã«ããRGBã«å¤æ´ããã¨å®éã®è²ã§è¡¨ç¤ºã§ãã¾ãã
- ç¹ã®ãµã¤ãºãå¤ãããã表示æ°ï¼Point budgetï¼ãå¤ãããããã¨è¦ãç®ã®è©³ç´°ããå¤ããã¾ãã
COPC Viewerã«ã¤ãã¦
以ä¸ã«ããã¨ãªã¼ãã³ã½ã¼ã¹ã§ã¯ãªãããã§ããè¦ãç®ã¯ãªãã¨ãªãCesiumã£ã½ãã®ã§ããã®COPC対å¿çãªã®ããªï¼ã¨æã£ã¦ã¿ããã
https://hobu.co/copc-viewer.html
è£è¶³ lazãæ¨é«ã«ãªã£ã¦ããå ´å
æå ã«ããç¹ç¾¤ãã¼ã¿ãå¹³é¢ç´è§åº§æ¨ç³»10ã§é«ãã¯æ¨é«å¤ã¨ãªã£ã¦ããå ´åã®å¤ææ¹æ³ã§ããCOPC Viewerã®å°å½¢ãã¼ã¿ã¯æ¥åä½é«ã¨ãªã£ã¦ããããé«ããåãããããã«ã¯copcã®ãã¼ã¿ãæ¥åä½é«ã«å¤æãã¦ããå¿ è¦ãããã¾ããï¼ç¹ç¾¤ãã¼ã¿ã®é«ãã¯ä¸è¬çã«ã¯æ¥åä½é«ãªãã§ãããï¼ç¥ãã¾ããï¼
PDALã®ãã¤ãã©ã¤ã³ç¨ã®ãã¡ã¤ã«ã以ä¸ã®ããã«ä½æãã¾ãã
- xxx.lazã¯èªã¿è¾¼ããã¡ã¤ã«
- æåã®in_srsã¯å¹³é¢ç´è§åº§æ¨ç³»10(epsg:6678)ã®projæå®ã«geoidgridã追å ãããã®ãgeoidgridã§æå®ãã¦ããgtxãã¡ã¤ã«ã¯こちらã§èª¬æãã¦ãããã®ã使ç¨ã
- æåã®out_srsã¯EPSG:6667ï¼ç·¯åº¦ãçµåº¦ãæ¥åä½é«ï¼ãããã§ä¸æ¦ãå¹³é¢ç´è§åº§æ¨ç³»10ã®æ¨é«ã緯度çµåº¦ã®æ¥åä½é«ã«å¤æããã
- 次ã®out_srsã¯EPSG:6678ï¼å¹³é¢ç´è§åº§æ¨ç³»10ï¼ãããã§æ¥åä½é«ã®å¹³é¢ç´è§åº§æ¨ç³»10ã«ãªãããã ãEPSG:6678ã¯2Dç¨ãªã®ã§3Dç¨ã«ã¯å¥ã®ãã®ãããæ°ããããã©åããã¾ãããï¼EPSG:6678+224ã¿ãããªæãï¼ï¼ï¼
- æå¾ã«writers.copcã§copcã«å¤æãã¾ãã
pipeline.json
[
{
"type" : "readers.las",
"filename" : "xxx.laz"
},
{
"type":"filters.reprojection",
"in_srs":"+proj=tmerc +lat_0=40 +lon_0=140.833333333333 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +geoidgrids=D:/PDAL/jp_gsi_gsigeo2011.gtx",
"out_srs":"EPSG:6667"
},
{
"type":"filters.reprojection",
"in_srs":"EPSG:6667",
"out_srs":"EPSG:6678"
},
{
"type" : "writers.copc",
"filename" : "xxx.copc.laz"
}
]
pdal pipeline pipeline.json ã§å¤æãå®è¡ãã¾ãã