Example #1
0
 def test_is_empty(self):
     r = session.query(Road).filter(Road.road_name=='Graeme Ave').one()
     l = session.query(Lake).filter(Lake.lake_name=='My Lake').one()
     assert not session.scalar(r.road_geom.is_empty)
     assert not session.scalar(l.lake_geom.is_empty)
     ok_(session.query(Spot).filter(not_(Spot.spot_location.is_empty)).first() is not None)
     eq_(session.scalar(functions.is_empty('POINT(-88.5945861592357 42.9480095987261)')), False)
Example #2
0
 def test_is_empty(self):
     r = session.query(Road).filter(Road.road_name=='Graeme Ave').one()
     l = session.query(Lake).filter(Lake.lake_name=='My Lake').one()
     assert not session.scalar(r.road_geom.is_empty)
     assert not session.scalar(l.lake_geom.is_empty)
     ok_(session.query(Spot).filter(Spot.spot_location.is_empty == False).first() is not None)
     eq_(session.scalar(functions.is_empty('POINT(-88.5945861592357 42.9480095987261)')), False)
Example #3
0
 def test_is_empty(self):
     ok_(not session.scalar(self.r.road_geom.is_empty))
     ok_(
         session.query(Spot).filter(
             Spot.spot_location.is_empty == False).first() is not None)
     eq_(
         session.scalar(
             functions.is_empty(
                 'POINT(-88.5945861592357 42.9480095987261)')), False)
Example #4
0
 def test_is_empty(self):
     ok_(not session.scalar(self.r.road_geom.is_empty))
     ok_(session.query(Spot).filter(Spot.spot_location.is_empty == False).first() is not None)
     eq_(session.scalar(functions.is_empty('POINT(-88.5945861592357 42.9480095987261)')), False)