render
fun render(source: PixelImage, rings: List<List<GeoPosition>>, fit: ImageFit, scale: Float, opacity: Float, maxDimension: Int, background: ColorRgba? = null, repeat: Boolean = false, anchorX: Float? = null, anchorY: Float? = null, extendEdges: Boolean = false, edgeSoftness: Float = 0.0f): RasterizedFill?
rings are the shape's outlines, filled with the even-odd rule — a ring inside another is a hole, so this handles multi-part shapes and shapes with holes. Returns null if there is nothing to draw: no area, or a longitude span over 180 degrees (a shape across the antimeridian would need its box split).
The result's longer side is maxDimension pixels. Its pixel grid is proportioned like the ground (a degree of longitude is shorter than a degree of latitude away from the equator), so the picture isn't stretched sideways when it is laid back over the box.