ImportResult

class ImportResult(val entities: List<DrawableEntity>, val warnings: List<String>, val leftOut: Map<String, Int> = emptyMap())

What reading a GeoJSON or KML text made: the shapes it could use, a line in warnings for everything it had to leave out or guess, and in leftOut how many of each kind of thing was not imported at all (a GroundOverlay, a feature without a geometry, a ring of two points), so a host can say "3 things were not imported" without reading the lines. Things that were imported but guessed, like a colour that wasn't one, are only in warnings.

Constructors

Link copied to clipboard
constructor(entities: List<DrawableEntity>, warnings: List<String>, leftOut: Map<String, Int> = emptyMap())

Properties

Link copied to clipboard

the shapes that were read, in the order of the text.

Link copied to clipboard

how many of each kind of thing was not imported at all, by the name of its kind.

Link copied to clipboard

one line for everything that was left out or guessed.