<p></p>
<p dir="auto">It's in scope but we are still discussing to what extent.</p>
<p dir="auto">Tool support for country defaults basically means an easy mechanism to determine for each OSM object which country it is in. With the recently merged <code>get_bbox()</code> function for relations, it's already possible to implement something like that in the flex lua scripts. You'd have to do the lookup from bbox to country through external libraries and then use the country to compute your country defaults.</p>
<p dir="auto">What we are discussing is if osm2pgsql should offer some native function to determine the 'region' directly to make all this easier. The lookup from region to attribute defaults will likely remain in the responsibility of the script writer because it is fairly easy and efficient to do in Lua.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/1663#issuecomment-1107786797">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353WXDJJZTGRCK4JR32LVGT6LDANCNFSM5REBM3AQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353WPTV4W75RDYIK6QTDVGT6LDA5CNFSM5REBM3A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIIDXYLI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/osm2pgsql/issues/1663/1107786797</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/1663#issuecomment-1107786797",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1663#issuecomment-1107786797",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>