Skip to content

Commit

Permalink
1822
Browse files Browse the repository at this point in the history
  • Loading branch information
TBleess authored Dec 11, 2023
1 parent 6172448 commit c878a33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions routes/geojson.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ function array_unshift(array) {
var db = req.query.db || 'acs1620';
//set default for schema if it is missing
var schema = req.query.schema || function(){
if(db==='acs1721' || db==='acs1620' || db==='acs1519' || db==='acs1418' || db==='acs1317' || db==='acs1216' || db==='acs1115' || db==='acs1014' || db==='acs0913' || db==='acs0812' || db==='acs0711' || db==='acs0610' || db==='c2010' || db==='c2020'){return 'data';}
if(db==='acs1822' || db==='acs1721' || db==='acs1620' || db==='acs1519' || db==='acs1418' || db==='acs1317' || db==='acs1216' || db==='acs1115' || db==='acs1014' || db==='acs0913' || db==='acs0812' || db==='acs0711' || db==='acs0610' || db==='c2010' || db==='c2020'){return 'data';}
if(db==='c2000' || db==='c1990' || db==='c1980'){return 'sf1';}
return ''; //no valid database - will deal with later
}();
Expand All @@ -398,6 +398,7 @@ var schema = req.query.schema || function(){
//carto or tiger or nhgis
var geo=""; //for now, geo will be set as a default

if(db==='acs1822'){geo='carto';}
if(db==='acs1721'){geo='carto';}
if(db==='acs1620'){geo='carto';}
if(db==='acs1519'){geo='carto';}
Expand Down Expand Up @@ -430,7 +431,7 @@ var geodesc=""; //for now, geodesc will be set based upon sumlev

//if database is acs, check to see if moe option is flagged
var moe='no';
if(db=='acs0610' || db=='acs0711' || db=='acs0812' || db=='acs0913' || db=='acs1014' || db=='acs1115' || db=='acs1216' || db=='acs1317' || db=='acs1418' || db=='acs1519' || db=='acs1620' || db=='acs1721'){
if(db=='acs0610' || db=='acs0711' || db=='acs0812' || db=='acs0913' || db=='acs1014' || db=='acs1115' || db=='acs1216' || db=='acs1317' || db=='acs1418' || db=='acs1519' || db=='acs1620' || db=='acs1721' || db=='acs1822'){
if (req.query.moe){
moe=req.query.moe;
}
Expand Down

0 comments on commit c878a33

Please sign in to comment.