简体   繁体   English

Potree获取点击点的WGS84坐标

[英]Potree get WGS84 coordinates of a clicked point


Sorry for the dumb question, but I'm new in the Potree world :-DI would like to get the WGS84 coordinates of a point clicked on a pointcloud though potree viewer. 抱歉,您的问题很愚蠢,但我是Potree世界的新手:-DI想通过potree查看器单击点云上的点的WGS84坐标。 Any idea? 任何想法?

Thank you 谢谢

use proj4 使用proj4

var firstProjection = '+proj=lcc +lat_1=44.10000000000001 +lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs';
var secondProjection = "+proj=longlat +datum=WGS84 +no_defs ";
var coord = proj4(firstProjection,secondProjection,[point.position.x,point.position.y]);

pute this code on the drop function existing in addMarker function on the potree.js 将此代码放在potree.js上addMarker函数中现有的drop函数上

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM