Projects a shapely geometry object from the source to the target projection.

def project_geometry(geometry, source, target):
    """Projects a shapely geometry object from the source to the target projection."""

    project = partial(
        pyproj.transform,
        source,
        target
    )

    return transform(project, geometry)