Public
Edited
Dec 9, 2023
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
all_parcels = filter.parcels
Insert cell
owner_occ_geojson = {
return {
type: "FeatureCollection",
features: owner_occ
}
}
Insert cell
Insert cell
is_cville_owned = function(d){
return d.properties.OwnerCityState.indexOf("CHARLOTTESVILLE") !== -1 ||
d.properties.OwnerCityState.indexOf("EARLYSVILLE") !== -1 ||
d.properties.OwnerCityState == "" // if owner opted out of listing their address in GIS, assume it's owner-occ
}
Insert cell
cville_owned = filter.parcels.features.filter(is_cville_owned)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
zones = {
var data = _.clone(draft_zoning_202302.features).map(d=>d.properties.DRAFT_ZONI);
return _.uniq(data)
}
Insert cell
count_by_zones = {
var data = _.clone(draft_zoning_202302.features).sort()
data = _.countBy(data, d=>d.properties.DRAFT_ZONI);
var rows = [];
_.forEach(data, (d, i)=> rows.push({"Zone": i, "Count": d}))
return rows
}
Insert cell
jparx3 = {
var data = filter.parcels.features.filter(d=>{
return true &&
(d.properties.DraftZoning == "RX-3" || d.properties.DraftZoning == "CM") &&
d.properties.Neighborhood == "Jefferson Park Avenue" &&
// ["R-1U","R-1UH","R-2U","R-3","R-3H","UMDH","UMD","UHD"].indexOf(d.properties.Zoning) !== -1 &&
// ["R-1U","R-1UH","R-2U"].indexOf(d.properties.Zoning) !== -1 &&
// (d.properties.DraftZoning == "R-B" || d.properties.DraftZoning == "R-C") &&
// (d.properties.DraftZoning !== "R-A") &&
// typeof d.properties.UseCode !== 'undefined' &&
// getUseCode(d, true, true).indexOf("Single Family") != -1 &&
// getUseCode(d, true, true) !== "Single Family Attached" &&
// getUseCode(d, true, true) !== "Condominium" &&
is_owner_occupied(d) &&
true
}).map(d=>d.properties.ParcelNumber)
return JSON.stringify(data);
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more