metadata – Typed Metadata¶
- class 3dgs_io.metadata.TrainingData(source_path, data_type, revision, scene_index, lidar_channel, selected_frames, cameras, camera_channels, start_timestamp_us, end_timestamp_us, task=None, exp_name=None)¶
Bases:
objectTraining data provenance.
- class 3dgs_io.metadata.Export(background_only, spz_compression, max_sh_degree=None, object_keys=None)¶
Bases:
objectExport configuration.
- class 3dgs_io.metadata.Placement(lat, lon, height)¶
Bases:
objectGeospatial placement in geodetic coordinates.
- class 3dgs_io.metadata.GlbMetadata(dataset_type, generator, training_data, checkpoint, export, model, placement)¶
Bases:
objectTyped metadata for GLB files stored in
asset.extras.Use
to_dict()to produce a JSON-serializable dictionary andfrom_dict()to reconstruct from one.- to_dict()¶
Convert to a JSON-serializable dictionary.
Nonevalues in optional fields are stripped from the output.
- classmethod from_dict(data)¶
Reconstruct a
GlbMetadatafrom a plain dictionary.Unknown keys inside each section are silently ignored so that files written by a newer schema version can still be read.
- Return type:
- 3dgs_io.metadata.parse_metadata(raw)¶
Parse raw
asset.extrasmetadata.Returns a
GlbMetadatawhen the dictionary matches the schema. Falls back to returning the raw dictionary unchanged for legacy files, orNonewhen no metadata was present.- Return type:
GlbMetadata|dict[str,Any] |None