<p>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.</p>
<p>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 <code>tp.update_tile</code>. I just don't get any tile number by running Tracepoint.import alone:</p>
<div class="highlight highlight-source-ruby"><pre> tp <span class="pl-k">=</span> <span class="pl-c1">Tracepoint</span>.<span class="pl-k">new</span>
tp.lat <span class="pl-k">=</span> point.latitude
tp.lon <span class="pl-k">=</span> point.longitude
tp.altitude <span class="pl-k">=</span> point.altitude
tp.timestamp <span class="pl-k">=</span> point.timestamp
tp.gpx_id <span class="pl-k">=</span> id
tp.trackid <span class="pl-k">=</span> point.segment
tp.update_tile
tps <span class="pl-k"><<</span> tp
<span class="pl-k">end</span></pre></div>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1852#issuecomment-427116280">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLdgIjAW_5sVmm4qLysXXc4kN3Vwdks5uhk6UgaJpZM4T3-LP">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLaLolR8hSFtxjk79BJBjqurjBjBXks5uhk6UgaJpZM4T3-LP.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"PERSON","message":"@mmd-osm in #1852: 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.\r\n\r\nCuriously, 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:\r\n\r\n```ruby\r\n tp = Tracepoint.new\r\n tp.lat = point.latitude\r\n tp.lon = point.longitude\r\n tp.altitude = point.altitude\r\n tp.timestamp = point.timestamp\r\n tp.gpx_id = id\r\n tp.trackid = point.segment\r\n tp.update_tile\r\n tps \u003c\u003c tp\r\n end\r\n```\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/1852#issuecomment-427116280"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/1852#issuecomment-427116280",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/1852#issuecomment-427116280",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [openstreetmap/openstreetmap-website] Integrate the high-performance GPX importer (#1852)",
"sections": [
{
"text": "",
"activityTitle": "**mmd**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@mmd-osm",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1852,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1852\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/openstreetmap-website/issues/1852#issuecomment-427116280"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 333439695\n}"
}
],
"themeColor": "26292E"
}
]</script>