Cosmology with photometric redshift