@dra2020/district-analytics 8.1.0 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +8 -1
- package/dist/cli.js.map +1 -1
- package/dist/district-analytics.js +8 -1
- package/dist/district-analytics.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -104779,7 +104779,14 @@ function isUninhabited(geoID, s) {
|
|
|
104779
104779
|
const featureID = s.features.featureID(geoID);
|
|
104780
104780
|
const f = s.features.featureByIndex(featureID);
|
|
104781
104781
|
const totalPop = s.features.fieldForFeature(f, "CENSUS" /* CENSUS */, "Tot" /* TotalPop */);
|
|
104782
|
-
|
|
104782
|
+
let bUninhabited = (totalPop > 0) ? false : true;
|
|
104783
|
+
// HACK for Kentucky's atypical data, so the official map shows as complete
|
|
104784
|
+
const geoIDparts = parseGeoID(geoID);
|
|
104785
|
+
if (geoIDparts.state == '21') // KY
|
|
104786
|
+
{
|
|
104787
|
+
if ((f.properties['POPULATION'] !== undefined) && (f.properties['POPULATION'] == 0))
|
|
104788
|
+
bUninhabited = true;
|
|
104789
|
+
}
|
|
104783
104790
|
return bUninhabited;
|
|
104784
104791
|
}
|
|
104785
104792
|
exports.isUninhabited = isUninhabited;
|