|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/django/contrib/gis/geos/ |
Upload File : |
�
r�\c @ s� d d l m Z m Z d d l m Z d d l m Z m Z d d l m Z d d l
m Z d d l
m Z d d l m Z d e f d � � YZ d
S( i����( t c_uintt byref( t GEOSGeometry( t get_pointer_arrt GEOM_PTR( t
LinearRing( t
prototypes( t six( t xranget Polygonc B s� e Z d Z d � Z d � Z d � Z e d � � Z d � Z d � Z d d � Z
d � Z d
� Z d � Z
e j Z e j Z e d � � Z d
� Z d � Z e e e � Z e Z e d � � Z e Z e d � � Z RS( i c O s� | s t d � � n | d } | d } t | � } | d k r� t | d t t f � r� t | d � d k r d } d } q� t | d d t � r� | d } t | � } q� n | j | d | f | � } t t | � j | | � d S( sY
Initializes on an exterior ring and a sequence of holes (both
instances may be either LinearRing instances, or a tuple/list
that may be constructed into a LinearRing).
Examples of initialization, where shell, hole1, and hole2 are
valid LinearRing geometries:
>>> poly = Polygon(shell, hole1, hole2)
>>> poly = Polygon(shell, (hole1, hole2))
Example where a tuple parameters are used:
>>> poly = Polygon(((0, 0), (0, 10), (10, 10), (0, 10), (0, 0)),
((4, 4), (4, 6), (6, 6), (6, 4), (4, 4)))
sJ Must provide at least one LinearRing, or a tuple, to initialize a Polygon.i i N( (
t TypeErrort lent
isinstancet tuplet listR t _create_polygont superR t __init__( t selft argst kwargst ext_ringt
init_holest n_holest polygon( ( sA /tmp/pip-install-XxeQeY/django/django/contrib/gis/geos/polygon.pyR s
%
c c s* x# t t | � � D] } | | Vq Wd S( s'