'Testing the SRID property and keyword.'

def test15_srid(self):

    pnt = Point(5, 23, srid=4326)
    self.assertEqual(4326, pnt.srid)
    pnt.srid = 3084
    self.assertEqual(3084, pnt.srid)
    self.assertRaises(ctypes.ArgumentError, pnt.set_srid, '4326')
    poly = fromstr(self.geometries.polygons[1].wkt, srid=4269)
    self.assertEqual(4269, poly.srid)
    for ring in poly:
        self.assertEqual(4269, ring.srid)
    poly.srid = 4326
    self.assertEqual(4326, poly.shell.srid)
    gc = GeometryCollection(Point(5, 23), LineString((0, 0), (1.5, 1.5), (3, 3)), srid=32021)
    self.assertEqual(32021, gc.srid)
    for i in range(len(gc)):
        self.assertEqual(32021, gc[i].srid)
    hex = '0101000020E610000000000000000014400000000000003740'
    p1 = fromstr(hex)
    self.assertEqual(4326, p1.srid)
    exp_srid = self.null_srid
    p2 = fromstr(p1.hex)
    self.assertEqual(exp_srid, p2.srid)
    p3 = fromstr(p1.hex, srid=(-1))
    self.assertEqual((-1), p3.srid)
