Changeset 37f674d for src/common


Ignore:
Timestamp:
Apr 5, 2020, 9:54:06 AM (7 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
be923cd
Parents:
1a7f9da
Message:

Changed SliceJob, TileGenerator.RasterSlice, LangLatBBox so that values could be None when calling from_dict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/common/gnuboat_common/spatial/tilegenerator.py

    r1a7f9da r37f674d  
    108108       
    109109        def from_dict(dictionary):
     110                if dictionary is None:
     111                        return None
    110112                return LngLatBbox(dictionary['west'], dictionary['south'], dictionary['east'], dictionary['north'])
    111113
    … …  
    139141       
    140142        def from_dict(dictionary):
     143                if dictionary is None:
     144                        return None
    141145                return RasterSlice(LngLatBbox.from_dict(dictionary['lng_lat_box']), ZoomRange.from_dict(dictionary['zoom_range']), dictionary['tile_size'], dictionary['grid_width'], dictionary['grid_height'])
    142146
Note: See TracChangeset for help on using the changeset viewer.