IFClite TypeScript API
    Preparing search index...

    Function checkCoordinateOrder

    • Test the coordinates as they are about to be written, in metres.

      Returns a warning only when the pair is implausible as written and swapping the two axes would make it plausible. Both halves matter: the first alone fires on any out-of-zone data, which is a different problem and not one this check can diagnose; the second is what makes the message's claim — that the source may be written easting-first — an inference the evidence supports.

      Parameters

      • samples: Iterable<readonly [number, number]>

        (easting, northing) metre pairs in the order they will be written to IfcCartesianPointList3D, i.e. already converted from LandXML's northing-first authored order.

      • bounds: CrsPlausibilityBounds
      • crsName: string

      Returns LandXmlIfcWarning | null