Q:

Merging raster and vector not working

I have 1 vector layer (counties) and 1 raster layer (population density). I have tried merging these two, so that I can examine population density within a county, but I have had no luck. It just gives me columns with NULL. 
I did the standard thing, which is to calculate Zonal Statistics. My raster layer is an asc file, and I have tried converting it to a tif. Nothing has worked. 

I got my population data from the History Database of the Global Environment (HYDE).

Okay, it could be because my CRS projections aren't the same for the vector and raster layers. When I set both the same, however, the map completely screws out of whack, with the vector layer being off-map completely! What do I do?

A:

As Pat has mentioned, you cannot merge different geometry types together, just as you cannot merge polygons and lines together, or points with polygons. Your question needs to be edited to provide more information as to what you are hoping to do, or have as an outcome. If you have if you want to merge two datasets together to get more area, then convert the raster to a polygon, and then merge the two polygon datasets. If you want to merge attributes, then you could either convert the polygon to a raster and then merge the two raster datasets in raster calculator. Either way you can't merge different geometries together, and you need to explain your issue further.

