3dcitydb / importer-exporter

3D City Database client for high-performance import and export of 3D city model data
Apache License 2.0
126 stars 53 forks source link

Resolve the deprecated `transformBoundingBox` method in the UtilAdapter class #154

Closed yaozhihang closed 3 years ago

yaozhihang commented 3 years ago

This method picks the lowerLeft and upperRight corners of the input bbox as stub for building the output bbox. Obviously, the result is not the minimum bounding box (MBB) of the input bbox due to the distortion caused by CRS transformation (e.g. projected CRS <-> geographic CRS). In order to obtain MBB, the method transformExtent in the class org.citydb.query.filter.tiling.Tiling shall be used. We should consider moving this transformExtent method into the util adapter and replace the deprecated transformBoundingBox method.

clausnagel commented 3 years ago

solved with #157.