// 模拟图斑（小班）数据
export const plotGeoJSON = {
    type: "FeatureCollection",
    features: [
        {
            type: "Feature",
            properties: {
                name: "小班1",
                type: "乔木林",
                area: 12.5,
                collector: "张林",
                species: "栎树",
                images: [
                    "https://picsum.photos/id/1018/400/250",
                    "https://picsum.photos/id/1021/400/250",
                    "https://picsum.photos/id/1024/400/250",
                ],
                videos: [
                    "https://www.w3schools.com/html/mov_bbb.mp4",
                    "https://www.w3schools.com/html/movie.mp4",
                ],
            },
            geometry: {
                type: "Polygon",
                coordinates: [
                    [
                        [117.180, 39.130],
                        [117.185, 39.130],
                        [117.185, 39.135],
                        [117.180, 39.135],
                        [117.180, 39.130],
                    ],
                ],
            },
        },
        {
            type: "Feature",
            properties: {
                name: "小班2",
                type: "灌木林",
                area: 8.3,
                collector: "李青",
                species: "柽柳",
                images: ["https://picsum.photos/id/1033/400/250"],
                videos: ["https://www.w3schools.com/html/mov_bbb.mp4"],
            },
            geometry: {
                type: "Polygon",
                coordinates: [
                    [
                        [117.190, 39.130],
                        [117.195, 39.130],
                        [117.195, 39.135],
                        [117.190, 39.135],
                        [117.190, 39.130],
                    ],
                ],
            },
        },
    ],
};

// 模拟样地与四旁树数据
export const samplePlots = {
    type: "FeatureCollection",
    features: [
        {
            type: "Feature",
            geometry: {
                type: "Polygon",
                coordinates: [
                    [
                        [117.2005, 39.1305],
                        [117.2035, 39.1305],
                        [117.2035, 39.1335],
                        [117.2005, 39.1335],
                        [117.2005, 39.1305],
                    ],
                ],
            },
            properties: {
                name: "样地A",
                area: 0.3,
                collector: "张三",
                images: JSON.stringify(["https://picsum.photos/id/1025/400/250"]),
                videos: JSON.stringify(["https://www.w3schools.com/html/mov_bbb.mp4"]),
                trees: JSON.stringify([
                    {
                        id: "T001",
                        species: "白蜡",
                        dbh: 18.5,
                        height: 6.2,
                        images: ["https://picsum.photos/id/1062/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                    {
                        id: "T002",
                        species: "国槐",
                        dbh: 22.1,
                        height: 7.4,
                        images: ["https://picsum.photos/id/1032/400/250"],
                        videos: [],
                    },
                ]),
            },
        },
    ],
};


export const sideTrees = {
    type: "FeatureCollection",
    features: [
        {
            type: "Feature",
            properties: { name: "四旁树1", type: "四旁树" },
            geometry: { type: "Point", coordinates: [117.183, 39.131] },
        },
        {
            type: "Feature",
            properties: { name: "四旁树2", type: "四旁树" },
            geometry: { type: "Point", coordinates: [117.185, 39.134] },
        },
    ],
};
