def METHOD_NAME(A):
    """Return a compress matrix from a raster map"""
    with RasterRow(A, mode="r") as A_ar:
        A_sparse = np.array(A_ar)
    A_sparse[A_sparse == -2147483648] = 0
    A_sparse = csr_matrix(A_sparse)
    return A_sparse