@dra2020/district-analytics 8.2.5 → 8.2.6
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
CHANGED
|
@@ -281998,10 +281998,11 @@ function extractDistrictProperties(s, bLog = false) {
|
|
|
281998
281998
|
}
|
|
281999
281999
|
exports.extractDistrictProperties = extractDistrictProperties;
|
|
282000
282000
|
function isAShape(poly) {
|
|
282001
|
-
|
|
282002
|
-
|
|
282003
|
-
|
|
282004
|
-
|
|
282001
|
+
if (poly == null)
|
|
282002
|
+
return false;
|
|
282003
|
+
if (Poly.polyNull(poly))
|
|
282004
|
+
return false;
|
|
282005
|
+
return poly.geometry && poly.geometry.coordinates && !U.isArrayEmpty(poly.geometry.coordinates);
|
|
282005
282006
|
}
|
|
282006
282007
|
// SCORE KIWYSI COMPACTNESS
|
|
282007
282008
|
function scoreKIWYSICompactness(s, bLog = false) {
|