Hey,<div><br></div><div>Last few days Dane & I have been working on optimizing Carto for this case - try out the 'condense' branch: <a href="https://github.com/mapbox/carto/tree/condense">https://github.com/mapbox/carto/tree/condense</a></div>
<div><br></div><div>This requires one small change: in amenity-symbols.mss, change line 82 to</div><div><br></div><div>    [power = 'generator'][[generator:source] = 'wind']::power,</div><div><br></div><div>
Since condense now supports field-field combinations as well as : in field names.</div><div><br></div><div>Anyway, the main result of this work is that the condense branch (on my machine) brings Carto's processing time from 2.07 seconds to 0.76 seconds, so about 2.5x faster.</div>
<div><br></div><div>There's more optimization work that could be done, and this work unfortunately hasn't started to change the XML output to make a more efficient product for Mapnik to process.</div><div><br></div>
<div>It's still an experimental branch, but should consitute a Carto 0.9.5 when it hits stability.</div><div><br></div><div>Tom</div><div><br><div class="gmail_quote">On Wed, Dec 19, 2012 at 5:04 PM, Alex Barth <span dir="ltr"><<a href="mailto:alex@mapbox.com" target="_blank">alex@mapbox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Toby / AJ:<br>
<br>
I just captured your reports on the issue queue:<br>
<br>
<a href="https://github.com/gravitystorm/openstreetmap-carto/issues/26" target="_blank">https://github.com/gravitystorm/openstreetmap-carto/issues/26</a><br>
<br>
If anyone else has found issues like these, please report them right away on the GitHub project:<br>
<br>
<a href="https://github.com/gravitystorm/openstreetmap-carto/issues" target="_blank">https://github.com/gravitystorm/openstreetmap-carto/issues</a><br>
<br>
Thanks!<br>
<div class="HOEnZb"><div class="h5"><br>
On Dec 19, 2012, at 4:18 PM, AJ Ashton <<a href="mailto:aj.ashton@gmail.com">aj.ashton@gmail.com</a>> wrote:<br>
<br>
><br>
> On Wed, Dec 19, 2012 at 3:29 PM, Toby Murray <<a href="mailto:toby.murray@gmail.com">toby.murray@gmail.com</a>> wrote:<br>
> I was doing some poking around yesterday and noticed that county<br>
> borders (admin_levl=6) aren't being rendered at zoom 9 and 10. But I<br>
> do recall some confusion on the existing style between ways and<br>
> relations. I don't remember the details but there was some difference<br>
> between the zoom level at which ways and relations tagged with<br>
> admin_level=6 got rendered. Maybe this caused confusion when porting<br>
> to carto? Easy place to see this difference:<br>
> <a href="http://bl.ocks.org/d/4271706/#9.00/39.4664/-96.9125" target="_blank">http://bl.ocks.org/d/4271706/#9.00/39.4664/-96.9125</a><br>
><br>
> This seems to be about boundary relation way members being individually (and redundantly?) tagged with boundary=administrative. Some of the admin_level=6 ways in this area [1] are tagged as boundary=administrative, and others are tagless members of boundary relations. If you zoom out, the tagless ways disappear at zoom level 10 and below.<br>

><br>
> [1]: <a href="http://osm.org/go/T7OwGz3--" target="_blank">http://osm.org/go/T7OwGz3--</a><br>
><br>
> This commented out section of the stylesheet may be why the CartoCSS version is different:<br>
><br>
> <a href="https://github.com/gravitystorm/openstreetmap-carto/blob/master/admin.mss#L75-L85" target="_blank">https://github.com/gravitystorm/openstreetmap-carto/blob/master/admin.mss#L75-L85</a><br>
><br>
> --<br>
> AJ Ashton<br>
</div></div><div class="im HOEnZb">> _______________________________________________<br>
> dev mailing list<br>
> <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
> <a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
<br>
</div><div class="im HOEnZb">Alex Barth<br>
<a href="http://twitter.com/lxbarth" target="_blank">http://twitter.com/lxbarth</a><br>
tel <a href="tel:%28%2B1%29%20202%20250%203633" value="+12022503633">(+1) 202 250 3633</a><br>
<br>
<br>
<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</div></div></blockquote></div><br></div>