Skip to content

FeatureCollectionSchema

const FeatureCollectionSchema: ZodObject<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; features: ZodArray<ZodObject<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, "passthrough", ZodTypeAny, objectOutputType<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, ZodTypeAny, "passthrough">, objectInputType<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, ZodTypeAny, "passthrough">>, "many">; type: ZodLiteral<"FeatureCollection">; }, "passthrough", ZodTypeAny, objectOutputType<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; features: ZodArray<ZodObject<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, "passthrough", ZodTypeAny, objectOutputType<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, ZodTypeAny, "passthrough">, objectInputType<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, ZodTypeAny, "passthrough">>, "many">; type: ZodLiteral<"FeatureCollection">; }, ZodTypeAny, "passthrough">, objectInputType<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; features: ZodArray<ZodObject<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, "passthrough", ZodTypeAny, objectOutputType<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, ZodTypeAny, "passthrough">, objectInputType<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, ZodTypeAny, "passthrough">>, "many">; type: ZodLiteral<"FeatureCollection">; }, ZodTypeAny, "passthrough">>

Defined in: packages/core/src/schemas/geojson.schema.ts:223

A GeoJSON FeatureCollection: an array of FeatureSchema and optional bbox.