~awuerl/blitzortung-python/master

« back to all changes in this revision

Viewing changes to blitzortung/geom.py

  • Committer: Andreas Wuerl
  • Date: 2019-06-24 19:32:25 UTC
  • mto: This revision was merged to the branch mainline in revision 394.
  • Revision ID: git-v1:29d4be282c05035bdff8d4828573537ed6d8ceea
update tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import math
22
22
from abc import ABCMeta, abstractmethod
 
23
 
23
24
import pyproj
24
 
 
25
25
import shapely.geometry
26
26
 
27
27
 
82
82
    @property
83
83
    def env(self):
84
84
        return shapely.geometry.LinearRing(
85
 
                [(self.x_min, self.y_min), (self.x_min, self.y_max), (self.x_max, self.y_max),
86
 
                 (self.x_max, self.y_min)])
 
85
            [(self.x_min, self.y_min), (self.x_min, self.y_max), (self.x_max, self.y_max),
 
86
             (self.x_max, self.y_min)])
87
87
 
88
88
    def __repr__(self):
89
89
        return 'Envelope(x: %.4f..%.4f, y: %.4f..%.4f)' % (