I have figured out that coodinates of my raster data are in 3-Dimension and hence converted them to 2D as I no longer needed my z coordinate.