Make sure data is 3D and has expected Z values -- shouldn't change because of coordinate system.
(self)
| 144 | """ |
| 145 | |
| 146 | def test_3d_hasz(self): |
| 147 | """ |
| 148 | Make sure data is 3D and has expected Z values -- shouldn't change |
| 149 | because of coordinate system. |
| 150 | """ |
| 151 | self._load_interstate_data() |
| 152 | for name, line, exp_z in interstate_data: |
| 153 | interstate = Interstate3D.objects.get(name=name) |
| 154 | interstate_proj = InterstateProj3D.objects.get(name=name) |
| 155 | for i in [interstate, interstate_proj]: |
| 156 | self.assertTrue(i.line.hasz) |
| 157 | self.assertEqual(exp_z, tuple(i.line.z)) |
| 158 | |
| 159 | self._load_city_data() |
| 160 | for name, pnt_data in city_data: |
| 161 | city = City3D.objects.get(name=name) |
| 162 | # Testing both geometry and geography fields |
| 163 | self.assertTrue(city.point.hasz) |
| 164 | self.assertTrue(city.pointg.hasz) |
| 165 | self.assertEqual(city.point.z, pnt_data[2]) |
| 166 | self.assertEqual(city.pointg.z, pnt_data[2]) |
| 167 | |
| 168 | def test_3d_polygons(self): |
| 169 | """ |
nothing calls this directly
no test coverage detected