jywarren / mapknitter

Use Public Lab's MapKnitter to turn your aerial images into projected maps for print and web
http://mapknitter.org
GNU General Public License v3.0
45 stars 0 forks source link

map export resolution select may be causing error #139

Closed jywarren closed 9 years ago

jywarren commented 11 years ago

I see this in the log:

ActionView::TemplateError (undefined method `/' for nil:NilClass) on line #10 of app/views
/map/_export_options.html.erb:
7: end
8: hist = hist[0..100]
9: grouphist = @map.grouped_images_histogram((hist.length/15).to_i+1)
10: resolution = @map.average_cm_per_pixel.to_s[0..4]
11: %>
12: 
13: <p><small>Slide to select an export resolution:</small></p>
jywarren commented 9 years ago

haven't seen this recently.