axisOrder property

OgcAxisOrder axisOrder

The axis order, which defines how coordinates are interpreted (x,y or y,x).

Some WFS services return coordinates in (x,y) order, while others use (y,x) order. Setting this property to OgcAxisOrder.swap results in all coordinates in geometries being swapped from what was sent by the server. Setting to OgcAxisOrder.noSwap will cause coordinates to be interpreted as-is. The axis order can be changed on an already-loaded feature table, but the change will only affect future calls to WfsFeatureTable.populateFromService. Features that are already in the table will not be modified/swapped.

The default value is OgcAxisOrder.auto. In this mode, the results are optimized using heuristics from popular WFS Servers.

Implementation

OgcAxisOrder get axisOrder {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_WFSFeatureTable_getAxisOrder(
      _handle,
      errorHandler,
    );
  });
  return OgcAxisOrder._fromCoreValue(
    coreValue,
  );
}
void axisOrder=(OgcAxisOrder value)

Implementation

set axisOrder(OgcAxisOrder value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_WFSFeatureTable_setAxisOrder(
      _handle,
      value.coreValue,
      errorHandler,
    );
  });
}