+
    Tj                     B    R t ^ RIHt ^ RIHt ^ RIHt  ! R R4      tR# )zK
This object provides quoting for GEOS geometries into PostgreSQL/PostGIS.
)to_pgraster)GEOSGeometry)sqlc                   X   a  ] tR t^
t o R
R ltR tR tR tR t]	R 4       t
R tRtV tR	# )PostGISAdapterc                    \        V\        \        34      V n        V P                  '       d   \	        VP
                  4      V n        M\        V4      V n        VP                  V n        W n        R# )z#
Initialize on the spatial object.
N)	
isinstancer   r   is_geometrybytesewkbr   srid	geography)selfobjr   s   &&&c/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/db/backends/postgis/adapter.py__init__PostGISAdapter.__init__   sQ     &cL.+IJ chhDI#C(DIHH	"    c                4    ^ RI Hp W8X  d   V # \        R4      h)z9Does the given protocol conform to what Psycopg2 expects?)	ISQLQuotez<Error implementing psycopg2 protocol. Is psycopg2 installed?)psycopg2.extensionsr   	Exception)r   protor   s   && r   __conform__PostGISAdapter.__conform__   s     1KN r   c                d    \        V\        4      ;'       d    V P                  VP                  8H  # N)r   r   r   )r   others   &&r   __eq__PostGISAdapter.__eq__&   s$    %0LLTYY%**5LLr   c                ,    \        V P                  4      # r   )hashr   r   s   &r   __hash__PostGISAdapter.__hash__)   s    DIIr   c                >    V P                  4       P                  4       # r   )	getquoteddecoder"   s   &r   __str__PostGISAdapter.__str__,   s    ~~&&((r   c                    V# r    )clspolys   &&r   _fix_polygonPostGISAdapter._fix_polygon/   s    r   c                   V P                   '       dL   RV P                  '       d   RMR\        P                  ! V P                  4      P                  4       3,          # RV P                  P                  4       P                  4       ,          # )z@
Return a properly quoted string for use in PostgreSQL/PostGIS.
s   %s(%s)s   ST_GeogFromWKBs   ST_GeomFromEWKBs   '%s'::raster)r	   r   r   quoter   encodehexr"   s   &r   r&   PostGISAdapter.getquoted3   sj     %)^^^!9K		$))$++-    #TYY]]_%;%;%===r   )r   r   r	   r   N)F)__name__
__module____qualname____firstlineno__r   r   r   r#   r(   classmethodr.   r&   __static_attributes____classdictcell__)__classdict__s   @r   r   r   
   s=     # 	M)  > >r   r   N)__doc__/django.contrib.gis.db.backends.postgis.pgrasterr   django.contrib.gis.geosr   )django.db.backends.postgresql.psycopg_anyr   r   r+   r   r   <module>rA      s     H 0 95> 5>r   