ó
i4Vdc           @   s:   d  d l  m Z d  d l m Z d e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   c_void_p(   t   GEOSExceptiont   GEOSBasec           B   s;   e  Z d  Z d Z e Z d „  Z d „  Z e	 e e ƒ Z
 RS(   s   
    Base object for GEOS objects that has a pointer access property
    that controls access to the underlying C pointer.
    c         C   s*   |  j  r |  j  St d |  j j ƒ ‚ d  S(   Ns!   NULL GEOS %s pointer encountered.(   t   _ptrR   t	   __class__t   __name__(   t   self(    (    sj   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/contrib/gis/geos/base.pyt   _get_ptr   s    	c         C   s:   | d  k s t | |  j ƒ r* | |  _ n t d ƒ ‚ d  S(   Ns   Incompatible pointer type(   t   Nonet
   isinstancet   ptr_typeR   t	   TypeError(   R   t   ptr(    (    sj   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/contrib/gis/geos/base.pyt   _set_ptr   s    N(   R   t
   __module__t   __doc__R   R   R    R
   R   R   t   propertyR   (    (    (    sj   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/contrib/gis/geos/base.pyR      s   			N(   t   ctypesR    t   django.contrib.gis.geos.errorR   t   objectR   (    (    (    sj   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/contrib/gis/geos/base.pyt   <module>   s   