Based on Kevin Kenny's TopOSM-NY work, this adds improved rendering of several features in NHD: - Labels on area-based linear features (such as larger rivers) - Foreshores - Submerged rocks - Submerged streams - Inundation areas - Hazard zones - Special use zones - Rapids - Dams - Non-earthen shores - Water wells - Springs - Sinks - Rises - Gaging stations - Water tunnels The style files are also a bit cleaner by using entities from include/nhdfcodes.inc, rather than specifying NHD FCODEs directly.
…the corresponding "artificial path" flowlines.
…l dataset for them.
JPEG compression gives drastically smaller files (anywhere from 1/4 to 1/10 the size of the deflated ones). Mapnik handles the JPEG-compressed GeoTIFFs just fine; the rendered images look the same as the ones from deflate-compressed GeoTIFFs. ImageMagick does not do as well, so the prep_toposm_data script has to make a uncompressed version of the hillshade and colormap files to be used to derive the hypsorelief file. Also, since the colormap files are not used in rendering, I don't bother saving a JPEG-compressed copy of those (and the other copies are deleted after they're no longer needed).
Calling gdaladdo right after gdalwarp allows them to share an if statement, which means that the gdaladdo is only done for previously-unprocessed tiles. The old code would recreate the overviews on all tiles every time the prep_toposm_data script was run, even if only a few tiles had been added.
…etermine which renderer to use.
By default, osm2pgsql gives link roads the same z_order value as their corresponding main classification. This results in, e.g., motorway_link roads being rendered on top of everything else, which looks kind of bad, especially at high zoom levels. This changeset alters the rendering order so link roads are always rendered before any other roads, which makes the map look nicer.
…, land cover, and hypsorelief data