package Ġcom . the lg is . ge od sl . geometry . shapes Ċ Ċ import Ġcom . the lg is . ge od sl . Geo DSL Marker Ċ import Ġcom . the lg is . ge od sl . geometry . Geometry Builder Ċ import Ġcom . the lg is . ge od sl . geometry . Lat Lon Builder Ċ import Ġcom . vivid solutions . jts . geom . Geometry Ċ import Ġcom . vivid solutions . jts . io . WK T Reader Ċ Ċ @ Geo DSL Marker Ċ class ĠPolygon Builder ( ĊĠ Ġoverride Ġval Ġgeometry : ĠGeometry Ċ ): ĠGeometry Builder Ġ{ ĊĠ Ġoverride Ġval Ġshape Ġ= ĠShape . POLYGON Ċ } Ċ Ċ fun Ġpolygon ( build : ĠLat Lon Builder . () Ġ-> ĠUnit ): ĠGeometry Builder Ġ{ ĊĠ Ġval Ġlat l ons Ġ= ĠLat Lon Builder ( ArrayList ()). apply ( build ). lat l ons ĊĊĠ Ġreturn ĠPolygon Builder ( ĊĠĠĠĠĠ ĠW KT Reader (). read ( ĊĠĠĠĠĠĠĠĠĠ Ġ""" ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ| POLYGON (( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ| ${ lat l ons . join ToString Ġ{ Ġ"${ it . lat } Ġ${ it . lon }" Ġ}} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ| )) ĊĠĠĠĠĠĠĠĠĠ Ġ""" . trim Margin () ĊĠĠĠĠĠ Ġ) ĊĠ Ġ) Ċ Ċ } ĊĊĊ