| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/django/contrib/gis/__pycache__/ |
Upload File : |
�
�|�e � �v � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl Z n
# e
$ r dZ Y nw xY wd� Zd� Zd � Z
dS )
� N)�BytesIO)�settings)�HttpResponse)�loaderFc �F � t � � }t j |dt j � � 5 }|� d| � t j � � � � ddd� � n# 1 swxY w Y |� d� � |� � � S )z0Return compressed KMZ from the given KML string.�azdoc.kmlNr )
r �zipfile�ZipFile�ZIP_DEFLATED�writestr�encoder �DEFAULT_CHARSET�seek�read)�kml�kmz�zfs �>/usr/lib/python3/dist-packages/django/contrib/gis/shortcuts.py�compress_kmlr s� � �
�)�)�C� ���c�7�#7� 8� 8� E�B�
���I�s�z�z�(�*B�C�C�D�D�D�E� E� E� E� E� E� E� E� E� E� E���� E� E� E� E��H�H�Q�K�K�K��8�8�:�:�s �4A/�/A3�6A3c �B � t t j | i |��d�� � S )z9Render the response as KML (using the correct MIME type).z$application/vnd.google-earth.kml+xml��content_type)r r �render_to_string��args�kwargss r �
render_to_kmlr s/ � �����0��0�0�;�� � � � c �\ � t t t j | i |��� � d�� � S )zW
Compress the KML content and return as KMZ (using the correct
MIME type).
z application/vnd.google-earth.kmzr )r r r r r s r �
render_to_kmzr s9 � �
��V�,�d�=�f�=�=�>�>�7�� � � r )r �ior �django.confr �django.httpr �django.templater �numpy�ImportErrorr r r � r r �<module>r( s� �� ���� � � � � � � � � � � � � $� $� $� $� $� $� "� "� "� "� "� "���L�L�L�L��� � � ��E�E�E������ � �� � �� � � � s �# �-�-