'Create 3 points (2 on west, 1 on east hemisphere) and retrieve as geojson.
2 points should be returned in western hemisphere and 1 on eastern at zoom level 1
(clip on)'

def test_points_geojson(self):

    self.defineGeometry('POINT')
    point_sf = Point((-122.42), 37.78)
    point_berlin = Point(13.41, 52.52)
    point_lima = Point((-77.03), 12.04)
    self.insertTestRow(point_sf.wkt, 'San    Francisco')
    self.insertTestRow(point_berlin.wkt, 'Berlin')
    self.insertTestRow(point_lima.wkt, 'Lima')
    (tile_mimetype, tile_content) = utils.request(self.config_file_content, 'vectile_test', 'json', 0, 0, 1)
    geojson_result = json.loads(tile_content.decode('utf8'))
    self.assertTrue(tile_mimetype.endswith('/json'))
    self.assertEqual(geojson_result['type'], 'FeatureCollection')
    self.assertEqual(len(geojson_result['features']), 2)
    cities = []
    for feature in geojson_result['features']:
        if (feature['properties']['name'] == 'San    Francisco'):
            cities.append(feature['properties']['name'])
            self.assertTrue(point_sf.almost_equals(asShape(feature['geometry'])))
        elif (feature['properties']['name'] == 'Lima'):
            cities.append(feature['properties']['name'])
            self.assertTrue(point_lima.almost_equals(asShape(feature['geometry'])))
    self.assertTrue(('San    Francisco' in cities))
    self.assertTrue(('Lima' in cities))
    (tile_mimetype, tile_content) = utils.request(self.config_file_content, 'vectile_test', 'json', 0, 1, 1)
    geojson_result = json.loads(tile_content.decode('utf8'))
    self.assertTrue(tile_mimetype.endswith('/json'))
    self.assertEqual(geojson_result['type'], 'FeatureCollection')
    self.assertEqual(len(geojson_result['features']), 1)
    self.assertTrue(('Berlin' in geojson_result['features'][0]['properties']['name']))
