'Perform post-initialization setup.'

def _post_init(self, srid):

    if (srid and isinstance(srid, int)):
        self.srid = srid
    if (type(self) == GEOSGeometry):
        if (GEOSGeometry._GEOS_CLASSES is None):
            from .linestring import LineString, LinearRing
            from .point import Point
            from .polygon import Polygon
            from .collections import GeometryCollection, MultiPoint, MultiLineString, MultiPolygon
            GEOSGeometry._GEOS_CLASSES = {0: Point, 1: LineString, 2: LinearRing, 3: Polygon, 4: MultiPoint, 5: MultiLineString, 6: MultiPolygon, 7: GeometryCollection}
        self.__class__ = GEOSGeometry._GEOS_CLASSES[self.geom_typeid]
    self._set_cs()
