#NEWLINE# @ no_mysql #NEWLINE# def test03_transform_related( self ) : #NEWLINE# #INDENT# 'Testing the `transform` GeoQuerySet method on related geographic models.' #NEWLINE# tol = 0 #NEWLINE# def check_pnt( ref , pnt ) : #NEWLINE# #INDENT# self . assertAlmostEqual ( ref . x , pnt . x , tol ) #NEWLINE# self . assertAlmostEqual ( ref . y , pnt . y , tol ) #NEWLINE# self . assertEqual ( ref . srid , pnt . srid ) #NEWLINE# #UNINDENT# transformed = ( ( 'Kecksburg' , 2272 , 'POINT(1490553.98959621 314792.131023984)' ) , ( 'Roswell' , 2257 , 'POINT(481902.189077221 868477.766629735)' ) , ( 'Aurora' , 2276 , 'POINT(2269923.2484839 7069381.28722222)' ) ) #NEWLINE# for ( name , srid , wkt ) in tol : #NEWLINE# #INDENT# qs = list ( City . objects . filter ( name = name ) . transform ( srid , field_name = 'location__point' ) ) #NEWLINE# check_pnt ( GEOSGeometry ( wkt , srid ) , qs [ 0 ] . location . point )