Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/django/contrib/gis/forms/__pycache__/ |
Upload File : |
o �a� � @ s� d dl mZ d dlmZ d dlmZmZ d dlmZ d dl m Z ddlm Z G dd � d ej�ZG d d� de�ZG dd � d e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )� )�forms)� GDALException)� GEOSException�GEOSGeometry)�ValidationError)�gettext_lazy� )�OpenLayersWidgetc sj e Zd ZdZeZdZed�ed�ed�ed�d�Zddd �� fd d� Z dd � Z � fdd�Zdd� Z� Z S )� 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. �GEOMETRYzNo geometry value provided.zInvalid geometry value.zInvalid geometry type.zXAn error occurred when transforming the geometry to the SRID of the geometry form field.)�required�invalid_geom�invalid_geom_type�transform_errorN)�srid� geom_typec s8 || _ |d ur || _t� jdi |�� | j| jjd<