the editable site (validation-lab)

This commit is contained in:
kpgarrod committed 2026-11-21 08:03:55 +01:00
commit 3ac81d5a52
13454 files changed
+2227005

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
export declare const ValidationReasonFeatureNotPolygon = "Feature is not a Polygon";
export declare const ValidationReasonModeMismatch = "Feature mode property does not match the mode being added to";
+7
View File
@@ -0,0 +1,7 @@
import { Validation } from "../common";
import { GeoJSONStoreFeatures } from "../terra-draw";
export declare const ValidationReasonFeatureIsNotALineString = "Feature is not a LineString";
export declare const ValidationReasonFeatureHasLessThanTwoCoordinates = "Feature has less than 2 coordinates";
export declare const ValidationReasonFeatureInvalidCoordinates = "Feature has invalid coordinates";
export declare const ValidationReasonFeatureInvalidCoordinatePrecision = "Feature has coordinates with excessive precision";
export declare function ValidateLineStringFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): ReturnType<Validation>;
@@ -0,0 +1 @@
export {};
+4
View File
@@ -0,0 +1,4 @@
import { Validation } from "../common";
import { GeoJSONStoreFeatures } from "../terra-draw";
export declare const ValidationMaxAreaSquareMetersReason = "Feature is larger than the maximum area";
export declare const ValidateMaxAreaSquareMeters: (feature: GeoJSONStoreFeatures, maxSize: number) => ReturnType<Validation>;
@@ -0,0 +1 @@
export {};
+4
View File
@@ -0,0 +1,4 @@
import { Validation } from "../common";
import { GeoJSONStoreFeatures } from "../terra-draw";
export declare const ValidationReasonFeatureLessThanMinSize = "Feature is smaller than the minimum area";
export declare const ValidateMinAreaSquareMeters: (feature: GeoJSONStoreFeatures, minSize: number) => ReturnType<Validation>;
@@ -0,0 +1 @@
export {};
@@ -0,0 +1,5 @@
import { GeoJSONStoreFeatures } from "../terra-draw";
import { Validation } from "../common";
export declare const ValidationReasonFeatureNotPolygonOrLineString = "Feature is not a Polygon or LineString";
export declare const ValidationReasonFeatureSelfIntersects = "Feature intersects itself";
export declare const ValidateNotSelfIntersecting: (feature: GeoJSONStoreFeatures) => ReturnType<Validation>;
@@ -0,0 +1 @@
export {};
+6
View File
@@ -0,0 +1,6 @@
import { Validation } from "../common";
import { GeoJSONStoreFeatures } from "../terra-draw";
export declare const ValidationReasonFeatureNotPoint = "Feature is not a Point";
export declare const ValidationReasonFeatureInvalidCoordinates = "Feature has invalid coordinates";
export declare const ValidationReasonFeatureInvalidCoordinatePrecision = "Feature has coordinates with excessive precision";
export declare function ValidatePointFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): ReturnType<Validation>;
+1
View File
@@ -0,0 +1 @@
export {};
+10
View File
@@ -0,0 +1,10 @@
import { GeoJSONStoreFeatures } from "../terra-draw";
import { Validation } from "../common";
export declare const ValidationReasonFeatureNotPolygon = "Feature is not a Polygon";
export declare const ValidationReasonFeatureHasHoles = "Feature has holes";
export declare const ValidationReasonFeatureLessThanFourCoordinates = "Feature has less than 4 coordinates";
export declare const ValidationReasonFeatureHasInvalidCoordinates = "Feature has invalid coordinates";
export declare const ValidationReasonFeatureCoordinatesNotClosed = "Feature coordinates are not closed";
export declare const ValidationReasonFeatureInvalidCoordinatePrecision = "Feature has coordinates with excessive precision";
export declare function ValidatePolygonFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): ReturnType<Validation>;
export declare function ValidateNonIntersectingPolygonFeature(feature: GeoJSONStoreFeatures, coordinatePrecision: number): ReturnType<Validation>;
@@ -0,0 +1 @@
export {};