Exemplo n.º 1
0
 def test_get_col_spec(self):
     g = Geometry(geometry_type='POINT', srid=900913)
     assert g.get_col_spec() == 'geometry(POINT,900913)'
Exemplo n.º 2
0
 def test_get_col_spec_dimension3DM(self):
     g = Geometry(geometry_type='GEOMETRYM', srid=900913, dimension=3)
     assert g.get_col_spec() == 'geometry(GEOMETRYM,900913)'
Exemplo n.º 3
0
 def test_get_col_spec(self):
     g = Geometry(srid=900913)
     assert g.get_col_spec() == 'geometry(GEOMETRY,900913)'
Exemplo n.º 4
0
 def test_get_col_spec(self):
     from geoalchemy2.types import Geometry
     g = Geometry(geometry_type='LINESTRING', srid=900913)
     eq_(g.get_col_spec(), 'geometry(LINESTRING,900913)')
Exemplo n.º 5
0
 def test_get_col_spec(self):
     from geoalchemy2.types import Geometry
     g = Geometry(geometry_type='GEOMETRYCOLLECTION', srid=900913)
     eq_(g.get_col_spec(), 'geometry(GEOMETRYCOLLECTION,900913)')
Exemplo n.º 6
0
 def test_get_col_spec(self):
     g = Geometry(geometry_type='MULTIPOLYGON', srid=900913)
     assert g.get_col_spec() == 'geometry(MULTIPOLYGON,900913)'
Exemplo n.º 7
0
 def test_get_col_spec(self):
     g = Geometry(srid=900913)
     assert g.get_col_spec() == 'geometry(GEOMETRY,900913)'
Exemplo n.º 8
0
 def test_get_col_spec_no_typmod(self):
     g = Geometry(geometry_type=None)
     assert g.get_col_spec() == 'geometry'
Exemplo n.º 9
0
 def test_get_col_spec_geometrym(self):
     g = Geometry(geometry_type='GEOMETRYM', srid=900913)
     assert g.get_col_spec() == 'geometry(GEOMETRYM,900913)'
Exemplo n.º 10
0
 def test_get_col_spec(self):
     from geoalchemy2.types import Geometry
     g = Geometry(geometry_type='GEOMETRYCOLLECTION', srid=900913)
     eq_(g.get_col_spec(), 'geometry(GEOMETRYCOLLECTION,900913)')
Exemplo n.º 11
0
 def test_get_col_spec(self):
     from geoalchemy2 import Geometry
     g = Geometry(srid=900913)
     eq_(g.get_col_spec(), 'geometry(GEOMETRY,900913)')
Exemplo n.º 12
0
 def test_get_col_spec(self):
     from geoalchemy2.types import Geometry
     g = Geometry(geometry_type='MULTIPOLYGON', srid=900913)
     eq_(g.get_col_spec(), 'geometry(MULTIPOLYGON,900913)')
Exemplo n.º 13
0
 def test_get_col_spec(self):
     from geoalchemy2.types import Geometry
     g = Geometry(geometry_type='LINESTRING', srid=900913)
     eq_(g.get_col_spec(), 'geometry(LINESTRING,900913)')
Exemplo n.º 14
0
 def test_get_col_spec(self):
     from geoalchemy2.types import Geometry
     g = Geometry(geometry_type='CURVE', srid=900913)
     eq_(g.get_col_spec(), 'geometry(CURVE,900913)')
Exemplo n.º 15
0
 def test_get_col_spec(self):
     g = Geometry(geometry_type='CURVE', srid=900913)
     assert g.get_col_spec() == 'geometry(CURVE,900913)'
Exemplo n.º 16
0
 def test_get_col_spec(self):
     g = Geometry(geometry_type='POINT', srid=900913)
     assert g.get_col_spec() == 'geometry(POINT,900913)'
Exemplo n.º 17
0
 def test_get_col_spec(self):
     g = Geometry(geometry_type='MULTILINESTRING', srid=900913)
     assert g.get_col_spec() == 'geometry(MULTILINESTRING,900913)'
Exemplo n.º 18
0
 def test_get_col_spec(self):
     g = Geometry(geometry_type='CURVE', srid=900913)
     assert g.get_col_spec() == 'geometry(CURVE,900913)'
Exemplo n.º 19
0
 def test_get_col_spec(self):
     g = Geometry(geometry_type='GEOMETRYCOLLECTION', srid=900913)
     assert g.get_col_spec() == 'geometry(GEOMETRYCOLLECTION,900913)'
Exemplo n.º 20
0
 def test_get_col_spec(self):
     g = Geometry(geometry_type='MULTILINESTRING', srid=900913)
     assert g.get_col_spec() == 'geometry(MULTILINESTRING,900913)'
Exemplo n.º 21
0
 def test_get_col_spec(self):
     from geoalchemy2.types import Geometry
     g = Geometry(geometry_type='CURVE', srid=900913)
     eq_(g.get_col_spec(), 'geometry(CURVE,900913)')
Exemplo n.º 22
0
 def test_get_col_spec(self):
     g = Geometry(geometry_type='MULTIPOLYGON', srid=900913)
     assert g.get_col_spec() == 'geometry(MULTIPOLYGON,900913)'
Exemplo n.º 23
0
 def test_get_col_spec(self):
     from geoalchemy2.types import Geometry
     g = Geometry(geometry_type='MULTIPOLYGON', srid=900913)
     eq_(g.get_col_spec(), 'geometry(MULTIPOLYGON,900913)')
Exemplo n.º 24
0
 def test_get_col_spec(self):
     g = Geometry(geometry_type='GEOMETRYCOLLECTION', srid=900913)
     assert g.get_col_spec() == 'geometry(GEOMETRYCOLLECTION,900913)'
Exemplo n.º 25
0
 def test_get_col_spec(self):
     from geoalchemy2 import Geometry
     g = Geometry(srid=900913)
     eq_(g.get_col_spec(), 'geometry(GEOMETRY,900913)')
Exemplo n.º 26
0
 def test_get_col_spec_no_typmod(self):
     g = Geometry(geometry_type=None)
     assert g.get_col_spec() == 'geometry'