<p>It's actually easier than that - just remove the tags you're not interested in.  Here, for example, is part of a lua script that removes all administrative boundaries:</p>

<p><a href="https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/style.lua#L359">https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/style.lua#L359</a></p>

<p>You'll want to take the example lua script that comes with osm2pgsql, add in new code to remove what you don't want and use that script when loading the rendering database.</p>

<p>An example of using that script is here:</p>

<p><a href="http://wiki.openstreetmap.org/wiki/User:SomeoneElse/Ubuntu_1404_tileserver_load#Reload_the_data_and_clear_previously_cached_tiles">http://wiki.openstreetmap.org/wiki/User:SomeoneElse/Ubuntu_1404_tileserver_load#Reload_the_data_and_clear_previously_cached_tiles</a></p>

<p>but of course you'll want to use your own values for most of the parameters.</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/603#issuecomment-231226588">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AD2-7imtVqlLiNXJG7I87YZXn3HX7o9Eks5qTX08gaJpZM4JHMTc">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7l0c7wrHc8hLs_ajMOdZVKq8ERYAks5qTX08gaJpZM4JHMTc.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/issues/603#issuecomment-231226588"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>