mapbox / make-surface

Vector surfaces creation routines
MIT License
89 stars 18 forks source link

Flatten attribute output #85

Closed dnomadb closed 9 years ago

dnomadb commented 9 years ago

Right now, makesurface fillfacets outputs attributes as a sub-object:

{
  qt: qt,
  attributes: {
    attributename1: value,
    attributename2: value,
    ....
  }
}

For database updating, it seems as if a flatter structure will be beneficial:

{
  qt: qt,
  attributename1: value,
  attributename2: value,
  ....
}

cc: @ian29

dnomadb commented 9 years ago

Doing this looks like it may create a cascade of expensive refactors, going to handle inline for now.