X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/52f755cb27dd7dad2fe65a3deb5d4591c6675dec..b8cf4b59e5dab79dfd0fc75ef7d5afe90eebf7ae:/app/models/trace.rb diff --git a/app/models/trace.rb b/app/models/trace.rb index 1e8f25a83..818cc363b 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -202,7 +202,7 @@ class Trace < ApplicationRecord logger.info("GPX Import importing #{name} (#{id}) from #{user.email}") file.open do |file| - gpx = GPX::File.new(file.path) + gpx = GPX::File.new(file.path, :maximum_points => Settings.max_trace_size) f_lat = 0 f_lon = 0