Skip to content

Commit

Permalink
feat: footprint type changed from GeoJSON to Polygon (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
CL-SHLOMIKONCHA authored Oct 3, 2024
1 parent 49d922d commit 8ac43ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/raster/ingestion/zod/schemas/partData.schema.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-magic-numbers */
import { z } from 'zod';
import { zoomLevelToResolutionDeg, zoomLevelToResolutionMeter } from '@map-colonies/mc-utils';
import { GeoJSON } from 'geojson';
import { Polygon } from 'geojson';

const resolutionMeterRange = { min: zoomLevelToResolutionMeter(22), max: zoomLevelToResolutionMeter(0) };
const resolutionDegRange = { min: zoomLevelToResolutionDeg(22), max: zoomLevelToResolutionDeg(0) };
Expand Down Expand Up @@ -29,5 +29,5 @@ export const partSchema = z.object({
sensors: z.array(z.string().min(1)).min(1),
countries: z.array(z.string().min(1)).optional(),
cities: z.array(z.string().min(1)).optional(),
footprint: z.custom<GeoJSON>(),
footprint: z.custom<Polygon>(),
});

0 comments on commit 8ac43ee

Please sign in to comment.