hackoregon / emergency-response

Simulations, Models, and Visualizations of Portland Fire and Rescue data
11 stars 10 forks source link

fblocks.resp_zone not joining to incident.fireblock #67

Closed rcallihan closed 7 years ago

rcallihan commented 7 years ago

The fireblock geometry table does not join to the to fireblock field in the incident table. There at least two (possibly more) reasons:

We can either have logic to deal with this on the front-end or fix the values in the db. First, work we will need to figure out the source of the non-joins.

rcallihan commented 7 years ago

There's a related issue here of many fields in the incident table having trailing spaces. Possibly warrants a separate issue @sky-t @russellgould ?

futurechris commented 7 years ago

Also just in general, a question here which we should maybe open as a separate ticket: should we be cleaning all this stuff in our database, or should we be helping Mark do so and then we all benefit from the cleaned data?

@matthino has been finding some strange data re:FMA entries (instead of integers with values ~0 through ~30, getting 'GRESHAM' or '210' or something). Do we clean it? Just drop the bad data? etc.

sky-t commented 7 years ago

@russellgould cleaned the incident table (extra spaces from the varchar fields) so hopefully the join is working now. Has anyone else observed any other fields in any tables with extra spaces?

russellgould commented 7 years ago

I did! And actually @rcallihan said the join worked afterwards so I'll close this issue since it's resolved. If there are any other problems that pop up involving extraneous spaces feel free to open a separate issue and assign me and I'll get on it!