|
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 : /lib64/python2.7/site-packages/django/contrib/gis/ |
Upload File : |
�
r�\c @ s� d d l m Z d d l m Z d d l m Z m Z d e f d � � YZ d e e f d � � YZ
d e e f d � � YZ d
e e f d � � YZ d e f d
� � YZ d S( i����( t unicode_literals( t Feed( t Atom1Feedt Rss201rev2Feedt GeoFeedMixinc B s/ e Z d Z d � Z e d � Z e d � Z RS( u�
This mixin provides the necessary routines for SyndicationFeed subclasses
to produce simple GeoRSS or W3C Geo elements.
c C s2 d j g | D] } d | d | d f ^ q
� S( u�
In GeoRSS coordinate pairs are ordered by lat/lon and separated by
a single white space. Given a tuple of coordinates, this will return
a unicode GeoRSS representation.
u u %f %fi i ( t join( t selft coordst coord( ( s: /tmp/pip-install-XxeQeY/django/django/contrib/gis/feeds.pyt
georss_coords s c C sa | rA | d \ } } | j d d | � | j d d | � n | j d | j | f � � d S( u�
Adds a GeoRSS point with the given coords using the given handler.
Handles the differences between simple GeoRSS and the more pouplar
W3C Geo specification.
i u geo:latu %fu geo:lonu georss:pointN( t addQuickElementR ( R t handlerR t w3c_geot lont lat( ( s: /tmp/pip-install-XxeQeY/django/django/contrib/gis/feeds.pyt add_georss_point s
c C s� | j d d � } | d k r�t | t t f � rd } t | d t t f � r| t | � d k rm | } q� t d � � n` t | � d k r� | j | | d | �n5 t | � d k r� | d | d f } n t d � � | d k r�| r� t d � � n | j d | j | � � q�q�t
| j � j � } | d
k rY| j | | j
d | �q�| rnt d � � n | d k r�| j d | j | j
� � q�| d k r�| j d | j | d j
� � q�t d | j � � n d S( uZ
This routine adds a GeoRSS XML element using the given item and handler.
u geometryi i u'