Modified domainDensity to correctly calculate weighting for protected areas