'Testing `ogr` and `srs` properties.'

def test21_test_gdal(self):

    if (not gdal.HAS_GDAL):
        return
    g1 = fromstr('POINT(5    23)')
    self.assertEqual(True, isinstance(g1.ogr, gdal.OGRGeometry))
    self.assertEqual(g1.srs, None)
    g2 = fromstr('LINESTRING(0    0,    5    5,    23    23)', srid=4326)
    self.assertEqual(True, isinstance(g2.ogr, gdal.OGRGeometry))
    self.assertEqual(True, isinstance(g2.srs, gdal.SpatialReference))
    self.assertEqual(g2.hex, g2.ogr.hex)
    self.assertEqual('WGS    84', g2.srs.name)
