OwlCyberSecurity - MANAGER
Edit File: fields.cpython-39.pyc
a ���e � @ 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� jf i |�� | j| jjd<