oobrien / oomap

OpenOrienteeringMap. Includes the website, tiling scripts, and mapnik stylesheets for OOMap and other raster tile layers.
GNU General Public License v2.0
45 stars 8 forks source link

Contours extend beyond PDF map boundary #64

Closed cadnant closed 1 year ago

cadnant commented 3 years ago

Generated PDFs look fine, but the extents of the vector contours often extend well beyond the map bounds, resulting in file sizes larger than necessary. Can be addressed by editing maptiler/styles/inc/layers_contours.xml.inc and replacing the two occurrences of:

(select geom, prop_value from terr50_lns WHERE ...

with

(select ST_Intersection(geom, !bbox!) as geom, prop_value from terr50_lns WHERE ...

cadnant commented 1 year ago

Fixed in #69 and improved in #76 - contours (and other map data) are cropped to the map area when querying the stored contour and map data.