Expand description
Bounded CityGML 2.0 reader, validator, and writer.
Re-exports§
pub use native::CityGmlDocument;pub use validate::ValidationOptions;pub use validate::ValidationReport;pub use validate::validate;
Modules§
- native
- Lossless CityGML 2.0 model preserving qualified XML names, namespaces, and object relationships.
- tkgm
- Local preflight for explicitly selected TKGM architectural model workflows.
- validate
- Structural, reference, numeric, and geometric validation for CityGML documents.
Structs§
- Export
Issue - A source entity whose geometry is not present in the output.
- Export
Options - Coordinate, LoD, and resource-limit contract for CityGML export.
- Export
Report - Counts of visited source entities, including group nodes.
- Geometry
Issue - A geometry diagnostic that omits source identifiers and coordinate values.
- Import
Options - Options controlling which CityGML geometry is projected into the neutral
Document.
Enums§
- Unsupported
Geometry - Handling of geometry without a supported, exact GML representation.
Functions§
- from_
document - Builds one
gen:GenericCityObjectper top-level neutral entity, rejecting unsupported geometry. Coordinates are written unchanged; matching the declared CRS and units is the caller’s responsibility. - from_
document_ with_ report - Creates generic objects and reports geometry retained only as metadata.
Native building/unit semantics must be supplied through
CityGmlDocument. Invalid geometry and resource-limit errors always fail, under either policy. - geometry_
issues - Collects all polygon and solid-shell geometry issues after structural validation.
Shell edge matching welds vertices within
options.toleranceand does not test inter-solid volumetric intersections. - inspect
- Inspects the CityGML root element and
boundedByenvelope without parsing thematic objects. - read
- Reads CityGML into the format-neutral
Documentmodel; useread_nativeto preserve the full object graph. - read_
native - Parses CityGML into its native XML tree while validating IDs, references, and numeric data.
- read_
native_ json - Parses a serialized
CityGmlDocumentJSON string after checking the input byte limit and validates its structure. - sniff
- Checks the root element’s namespace and local name without relying on file extensions.
- to_
document - Projects CityGML geometry into a neutral
Document; full LoD ownership, shared references, and XML extensions remain insource. - write
- Writes a
CityGmlDocumentas UTF-8 XML while preserving unknown XML elements and extensions. - write_
document - Writes neutral
Documentgeometry to CityGML 2.0 with an explicit CRS and LoD. - write_
document_ with_ report - Writes a generic CAD projection with explicit handling of unsupported geometry. The report identifies entities by model index and child-index path, never by client values. Metadata-only entities are not rendered CityGML geometry and are not a delivery profile.