def _autobounds(self):
bounds = {}<EOL>def check(prop, compare, extreme, val):<EOL><INDENT>opp = min if compare is max else max<EOL>bounds.setdefault(prop, val)<EOL>bounds[prop] = opp(compare(bounds[prop], val), extreme)<EOL><DEDENT>def bound_check(lat_lon):<EOL><INDENT>lat, lon = lat_lon<EOL>check('<STR_LIT>', max, <NUM_LIT>, lat)<EOL>check('<STR_LIT>', min, -<NUM_LIT>, lat)<EOL>check('<STR_LIT>', max, <NUM_LIT>, lon)<EOL>check('<STR_LIT>', min, -<NUM_LIT>, lon)<EOL><DEDENT>lat_lons = [lat_lon for feature in self._features.values() for<EOL>lat_lon in feature.lat_lons]<EOL>if not lat_lons:<EOL><INDENT>lat_lons.append(self._default_lat_lon)<EOL><DEDENT>for lat_lon in lat_lons:<EOL><INDENT>bound_check(lat_lon)<EOL><DEDENT>return bounds<EOL>
Simple calculation for bounds.