[openstreetmap/openstreetmap-website] Integrate the high-performance GPX importer (#1852)
mmd
notifications at github.com
Thu Oct 4 18:08:21 UTC 2018
Yes, I'm using gpx_import.rb for testing, which sort of works ok. I did some some minor tweaks to "Trace.find(:all,...", which somehow failed all the time.
Curiously, tile was always NULL, that why I even considered adding it in the code. So instead of calling Quatile directly, I could also get the same done via `tp.update_tile`. I just don't get any tile number by running Tracepoint.import alone:
```ruby
tp = Tracepoint.new
tp.lat = point.latitude
tp.lon = point.longitude
tp.altitude = point.altitude
tp.timestamp = point.timestamp
tp.gpx_id = id
tp.trackid = point.segment
tp.update_tile
tps << tp
end
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1852#issuecomment-427116280
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20181004/b90a83ca/attachment.html>
More information about the rails-dev
mailing list