Ejemplo n.º 1
0
    def setUp(self):
        self.fake_geometry = {"type": "Point", "coordinates": [2., 45.]}
        self.intersect_geometry = {
            "type":
            "LineString",
            "coordinates": [[1.3839340209960938, 43.602521593464054],
                            [1.4869308471679688, 43.60376465190968]]
        }
        self.intersect_ref_geometry = {
            "type":
            "LineString",
            "coordinates": [[1.440925598144531, 43.64750394449096],
                            [1.440582275390625, 43.574421623084234]]
        }
        self.fake_linestring = {
            "type": "LineString",
            "coordinates": [
                [1.3839340209960938, 43.602521593464054],
            ]
        }
        self.fake_polygon = {
            "type":
            "Polygon",
            "coordinates": [[[1.3839340209960938, 43.602521593464054],
                             [1.440582275390625, 43.574421623084234]]]
        }

        self.group_name = 'mygroup'
        self.layer = LayerFactory.create(group=self.group_name, add_features=5)

        self.user = UserFactory()
        self.client.force_login(self.user)
Ejemplo n.º 2
0
    def setUp(self):
        self.layer = LayerFactory.create(group=self.group_name, add_features=5)

        self.user = UserFactory()
        self.client.force_login(self.user)