Georeferencing LAZ

Trying to georeference a .laz tile but it’s not coming in the right position.

Any extra info I can find about the process?

Thanks

Hi,

Can you please provide me with a picture of what the expected behavior is and what the behavior you are seeing is.

Thanks,
Ankit

the tile is just floating in the air…doesn’t really respond to input of the lat/long info or even the manual “click the globe to set tile position”

that UI is wild “3D tile Location Editor”…

also when I stream it into Unreal along with the World Terrain, it doesn’t seem to be even in that location…

I am able to click the correct position but the tile doesn’t move there

If the tileset isn’t moving when you change the latitude/longitude values that is a bug. If there was a problem with the UI while editing the location it is possible that it saved the incorrect location.

The tiled data can appear floating or offset from adjustment arrows in the view if the tileset’s data was not centered around the local origin when it was tiled. However it should still respond to the inputs.

If you can provide some more information that will help us investigate this issue:

  • Are you still able to reproduce this problem with the input freezing or does it go away after reloading the page?
  • What is the asset id you are having trouble with?
  • What is your operating system and browser you are using?
  • Are you able to open the developer console, and if so, can you provide any error messages that you see there?

hey @mdc9001 Mark…it’s possible that the tileset data is not centered around the local origin, but it’s SOO off…it’s kinda weird…I’ve now loaded the whole dataset, about 310 tiles…but still can’t get it to the correct position…

@swea The position of the tileset in the Adjust tileset location tool is determined by the origin of the tiled data. If you can provide us with some additional information it will help us investigate further:

  • Are you still having problems with the input freezing or is it just the issue with the data being so far away from the adjustment widget?
  • What is the asset id you are having trouble with?
  • What is your operating system and browser you are using?
  • Are you able to open the developer console, and if so, can you provide any error messages that you see there?
  • looks like it’s just far away
  • 2684402
  • Windows 11/Chrome

// Grant CesiumJS access to your ion assets
Cesium.Ion.defaultAccessToken = “eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIwNjFjOTA2ZC03NWZjLTQ3OWUtYjM2NC1iMTI5OWE1MjBiMTAiLCJpZCI6MzkxMzcsImlhdCI6MTYwNzI0NDE2MX0.8RWmXicFxfG2c6fSJ09-ghq-edDeKTdnaETbNCS7EK8”;

const viewer = new Cesium.Viewer(“cesiumContainer”, {
terrainProvider: await Cesium.CesiumTerrainProvider.fromIonAssetId(
1,
),
});
viewer.scene.globe.depthTestAgainstTerrain = true;

try {
const tileset = await Cesium.Cesium3DTileset.fromIonAssetId(2684402);
viewer.scene.primitives.add(tileset);
await viewer.zoomTo(tileset);

// Apply the default style if it exists
const extras = tileset.asset.extras;
if (
Cesium.defined(extras) &&
Cesium.defined(extras.ion) &&
Cesium.defined(extras.ion.defaultStyle)
) {
tileset.style = new Cesium.Cesium3DTileStyle(extras.ion.defaultStyle);
}
} catch (error) {
console.log(error);
}

@swea We use the tileset’s origin as the origin for the geo-referencing editor. The tileset’s origin and the data itself can be far away in the source data, which seems to be the case for this asset.

We do have an issue on our roadmap to allow users to toggle between the tileset’s origin or the bottom center of the tile data. This would avoid cases like you are seeing where the origin in the geo-referencing editor is far away from the actual data. I will add this thread to the issue to track this better

hey guys thanks for the help so far, but this is proving very challenging…
what would be the ideal way to get the Lidar data in the correct position to match the Cesium tiles?
at the moment I am having to manually tweak that and it’s just impossible to get the right position.
I’ve got a DEM (tif) derived from the Lidar and I also have the .laz files with color info. In an ideal world it wd be great to have the ability to import them and get them in the correct geo position without having to manually adjust.
Is that possible?
Thanks

Hi,

If the assets you are uploading have geolocation information embedded in them, Cesium ion should be able to pick them up and automatically place them based on those coordinates. You should see the assets get geolocated automatically if they have the necessary information.

Thanks,
Ankit