+
    Tj                        ^ RI Ht ^ RIHt ^ RIHtHt ^ RIHt ^ RI	H
t ^RIHt  ! R R]P                  4      t ! R	 R
]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )    )forms)GDALException)GEOSExceptionGEOSGeometry)ValidationError)gettext_lazy)OpenLayersWidgetc            
          a a ] tR t^
t oRt]tRtR]! R4      R]! R4      R]! R4      R	]! R
4      /t	RRRR/V 3R llt
R tV 3R ltR tRtVtV ;t# )GeometryFieldz
This is the basic form field for a Geometry. Any textual input that is
accepted by GEOSGeometry is accepted by this form. By default,
this includes WKT, HEXEWKB, WKB (in a buffer), and GeoJSON.
GEOMETRYrequiredzNo geometry value provided.invalid_geomzInvalid geometry value.invalid_geom_typezInvalid geometry type.transform_errorzXAn error occurred when transforming the geometry to the SRID of the geometry form field.sridN	geom_typec                  < Wn         Ve   W n        \        SV `  ! R/ VB  V P                  V P                  P
                  R&   R # )Nr    )r   r   super__init__widgetattrs)selfr   r   kwargs	__class__s   &$$,T/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/forms/fields.pyr   GeometryField.__init__   s;    	 &N"6")-+&    c                P   WP                   9   d   R# \        V\        4      '       gh   \        V P                  R4      '       d    V P                  P                  V4      pM \        V4      pVf   \        V P                  R,          RR7      hVP                  '       g    V P                  P                  Vn        V# V#   \         d    Rp Lci ; i  \        \        \        3 d    Rp Li ; i  \         d(    T P                  '       d   T P                  Tn         T# i ; i)z)Transform the value to a Geometry object.Ndeserializer   code)empty_values
isinstancer   hasattrr   r    r   r   
ValueError	TypeErrorr   error_messagesr   map_sridAttributeError)r   values   &&r   	to_pythonGeometryField.to_python%   s   %%%%..t{{M22! KK33E:E!(/E }%''7n 
 zzz+![[11
 u' % ! E!
 &z9= ! E! " +999!%EJ+s<   C #C #C3 CCC0/C03D%D%$D%c                  < \         SV `  V4      pVf   V# \        VP                  4      P	                  4       V P                  8w  d0   V P                  R8w  d   \        V P                  R,          RR7      hV P                  '       dK   V P                  R8w  d:   V P                  VP                  8w  d    VP                  V P                  4       V# V#   \         d     \        T P                  R,          RR7      hi ; i)z
Validate that the input value can be converted to a Geometry object
and return it. Raise a ValidationError if the value cannot be
instantiated as a Geometry.
r   r   r!   r   )
r   cleanstrr   upperr   r(   r   	transformr   )r   r+   geomr   s   && r   r0   GeometryField.cleanC   s     w}U#<K
 %%'4>>9*,!##$78?R 
 999bTYY$))-Ctyy) t ! %''(9:AR s   7C *D c                     V P                  V4      pV P                  V4      pT'       d<   T'       d4   TP                  TP                  4       TP	                  TRR7      '       * # \        T4      \        T4      8g  #   \         d     R# i ; i)z8Compare geographic value of data with its initial value.Tgư>)	tolerance)r,   r   r3   r   equals_exactbool)r   initialdatas   &&&r   has_changedGeometryField.has_changedb   s~    	>>$'DnnW-G
 tNN7<<( ++DH+EEE =DJ..  		s   "A> >BB)r   r   )__name__
__module____qualname____firstlineno____doc__r	   r   r   _default_error_messagesr   r,   r0   r<   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r   r   
   sw      FI 	A3434Q7816
	8t 8t 8<>/ /r   r   c                       ] tR t^wtRtRtR# )GeometryCollectionFieldGEOMETRYCOLLECTIONr   Nr>   r?   r@   rA   r   rE   r   r   r   rJ   rJ   w   s    $Ir   rJ   c                       ] tR t^{tRtRtR# )
PointFieldPOINTr   NrL   r   r   r   rN   rN   {   s    Ir   rN   c                       ] tR t^tRtRtR# )MultiPointField
MULTIPOINTr   NrL   r   r   r   rQ   rQ          Ir   rQ   c                       ] tR t^tRtRtR# )LineStringField
LINESTRINGr   NrL   r   r   r   rU   rU      rS   r   rU   c                       ] tR t^tRtRtR# )MultiLineStringFieldMULTILINESTRINGr   NrL   r   r   r   rX   rX      s    !Ir   rX   c                       ] tR t^tRtRtR# )PolygonFieldPOLYGONr   NrL   r   r   r   r[   r[      s    Ir   r[   c                       ] tR t^tRtRtR# )MultiPolygonFieldMULTIPOLYGONr   NrL   r   r   r   r^   r^      s    Ir   r^   N)djangor   django.contrib.gis.gdalr   django.contrib.gis.geosr   r   django.core.exceptionsr   django.utils.translationr   rC   widgetsr	   Fieldr   rJ   rN   rQ   rU   rX   r[   r^   r   r   r   <module>rg      s~     1 ? 2 6 %j/EKK j/Z%m % m m "= "=  r   