class Values {

    public static PointValue pointValue( CoordinateReferenceSystem crs, double... coordinate )
    {
        if ( crs.getDimension() != coordinate.length )
        {
            throw new IllegalArgumentException(
                    format( "Cannot create point, CRS %s expects %d dimensions, but got coordinates %s",
                            crs, crs.getDimension(), Arrays.toString( coordinate ) ) );
        }
        return new PointValue( crs, coordinate );
    }

    private  Values();

}