Esempio n. 1
0
 def test_lineOrPolygon_polygon(self):
     jmx = JMX()
     l2 = jmx.lineOrPolygon('+59.27+151.99/+59.24+151.79/+59.21+151.60/+59.27+151.99/');
     self.assertEqual(l2, geojson.loads('{"coordinates": [[[151.99, 59.27], [151.79, 59.24], [151.6, 59.21], [151.99, 59.27]]], "type": "Polygon"}'))
Esempio n. 2
0
    def test_lineOrPolygon(self):
        jmx = JMX()

        l = jmx.lineOrPolygon('+59.27+151.99/+59.24+151.79/+59.21+151.60/');

        self.assertEqual(l, geojson.loads('{"coordinates": [[151.99, 59.27], [151.79, 59.24], [151.6, 59.21]], "type": "LineString"}'))