Exemple #1
0
 def test_envelope(self):
     eq_(
         session.scalar(functions.wkt(self.r.road_geom.envelope)),
         u"POLYGON((-88.674841 42.936306, -88.439093 42.936306, -88.439093 43.103503, -88.674841 43.103503, -88.674841 42.936306))",
     )
     env = WKBSpatialElement(session.scalar(func.AsBinary(self.r.road_geom.envelope)))
     eq_(env.geom_type(session), "Polygon")
 def test_envelope(self):
     eq_(
         session.scalar(functions.wkt(self.r.road_geom.envelope)),
         'POLYGON((-88.674841 42.936306, -88.439093 42.936306, -88.439093 43.103503, -88.674841 43.103503, -88.674841 42.936306))'
     )
     env = WKBSpatialElement(
         session.scalar(func.AsBinary(self.r.road_geom.envelope)))
     eq_(env.geom_type(session), 'Polygon')
Exemple #3
0
 def test_envelope(self):
     eq_(
         b2a_hex(session.scalar(self.r.road_geom.envelope)),
         'e610000001030000000100000005000000d7db0998302b56c036c921ded877454078a18c171a1c56c036c921ded877454078a18c171a1c56c0876f04983f8d4540d7db0998302b56c0876f04983f8d4540d7db0998302b56c036c921ded8774540'
     )
     env = WKBSpatialElement(
         session.scalar(func.AsBinary(self.r.road_geom.envelope)))
     eq_(env.geom_type(session), 'Polygon')
     eq_(
         session.scalar(
             functions.wkt(
                 functions.envelope(
                     'POINT(-88.5945861592357 42.9480095987261)'))),
         'POLYGON((-88.5945861592357 42.9480095987261,-88.5945861592357 42.9480095987261,-88.5945861592357 42.9480095987261,-88.5945861592357 42.9480095987261,-88.5945861592357 42.9480095987261))'
     )
 def test_envelope(self):
     eq_(b2a_hex(session.scalar(self.r.road_geom.envelope)), 'e610000001030000000100000005000000d7db0998302b56c036c921ded877454078a18c171a1c56c036c921ded877454078a18c171a1c56c0876f04983f8d4540d7db0998302b56c0876f04983f8d4540d7db0998302b56c036c921ded8774540')
     env =  WKBSpatialElement(session.scalar(func.AsBinary(self.r.road_geom.envelope)))
     eq_(env.geom_type(session), 'Polygon')
     eq_(session.scalar(functions.wkt(functions.envelope('POINT(-88.5945861592357 42.9480095987261)'))),
         'POLYGON((-88.5945861592357 42.9480095987261,-88.5945861592357 42.9480095987261,-88.5945861592357 42.9480095987261,-88.5945861592357 42.9480095987261,-88.5945861592357 42.9480095987261))')