How to use the cjio.models.Geometry._transform_vertex function in cjio

To help you get started, we’ve selected a few cjio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cityjson / cjio / tests / test_geometry.py View on Github external
def test_transform_vertex(self, vtx_original, vtx_transformed):
        transform = {"scale":[0.001,0.001,0.001],"translate":[90409.32,435440.44,0.0]}
        res = models.Geometry._transform_vertex(vtx_original, transform)
        assert all([isclose(res[i], v) for i,v in enumerate(vtx_transformed)])
github cityjson / cjio / cjio / models.py View on Github external
            return list(map(lambda v_i: Geometry._transform_vertex(vertices[v_i], transform), ring))
        else: