Since v1.0.0
Available on all platforms
See also

Configuration parameters

The GEO.WKT function creates a WarpScript object (GEOSHAPE) representing a geographical area. The description of the geographical area uses the Well Known Text format.

The coordinates are assumed to be in WGS 84.

A GEOSHAPE is a set of cells at various resolutions which cover (or are contained within) the specified area. The resolutions of the cells are even numbers from 2 (coarsest) to 30 (finest) with the following associated precisions at the equator:

210,000 km
42,500 km
6625 km
8156 km
1039 km
1210 km
142.5 km
16600 m
18150 m
2040 m
2210 m
242.5 m
2660 cm
2815 cm
304 cm

The exact precision is 40,000 km divided by 2**resolution.

The number of cells that a GEOSHAPE may contain is limited by the platform configuration, this limit can be modified up to the hard limit using MAXGEOCELLS.

Since 2.4.0, you can easily visualize geoshapes in WarpScript editors. See example.



// Zone in WKT 'POLYGON ((-4.574435 48.641404, -4.565680 48.641404, -4.565680 48.636101, -4.574435 48.636101, -4.574435 48.641404 ))' // Precision (10% of the bounding box diagonal) 0.1 // Consider all cells covering the area false GEO.WKT // Since 2.4.0, you can easily view GeoShapes on the map, in both vscode and Warp Studio editors. true ->GEOJSON JSON-> 'geojson' STORE // the map web component in vscode or warp studio will parse // this special object and draw the geoshapes { 'data' [ $geojson ] }