<p></p>
<p>Identical min/max_lax/mon in gpx.rb, line 70:</p>
<pre><code> proj = OSM::Mercator.new(min_lat, min_lon, max_lat, max_lon, width, height)
</code></pre>
<p>followed by lines 96+97</p>
<pre><code> px = proj.x(p.longitude)
py = proj.y(p.latitude)
</code></pre>
<p>triggers a division by zero in osm.rb lines 382-388:</p>
<pre><code> def y(lat)
@height - ((ysheet(lat) - @ty) / (@by - @ty) * @height)
end
def x(lon)
((xsheet(lon) - @tx) / (@bx - @tx) * @width)
end
</code></pre>
<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/3007#issuecomment-746814559">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLPAFXHZSEBVCXIYW3SVD6JBANCNFSM4U5YZWWA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLIIF4E4PFTF4AXHV2TSVD6JBA5CNFSM4U5YZWWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFSBXYXY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/3007#issuecomment-746814559",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3007#issuecomment-746814559",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>