def add(self, geom):
        if isinstance(geom, OGRGeometry):
            if isinstance(geom, self.__class__):
                for g in geom: add_geom(self._ptr, g._ptr)
            else:
                add_geom(self._ptr, geom._ptr)
        elif isinstance(geom, basestring):
            tmp = OGRGeometry(geom)
            add_geom(self._ptr, tmp._ptr)
        else:
            raise OGRException('Must add an OGRGeometry.')
template_inst_impl : NAME template_args COLON template_inst_suite
dataset/ETHPy150Open dcramer/django-compositepks/django/contrib/gis/gdal/geometries.py/GeometryCollection.add--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/core/parser.py/p_template_inst_impl3