Exemple #1
0
def transform(src_crs, dst_crs, xs, ys, zs=None):
    """
    Transform vectors of x, y and optionally z from source
    coordinate reference system into target.

    Parameters
    ------------
    src_crs: dict
        Source coordinate reference system, in rasterio dict format.
        Example: {'init': 'EPSG:4326'}
    dst_crs: dict
        Target coordinate reference system.
    xs: array_like
        Contains x values.  Will be cast to double floating point values.
    ys:  array_like
        Contains y values.
    zs: array_like, optional
        Contains z values.  Assumed to be all 0 if absent.

    Returns
    ---------
    out: tuple of array_like, (xs, ys, [zs])
    Tuple of x, y, and optionally z vectors, transformed into the target
    coordinate reference system.
    """
    return _transform(src_crs, dst_crs, xs, ys, zs)
Exemple #2
0
def transform(src_crs, dst_crs, xs, ys, zs=None):
    """
    Transform vectors of x, y and optionally z from source
    coordinate reference system into target.

    Parameters
    ------------
    src_crs: dict
        Source coordinate reference system, in rasterio dict format.
        Example: {'init': 'EPSG:4326'}
    dst_crs: dict
        Target coordinate reference system.
    xs: array_like
        Contains x values.  Will be cast to double floating point values.
    ys:  array_like
        Contains y values.
    zs: array_like, optional
        Contains z values.  Assumed to be all 0 if absent.

    Returns
    ---------
    out: tuple of array_like, (xs, ys, [zs])
    Tuple of x, y, and optionally z vectors, transformed into the target
    coordinate reference system.
    """
    return _transform(src_crs, dst_crs, xs, ys, zs)
Exemple #3
0
def transform(src_crs, dst_crs, xs, ys, zs=None):
    """Return transformed vectors of x, y and optionally z.
    
    The sequences of points x, y, z in the coordinate system defined by
    src_crs are transformed in the coordinate system defined by dst_crs.
    z is optional, if it is not set it is assumed to be all zeros and only
    x and y are returned.
    """
    return _transform(src_crs, dst_crs, xs, ys, zs)
Exemple #4
0
def transform(src_crs, dst_crs, xs, ys):
    """Return transformed vectors of x and y."""
    return _transform(src_crs, dst_crs, xs, ys)
Exemple #5
0
def transform(src_crs, dst_crs, xs, ys):
    """Return transformed vectors of x and y."""
    return _transform(src_crs, dst_crs, xs, ys)