IFClite TypeScript API
    Preparing search index...

    Function isWithinWktDefinitionExtent

    • Whether a WGS84 position lies within the declared extent of validity (WKT2 USAGE/BBOX) of the WKT behind definition, widened by marginDegrees. true for any other definition or a WKT without an extent. This is the guard against a definition that parsed but means something else than its author wrote: such a model lands far outside its own area of use.

      Parameters

      • definition: string
      • lon: number
      • lat: number
      • OptionalmarginDegrees: number

      Returns boolean