hotosm / HDM-CartoCSS

CartoCSS project focused on the Humanitarian Data Model
Other
136 stars 41 forks source link

ST_Simplify / ST_Buffer on large polygons... #252

Closed cquest closed 9 years ago

cquest commented 9 years ago

The rendering on admin boundary names uses ST_Buffer + ST_Simplify to offset names in two different layers:

https://github.com/hotosm/HDM-CartoCSS/blob/master/hdm.mml#L1200 https://github.com/hotosm/HDM-CartoCSS/blob/master/hdm.mml#L1226

It is causing high load when country polygons are involved as the ST_Buffer, then the ST_Simplify are computed on the country full polygon.

This could be replaced by text-dy on the original geometry (best option), or by replacing p.way by ST_Intersection(p.way,ST_Expand(!bbox!,128))

yohanboniface commented 9 years ago

Closed via #253.