(geom, xoff=0.0, yoff=0.0, zoff=0.0)
return affine_transform(geom, matrix)
Returns a translated geometry shifted by offsets along each dimension.

    The general 3D affine transformation matrix for translation is:

        / 1  0  0 xoff \ 
        | 0  1  0 yoff |
        | 0  0  1 zoff |
        \ 0  0  0   1  /
Returns a translated geometry shifted by offsets along each dimension.
Returns a translated geometry shifted by offsets along each dimension .
def translate(geom, xoff=0.0, yoff=0.0, zoff=0.0):
    """Returns a translated geometry shifted by offsets along each dimension.

    The general 3D affine transformation matrix for translation is:

        / 1  0  0 xoff \ 
        | 0  1  0 yoff |
        | 0  0  1 zoff |
        \ 0  0  0   1  /
    """
    matrix = (1.0, 0.0, 0.0,
              0.0, 1.0, 0.0,
              0.0, 0.0, 1.0,
              xoff, yoff, zoff)
    return affine_transform(geom, matrix)
def translate ( geom , xoff = 0.0 , yoff = 0.0 , zoff = 0.0 ) : matrix = ( 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , xoff , yoff , zoff ) return affine_transform ( geom , matrix )