<p>It's possible, we have the information but it would make the processing more expensive. Currently we only retrieve geometries for ways that have not been filtered. If filtering needs the geometries then we need to retrieve it for all ways. So my favourite solution would be a callback function for Lua that can retrieve the geometry when needed. (e.g. in the particular case only for ways that are rendered in a country-specific style.).</p>

<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/osm2pgsql/issues/901#issuecomment-475596187">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AD2-7i24C8yxVxYVJlj-0cU2KamOTdfaks5vZMc8gaJpZM4aEGYl">mute the thread</a>.<img src="https://github.com/notifications/beacon/AD2-7rmQOhmZI24GrBY5AgZ29wNVL-EMks5vZMc8gaJpZM4aEGYl.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/osm2pgsql","title":"openstreetmap/osm2pgsql","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/osm2pgsql"}},"updates":{"snippets":[{"icon":"PERSON","message":"@lonvia in #901: It's possible, we have the information but it would make the processing more expensive. Currently we only retrieve geometries for ways that have not been filtered. If filtering needs the geometries then we need to retrieve it for all ways. So my favourite solution would be a callback function for Lua that can retrieve the geometry when needed. (e.g. in the particular case only for ways that are rendered in a country-specific style.)."}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/osm2pgsql/issues/901#issuecomment-475596187"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/901#issuecomment-475596187",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/901#issuecomment-475596187",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>