function writePolygonGeometry(geometry, options) {
  let right;
  if (options) {
    right = options.rightHanded;
  }
  return {
    type: 'Polygon',
    coordinates: geometry.getCoordinates(right),
  };
}
@param {import("../geom/Polygon.js").default} geometry Geometry.
@param {import("./Feature.js").WriteOptions} [options] Write options.
@return {GeoJSONGeometry} GeoJSON geometry.