koopjs / koop-opendata

ArcGIS Open Data provider for Koop (experimental).
Apache License 2.0
4 stars 2 forks source link

shp download includes multiple shapefiles - sometimes #11

Closed courtneycl closed 9 years ago

courtneycl commented 9 years ago

STR

  1. download: http://koop.dc.esri.com/openData/umbrella/keyword/parcel/place/united+states.zip
  2. open, observe: screen shot 2015-06-22 at 5 30 22 pm

We see three copies of the same shapefile with three different names. Expected to just see one.

chelm commented 9 years ago

@dmfenton it looks like koop's core exporters are exporting everything inside the dir and not respecting the passed in key. Not sure why, but you could add a subdir to prevent files from ever being written to the same dir.

To do this add the "key" var to the dir here: https://github.com/koopjs/koop-opendata/blob/master/controller/index.js#L78

dmfenton commented 9 years ago

@chelm That would probably help, but koop should also be cleaning up these temp files too.

dmfenton commented 9 years ago

actually that didnt work