Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias alias alias alias alias alias alias alias alias alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore TupleLoad TupleLoad Str TupleLoad Num Num Num TupleLoad Str TupleLoad Num Num Num TupleLoad Str TupleLoad Num Num Num TupleLoad Str TupleLoad Num Num Num TupleLoad Str TupleLoad Num Num Num TupleLoad Str TupleLoad Num Num Num TupleLoad Str TupleLoad Num Num Num TupleLoad Str TupleLoad Num Num Num Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad Assign NameStore TupleLoad TupleLoad Str Str TupleLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Assign NameStore Str Assign NameStore TupleLoad Num Num Num Num Num FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad keyword Num Assign NameStore Call NameLoad Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad NameLoad comprehension TupleStore TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad keyword Num Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str For TupleStore NameStore NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad NameLoad keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad For NameStore ListLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias alias Assign NameStore Dict Str Str Assign NameStore Dict Str Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad Num Num Num Num Num Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam defaults Num body For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list For NameStore ListLoad NameLoad NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str attr attr NameLoad Assign NameStore Num Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad Num Num Num For NameStore NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMult SubscriptLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Index Num NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad Num Num Num For NameStore NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Index Num NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A __future__ absolute_import N/A os N/A re django.utils.unittest TestCase django.contrib.gis.db.models Union Extent3D django.contrib.gis.geos GEOSGeometry Point Polygon django.contrib.gis.utils LayerMapping LayerMapError models City3D Interstate2D Interstate3D InterstateProj2D InterstateProj3D Point2D Point3D MultiPoint3D Polygon2D Polygon3D N/A data_path N/A N/A N/A os path realpath N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ .. data N/A city_file N/A N/A N/A os path join data_path cities cities.shp N/A vrt_file N/A N/A N/A os path join data_path test_vrt test_vrt.vrt N/A city_data N/A N/A Houston N/A -95.363151 29.763374 18 N/A Dallas N/A -96.801611 32.782057 147 N/A Oklahoma City N/A -97.521157 34.464642 380 N/A Wellington N/A 174.783117 -41.315268 14 N/A Pueblo N/A -104.609252 38.255001 1433 N/A Lawrence N/A -95.23506 38.971823 251 N/A Chicago N/A -87.650175 41.850385 181 N/A Victoria N/A -123.305196 48.462611 15 N/A city_dict N/A dict N/A N/A name coords N/A N/A name coords city_data N/A interstate_data N/A N/A I-45 LINESTRING(-95.3708481 29.7765870 11.339,-95.3694580 29.7787980 4.536,-95.3690305 29.7797359 9.762,-95.3691886 29.7812450 12.448,-95.3696447 29.7850144 10.457,-95.3702511 29.7868518 9.418,-95.3706724 29.7881286 14.858,-95.3711632 29.7896157 15.386,-95.3714525 29.7936267 13.168,-95.3717848 29.7955007 15.104,-95.3717719 29.7969804 16.516,-95.3717305 29.7982117 13.923,-95.3717254 29.8000778 14.385,-95.3719875 29.8013539 15.160,-95.3720575 29.8026785 15.544,-95.3721321 29.8040912 14.975,-95.3722074 29.8050998 15.688,-95.3722779 29.8060430 16.099,-95.3733818 29.8076750 15.197,-95.3741563 29.8103686 17.268,-95.3749458 29.8129927 19.857,-95.3763564 29.8144557 15.435) N/A 11.339 4.536 9.762 12.448 10.457 9.418 14.858 15.386 13.168 15.104 16.516 13.923 14.385 15.16 15.544 14.975 15.688 16.099 15.197 17.268 19.857 15.435 N/A bbox_wkt POLYGON((941527.97 4225693.20,962596.48 4226349.75,963152.57 4209023.95,942051.75 4208366.38,941527.97 4225693.20)) N/A bbox_z N/A 21.71 13.21 9.12 16.4 21.71 gen_bbox N/A N/A N/A N/A N/A bbox_2d N/A GEOSGeometry bbox_wkt srid 32140 N/A bbox_3d N/A Polygon N/A tuple N/A N/A x y z N/A N/A N/A x y z N/A zip N/A N/A bbox_2d N/A 0 coords bbox_z srid 32140 N/A N/A bbox_2d bbox_3d N/A Geo3DTest N/A TestCase N/A N/A 
    Only a subset of the PostGIS routines are 3D-enabled, and this TestCase
    tries to test the features that can handle 3D and that are also
    available within GeoDjango.  For more information, see the PostGIS docs
    on the routines that support 3D:

    http://postgis.refractions.net/documentation/manual-1.4/ch08.html#PostGIS_3D_Functions
     test01_3d N/A N/A self N/A N/A N/A Test the creation of 3D models. N/A N/A name pnt_data city_data N/A N/A N/A x y z pnt_data N/A pnt N/A Point x y z srid 4326 N/A N/A N/A N/A City3D objects create name name point pnt N/A city N/A N/A N/A City3D objects get name name N/A N/A N/A self assertTrue N/A N/A city point hasz N/A N/A N/A self assertEqual z N/A N/A city point z N/A N/A name line exp_z interstate_data N/A N/A line_3d N/A GEOSGeometry line srid 4269 N/A line_2d N/A GEOSGeometry N/A line_3d hex srid 4269 N/A N/A N/A N/A Interstate3D objects create name name line line_3d N/A N/A N/A N/A InterstateProj3D objects create name name line line_3d N/A N/A N/A N/A Interstate2D objects create name name line line_2d N/A N/A N/A N/A InterstateProj2D objects create name name line line_2d N/A interstate N/A N/A N/A Interstate3D objects get name name N/A interstate_proj N/A N/A N/A InterstateProj3D objects get name name N/A i N/A interstate interstate_proj N/A N/A N/A N/A self assertTrue N/A N/A i line hasz N/A N/A N/A self assertEqual exp_z N/A tuple N/A N/A i line z N/A N/A bbox2d bbox3d N/A gen_bbox N/A N/A N/A N/A Polygon2D objects create name 2D BBox poly bbox2d N/A N/A N/A N/A Polygon3D objects create name 3D BBox poly bbox3d N/A p3d N/A N/A N/A Polygon3D objects get name 3D BBox N/A N/A N/A self assertTrue N/A N/A p3d poly hasz N/A N/A N/A self assertEqual bbox3d N/A p3d poly N/A test01a_3d_layermapping N/A N/A self N/A N/A N/A Testing LayerMapping on 3D models. models Point2D Point3D N/A point_mapping N/A point POINT N/A mpoint_mapping N/A mpoint MULTIPOINT N/A lm N/A LayerMapping Point2D vrt_file point_mapping transform False N/A N/A N/A lm save N/A N/A N/A self assertEqual 3 N/A N/A N/A Point2D objects count N/A N/A N/A self assertRaises LayerMapError LayerMapping Point3D city_file point_mapping transform False N/A lm N/A LayerMapping Point3D vrt_file point_mapping transform False N/A N/A N/A lm save N/A N/A N/A self assertEqual 3 N/A N/A N/A Point3D objects count N/A lm N/A LayerMapping MultiPoint3D vrt_file mpoint_mapping transform False N/A N/A N/A lm save N/A N/A N/A self assertEqual 3 N/A N/A N/A MultiPoint3D objects count N/A test02a_kml N/A N/A self N/A N/A N/A Test GeoQuerySet.kml() with Z values. N/A h N/A N/A N/A N/A N/A City3D objects kml precision 6 get name Houston N/A ref_kml_regex N/A N/A re compile ^<Point><coordinates>-95.363\d+,29.763\d+,18</coordinates></Point>$ N/A N/A N/A self assertTrue N/A N/A ref_kml_regex match N/A h kml N/A test02b_geojson N/A N/A self N/A N/A N/A Test GeoQuerySet.geojson() with Z values. N/A h N/A N/A N/A N/A N/A City3D objects geojson precision 6 get name Houston N/A ref_json_regex N/A N/A re compile ^{"type":"Point","coordinates":\[-95.363151,29.763374,18(\.0+)?\]}$ N/A N/A N/A self assertTrue N/A N/A ref_json_regex match N/A h geojson N/A test03a_union N/A N/A self N/A N/A N/A Testing the Union aggregate of 3D models. N/A ref_ewkt SRID=4326;MULTIPOINT(-123.305196 48.462611 15,-104.609252 38.255001 1433,-97.521157 34.464642 380,-96.801611 32.782057 147,-95.363151 29.763374 18,-95.23506 38.971823 251,-87.650175 41.850385 181,174.783117 -41.315268 14) N/A ref_union N/A GEOSGeometry ref_ewkt N/A union N/A N/A N/A N/A City3D objects aggregate N/A Union point N/A point__union N/A N/A N/A self assertTrue N/A union hasz N/A N/A N/A self assertEqual ref_union union N/A test03b_extent N/A N/A self N/A N/A N/A Testing the Extent3D aggregate for 3D models. N/A ref_extent3d N/A -123.305196 -41.315268 14 174.783117 48.462611 1433 N/A extent1 N/A N/A N/A N/A City3D objects aggregate N/A Extent3D point N/A point__extent3d N/A extent2 N/A N/A N/A City3D objects extent3d check_extent3d N/A N/A extent3d tol N/A 6 N/A N/A N/A ref_val ext_val N/A zip ref_extent3d extent3d N/A N/A N/A N/A self assertAlmostEqual ref_val ext_val tol N/A N/A e3d N/A extent1 extent2 N/A N/A N/A check_extent3d e3d N/A test04_perimeter N/A N/A self N/A N/A N/A Testing GeoQuerySet.perimeter() on 3D fields. N/A ref_perim_3d 76859.2620451 N/A ref_perim_2d 76859.2577803 N/A tol 6 N/A N/A N/A self assertAlmostEqual ref_perim_2d N/A N/A N/A N/A N/A N/A N/A Polygon2D objects perimeter get name 2D BBox perimeter m tol N/A N/A N/A self assertAlmostEqual ref_perim_3d N/A N/A N/A N/A N/A N/A N/A Polygon3D objects perimeter get name 3D BBox perimeter m tol N/A test05_length N/A N/A self N/A N/A N/A Testing GeoQuerySet.length() on 3D fields. N/A tol 3 N/A ref_length_2d 4368.17219495 N/A ref_length_3d 4368.62547052 N/A N/A N/A self assertAlmostEqual ref_length_2d N/A N/A N/A N/A N/A N/A N/A Interstate2D objects length get name I-45 length m tol N/A N/A N/A self assertAlmostEqual ref_length_3d N/A N/A N/A N/A N/A N/A N/A Interstate3D objects length get name I-45 length m tol N/A ref_length_2d 4367.71564892 N/A ref_length_3d 4368.16897234 N/A N/A N/A self assertAlmostEqual ref_length_2d N/A N/A N/A N/A N/A N/A N/A InterstateProj2D objects length get name I-45 length m tol N/A N/A N/A self assertAlmostEqual ref_length_3d N/A N/A N/A N/A N/A N/A N/A InterstateProj3D objects length get name I-45 length m tol N/A test06_scale N/A N/A self N/A N/A N/A Testing GeoQuerySet.scale() on Z values. N/A zscales N/A -3 4 23 N/A zscale zscales N/A N/A city N/A N/A N/A City3D objects scale 1.0 1.0 zscale N/A N/A N/A N/A self assertEqual N/A N/A N/A city_dict N/A N/A city name N/A 2 zscale N/A N/A city scale z N/A test07_translate N/A N/A self N/A N/A N/A Testing GeoQuerySet.translate() on Z values. N/A ztranslations N/A 5.23 23 -17 N/A ztrans ztranslations N/A N/A city N/A N/A N/A City3D objects translate 0 0 ztrans N/A N/A N/A N/A self assertEqual N/A N/A N/A city_dict N/A N/A city name N/A 2 ztrans N/A N/A city translate z N/A N/A