Currently, I'm trying to operate the 360images shapefile function on the potree, but there was an error, so I checked and found this phrase.
Uncaught (in promise) TypeError: coordinates must be finite numbers proj4.js:1
at g (proj4.js:1:4846)
at St (proj4.js:1:22751)
at w (proj4.js:1:5221)
at A (proj4.js:1:5823)
at Object.forward (proj4.js:1:6540)
at Function.load (potree.js:25208:31)
In this case, how should we solve this? And the current code for my 360 shape file function is like this:
async function run360(){
let pointcloudProjection = "+proj=utm +zone=52 +ellps=WGS84 +datum=WGS84 +units=m +no_defs";
proj4.defs("WGS84", "+proj=utm +zone=52 +datum=WGS84 +units=m +no_defs");
proj4.defs("pointcloud", pointcloudProjection);
let transform = proj4("WGS84", "pointcloud");
let params = {
transform:transform
};
Potree.Images360Loader.load("./photo/Record002/Record002/LB5/", viewer, params).then( images => {
viewer.scene.add360Images(images);
});
viewer.mapView.showSources(false);
}