def test_get_col_spec(self): g = Geometry(geometry_type='POINT', srid=900913) assert g.get_col_spec() == 'geometry(POINT,900913)'
def test_get_col_spec_dimension3DM(self): g = Geometry(geometry_type='GEOMETRYM', srid=900913, dimension=3) assert g.get_col_spec() == 'geometry(GEOMETRYM,900913)'
def test_get_col_spec(self): g = Geometry(srid=900913) assert g.get_col_spec() == 'geometry(GEOMETRY,900913)'
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)')
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)')
def test_get_col_spec(self): g = Geometry(geometry_type='MULTIPOLYGON', srid=900913) assert g.get_col_spec() == 'geometry(MULTIPOLYGON,900913)'
def test_get_col_spec(self): g = Geometry(srid=900913) assert g.get_col_spec() == 'geometry(GEOMETRY,900913)'
def test_get_col_spec_no_typmod(self): g = Geometry(geometry_type=None) assert g.get_col_spec() == 'geometry'
def test_get_col_spec_geometrym(self): g = Geometry(geometry_type='GEOMETRYM', srid=900913) assert g.get_col_spec() == 'geometry(GEOMETRYM,900913)'
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)')
def test_get_col_spec(self): from geoalchemy2 import Geometry g = Geometry(srid=900913) eq_(g.get_col_spec(), 'geometry(GEOMETRY,900913)')
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)')
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)')
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)')
def test_get_col_spec(self): g = Geometry(geometry_type='CURVE', srid=900913) assert g.get_col_spec() == 'geometry(CURVE,900913)'
def test_get_col_spec(self): g = Geometry(geometry_type='POINT', srid=900913) assert g.get_col_spec() == 'geometry(POINT,900913)'
def test_get_col_spec(self): g = Geometry(geometry_type='MULTILINESTRING', srid=900913) assert g.get_col_spec() == 'geometry(MULTILINESTRING,900913)'
def test_get_col_spec(self): g = Geometry(geometry_type='CURVE', srid=900913) assert g.get_col_spec() == 'geometry(CURVE,900913)'
def test_get_col_spec(self): g = Geometry(geometry_type='GEOMETRYCOLLECTION', srid=900913) assert g.get_col_spec() == 'geometry(GEOMETRYCOLLECTION,900913)'
def test_get_col_spec(self): g = Geometry(geometry_type='MULTILINESTRING', srid=900913) assert g.get_col_spec() == 'geometry(MULTILINESTRING,900913)'
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)')
def test_get_col_spec(self): g = Geometry(geometry_type='MULTIPOLYGON', srid=900913) assert g.get_col_spec() == 'geometry(MULTIPOLYGON,900913)'
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)')
def test_get_col_spec(self): g = Geometry(geometry_type='GEOMETRYCOLLECTION', srid=900913) assert g.get_col_spec() == 'geometry(GEOMETRYCOLLECTION,900913)'
def test_get_col_spec(self): from geoalchemy2 import Geometry g = Geometry(srid=900913) eq_(g.get_col_spec(), 'geometry(GEOMETRY,900913)')
def test_get_col_spec_no_typmod(self): g = Geometry(geometry_type=None) assert g.get_col_spec() == 'geometry'