apply category and template limits when necessary
(lon, lat) not (lat, lon) now