Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created August 11, 2011 22:32
Show Gist options
  • Save springmeyer/1140977 to your computer and use it in GitHub Desktop.
Save springmeyer/1140977 to your computer and use it in GitHub Desktop.
// attachdb usage
> ds.featureset().next().attributes()
{ '"1995"': 0,
'"1996"': 0,
'"1997"': 0,
'"1998"': 0,
'"1999"': 0,
'"2000"': 0,
'"2001"': 0,
'"2002"': 0,
'"2003"': 0,
'"2004"': 0,
'"2005"': 0,
'"2006"': 0,
'"2007"': 0,
'"2008"': 0,
'"2009"': 0,
'"2010"': 0,
'"ISO3"': 'AFG',
'"OGC_FID"': 2,
'"abbrev"': 'Afg.',
'"adm0_a3"': 'AFG',
'"adm0_dif"': 0,
'"admin"': 'Afghanistan',
'"featurecla"': 'Adm-0 country',
'"fips_10_"': 0,
'"gdp_md_est"': 22270,
'"geou_dif"': 0,
'"iso_a2"': 'AF',
'"iso_a3"': 'AFG',
'"iso_n3"': 4,
'"labelrank"': 2,
'"level"': 2,
'"map_color"': 7,
'"name"': 'Afghanistan',
'"name_forma"': 'Islamic State of Afghanistan',
'"name_sort"': 'Afghanistan',
'"pop_est"': 28400000,
'"postal"': 'AF',
'"rowid"': undefined,
'"scalerank"': 1,
'"sov_a3"': 'AFG',
'"sovereignt"': 'Afghanistan',
'"terr_"': undefined,
'"type"': 'Sovereign country' }
// no attachdb usage
> ds.featureset().next().attributes()
{ OGC_FID: 1,
abbrev: 'Aruba',
adm0_a3: 'ABW',
adm0_dif: 1,
admin: 'Aruba',
featurecla: 'Adm-0 country',
fips_10_: 0,
gdp_md_est: 2258,
geou_dif: 0,
iso_a2: 'AW',
iso_a3: 'ABW',
iso_n3: 533,
labelrank: 6,
level: 2,
map_color: 9,
name: 'Aruba',
name_forma: undefined,
name_sort: 'Aruba',
pop_est: 103065,
postal: 'AW',
scalerank: 3,
sov_a3: 'NL1',
sovereignt: 'Netherlands',
terr_: 'Neth.',
type: 'Country' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment