Created
December 5, 2008 06:02
-
-
Save springmeyer/32252 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Parameter name="table"><![CDATA[ | |
(SELECT *, | |
(CASE WHEN round(way_area * 1000000) >= 20 THEN 'large' | |
WHEN round(way_area * 1000000) >= 1 THEN 'medium' | |
ELSE 'small' END) AS size, | |
REGEXP_REPLACE(UPPER(name), '(.)', E'\\1\xC2\xA0\xC2\xA0', 'g') AS name_stretched | |
FROM planet_osm_polygon | |
WHERE building IS NOT NULL | |
ORDER BY z_order ASC, way_area DESC) AS citylike]]></Parameter> | |
becomes: | |
<Parameter name="table"> (SELECT *, (CASE WHEN round(way_area * 1000000) >= 20 THEN 'large' WHEN round(way_area * 1000000) >= 1 THEN 'medium' ELSE 'small' END) AS size, REGEXP_REPLACE(UPPER(name), '(.)', E'\\1\xC2\xA0\xC2\xA0', 'g') AS name_stretched FROM planet_osm_polygon WHERE building IS NOT NULL ORDER BY z_order ASC, way_area DESC) AS citylike</Parameter> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment