Exemplo n.º 1
0
 /**
  * @param \GEOSGeometry $geometry
  *
  * @return Geometry
  */
 private function fromGEOS(\GEOSGeometry $geometry)
 {
     if ($geometry->isEmpty()) {
         return Geometry::fromText($this->wktWriter->write($geometry), $geometry->getSRID());
     }
     if ($this->hasBinaryReadWrite) {
         return $this->ewkbReader->read($this->wkbWriter->write($geometry));
     }
     return $this->ewkbReader->read(hex2bin($this->wkbWriter->writeHEX($geometry)));
 }
 /**
  * Serialize geometries into a WKT string.
  *
  * @param Geometry $geometry
  *
  * @return string The WKT string representation of the input geometries
  */
 public function write(Geometry $geometry)
 {
     // If geos is installed, then we take a shortcut and let it write the WKT
     if (geoPHP::geosInstalled()) {
         $writer = new GEOSWKTWriter();
         return $writer->write($geometry->geos());
     }
     $type = strtolower($geometry->geometryType());
     if (is_null($data = $this->extract($geometry))) {
         return null;
     }
     return strtoupper($type) . ' (' . $data . ')';
 }
Exemplo n.º 3
0
 /**
  * Serialize geometries into a WKT string.
  *
  * @param Geometry $geometry
  *
  * @return string The WKT string representation of the input geometries
  */
 public function write(Geometry $geometry)
 {
     // If geos is installed, then we take a shortcut and let it write the WKT
     if (geoPHP::geosInstalled()) {
         $writer = new GEOSWKTWriter();
         $writer->setTrim(TRUE);
         return $writer->write($geometry->geos());
     }
     if ($geometry->isEmpty()) {
         return strtoupper($geometry->geometryType()) . ' EMPTY';
     } else {
         if ($data = $this->extractData($geometry)) {
             return strtoupper($geometry->geometryType()) . ' (' . $data . ')';
         }
     }
 }
Exemplo n.º 4
0
 public function testWKBReader_readHEX()
 {
     $reader = new GEOSWKBReader();
     $writer = new GEOSWKTWriter();
     $writer->setTrim(TRUE);
     $writer->setOutputDimension(3);
     // 2D LITTLE endian
     $g = $reader->readHEX('010100000000000000000018400000000000001C40');
     $this->assertEquals('POINT (6 7)', $writer->write($g));
     $this->assertEquals(0, $g->getSRID());
     // 2D BIG endian
     $g = $reader->readHEX('00000000014018000000000000401C000000000000');
     $this->assertEquals('POINT (6 7)', $writer->write($g));
     $this->assertEquals(0, $g->getSRID());
     // 2D LITTLE endian + SRID
     $g = $reader->readHEX('01010000202B00000000000000000018400000000000001C40');
     $this->assertEquals('POINT (6 7)', $writer->write($g));
     $this->assertEquals(43, $g->getSRID());
     // 2D BIG endian + SRID
     $g = $reader->readHEX('00200000010000002B4018000000000000401C000000000000');
     $this->assertEquals('POINT (6 7)', $writer->write($g));
     $this->assertEquals(43, $g->getSRID());
     // 3D LITTLE endian
     $g = $reader->readHEX('010100008000000000000018400000000000001C400000000000002040');
     $this->assertEquals('POINT Z (6 7 8)', $writer->write($g));
     $this->assertEquals(0, $g->getSRID());
     // 3D BIG endian
     $g = $reader->readHEX('00800000014018000000000000401C0000000000004020000000000000');
     $this->assertEquals('POINT Z (6 7 8)', $writer->write($g));
     $this->assertEquals(0, $g->getSRID());
     // 3D BIG endian + SRID
     $g = $reader->readHEX('00A0000001000000354018000000000000401C0000000000004020000000000000');
     $this->assertEquals('POINT Z (6 7 8)', $writer->write($g));
     $this->assertEquals(53, $g->getSRID());
 }
Exemplo n.º 5
0
    return $region;
    die;
    $region = Region::whereTranslation('name', 'Canterbury/ Waipara Valley')->first();
    Illuminate\Database\Eloquent\Model::unguard();
    makeChild($region, 'Waipara Valley', 8, $region->country_id);
    makeChild($region, 'Canterbury Plains', 8, $region->country_id);
    makeChild($region, 'Waitaki Valley', 8, $region->country_id);
});
function makeChild($parent, $name, $depth, $country_id)
{
    $child = Region::create(['en' => ['name' => $name], 'region_type_id' => $depth, 'country_id' => $country_id]);
    $child->makeLastChildOf($parent);
}
Route::get('/test/geos', function () {
    $reader = new GEOSWKTReader();
    $writer = new GEOSWKTWriter();
    $currencyCreek = $reader->read('POLYGON((138.719142 -35.438554,138.718582 -35.439384,138.718536 -35.442047,138.717682 -35.44236,138.715622 -35.442272,138.713638 -35.444641,138.713028 -35.447018,138.71022 -35.451248,138.706711 -35.450974,138.702698 -35.449287,138.698044 -35.451374,138.694809 -35.453087,138.693619 -35.454556,138.692459 -35.45507,138.69104 -35.456463,138.689667 -35.456036,138.687881 -35.456493,138.68631 -35.458286,138.686508 -35.460491,138.68602 -35.46133,138.68454 -35.462414,138.681229 -35.462036,138.680589 -35.462491,138.678314 -35.464111,138.67453 -35.465977,138.674072 -35.468006,138.673248 -35.469357,138.670822 -35.471256,138.668915 -35.479073,138.668533 -35.479156,138.664444 -35.477322,138.661606 -35.474834,138.661301 -35.476376,138.659775 -35.478825,138.658691 -35.486233,138.657013 -35.488571,138.656082 -35.492741,138.655945 -35.495995,138.656296 -35.497562,138.660034 -35.499138,138.662964 -35.49979,138.666565 -35.50338,138.668671 -35.504581,138.669678 -35.505726,138.668152 -35.507774,138.66774 -35.509228,138.667831 -35.511475,138.66655 -35.51339,138.666046 -35.515152,138.666748 -35.515686,138.670776 -35.516792,138.671692 -35.516514,138.673218 -35.522007,138.675491 -35.532158,138.676544 -35.53759,138.677719 -35.538643,138.678986 -35.538116,138.679901 -35.539318,138.681198 -35.538849,138.682999 -35.53936,138.684692 -35.538467,138.684937 -35.537933,138.683273 -35.536804,138.682831 -35.535286,138.68515 -35.533943,138.687927 -35.53437,138.688675 -35.535046,138.690308 -35.533169,138.691254 -35.532593,138.691528 -35.531204,138.693756 -35.529827,138.694107 -35.529144,138.693558 -35.528313,138.692078 -35.528564,138.691269 -35.527317,138.691589 -35.524338,138.692032 -35.523666,138.697052 -35.519768,138.698914 -35.518822,138.701355 -35.518604,138.702988 -35.517864,138.705627 -35.516167,138.707275 -35.516113,138.707825 -35.515675,138.709869 -35.515118,138.713257 -35.515255,138.716782 -35.515045,138.719142 -35.515378,138.722702 -35.515881,138.727142 -35.516659,138.732468 -35.516972,138.738037 -35.517426,138.741425 -35.518353,138.753067 -35.520699,138.756058 -35.520973,138.762024 -35.521885,138.76445 -35.52264,138.769409 -35.523643,138.773315 -35.524628,138.777908 -35.526123,138.781906 -35.527107,138.784531 -35.527588,138.788254 -35.528664,138.79184 -35.529976,138.793427 -35.5303,138.798676 -35.531937,138.799789 -35.532452,138.803375 -35.533535,138.804611 -35.533707,138.809708 -35.535721,138.813507 -35.53706,138.815491 -35.537376,138.817322 -35.538376,138.821518 -35.539421,138.825226 -35.540829,138.829269 -35.541744,138.832169 -35.543201,138.833984 -35.543884,138.835983 -35.544762,138.838501 -35.54549,138.840439 -35.546196,138.841599 -35.546894,138.843842 -35.547577,138.84668 -35.548759,138.850861 -35.549999,138.858551 -35.553066,138.862015 -35.554588,138.864746 -35.555447,138.868561 -35.557018,138.87001 -35.557316,138.875275 -35.559067,138.876465 -35.559673,138.879379 -35.558964,138.88591 -35.558327,138.89444 -35.556938,138.898193 -35.556511,138.904007 -35.557064,138.906998 -35.5578,138.911743 -35.55957,138.915985 -35.562336,138.919098 -35.561974,138.921844 -35.560524,138.923889 -35.559807,138.924652 -35.559952,138.926285 -35.561134,138.926834 -35.562103,138.928452 -35.56316,138.930222 -35.563416,138.931885 -35.562317,138.933029 -35.56041,138.933289 -35.558506,138.934021 -35.557262,138.935928 -35.556347,138.938446 -35.556702,138.941559 -35.557404,138.943375 -35.556728,138.946182 -35.55447,138.948441 -35.55365,138.950653 -35.553265,138.952255 -35.552612,138.956085 -35.550591,138.961441 -35.546871,138.964355 -35.544346,138.964798 -35.543316,138.965378 -35.539742,138.965103 -35.537754,138.965469 -35.536102,138.964996 -35.534229,138.965302 -35.531445,138.965744 -35.530552,138.970367 -35.526459,138.975677 -35.522896,138.97789 -35.521263,138.980164 -35.520134,138.982681 -35.520302,138.983673 -35.520863,138.98613 -35.521618,138.988403 -35.520969,138.98967 -35.518387,138.990967 -35.517696,138.994598 -35.517281,138.997772 -35.516685,139.000107 -35.515602,139.000595 -35.514679,139.001678 -35.514324,139.004822 -35.514046,139.00618 -35.514133,139.008484 -35.515003,139.009949 -35.51609,139.010941 -35.516285,139.013367 -35.515896,139.01535 -35.516575,139.018906 -35.515488,139.019592 -35.514225,139.020706 -35.513691,139.022461 -35.513416,139.023575 -35.513626,139.025558 -35.514603,139.027756 -35.515125,139.030182 -35.514931,139.032043 -35.514484,139.033401 -35.51376,139.035889 -35.510719,139.037827 -35.509174,139.039429 -35.506962,139.042297 -35.504913,139.042847 -35.504059,139.044983 -35.503101,139.044998 -35.50214,139.041428 -35.499607,139.039062 -35.498955,139.037399 -35.497707,139.035202 -35.497852,139.029724 -35.49791,139.026489 -35.496262,139.025589 -35.49688,139.023621 -35.496719,139.019852 -35.494614,139.019135 -35.494789,139.016617 -35.493793,139.015625 -35.494205,139.013 -35.492771,139.012161 -35.492588,139.010971 -35.491367,139.010574 -35.489017,139.005829 -35.487213,139.003448 -35.487183,139.001892 -35.488407,138.99939 -35.488537,138.997437 -35.489082,138.992523 -35.489914,138.987228 -35.491558,138.986023 -35.491123,138.983353 -35.489521,138.983017 -35.488888,138.98056 -35.486691,138.979691 -35.484768,138.979279 -35.483078,138.977722 -35.483215,138.97612 -35.482906,138.974564 -35.484417,138.972992 -35.48476,138.972351 -35.484055,138.972137 -35.482666,138.970886 -35.483139,138.969772 -35.481628,138.968414 -35.481617,138.966644 -35.480789,138.96376 -35.477989,138.962402 -35.477142,138.958344 -35.475128,138.957626 -35.475361,138.956161 -35.474583,138.955673 -35.472904,138.955948 -35.471001,138.95694 -35.469463,138.956604 -35.468449,138.953918 -35.466663,138.953339 -35.463539,138.953644 -35.462692,138.953308 -35.461658,138.954483 -35.46043,138.955902 -35.459579,138.955795 -35.457859,138.957962 -35.457016,138.958313 -35.457478,138.960999 -35.457005,138.962463 -35.456398,138.963165 -35.455418,138.961197 -35.455448,138.959824 -35.455814,138.954834 -35.456234,138.953552 -35.456085,138.952713 -35.45686,138.951965 -35.455502,138.950302 -35.454548,138.949554 -35.451801,138.951584 -35.448746,138.951981 -35.447636,138.952667 -35.447628,138.954742 -35.444675,138.956741 -35.444508,138.956055 -35.443676,138.956909 -35.442604,138.957855 -35.442314,138.957947 -35.439781,138.958923 -35.437943,138.959045 -35.436958,138.960632 -35.435867,138.961533 -35.434406,138.960999 -35.43367,138.961243 -35.432858,138.962753 -35.431595,138.96286 -35.430599,138.964005 -35.4296,138.96489 -35.42979,138.964172 -35.431171,138.964752 -35.431557,138.96553 -35.429886,138.964905 -35.42886,138.965179 -35.426971,138.966049 -35.426346,138.966721 -35.423279,138.968109 -35.422501,138.968826 -35.421196,138.967957 -35.420135,138.969498 -35.417225,138.971283 -35.416252,138.971405 -35.415321,138.970352 -35.41489,138.970337 -35.412621,138.9711 -35.411709,138.972031 -35.411751,138.973007 -35.409855,138.974243 -35.409153,138.975372 -35.407822,138.975388 -35.406548,138.976959 -35.406181,138.971588 -35.399857,138.963745 -35.404186,138.956665 -35.396618,138.954407 -35.397404,138.953033 -35.397427,138.945084 -35.396034,138.941559 -35.3955,138.917358 -35.391388,138.906738 -35.389664,138.865585 -35.382549,138.861862 -35.382576,138.846695 -35.383614,138.841766 -35.38409,138.832245 -35.384155,138.83255 -35.383503,138.832428 -35.378342,138.833115 -35.377911,138.833817 -35.372124,138.833893 -35.368847,138.809814 -35.367016,138.804703 -35.359604,138.803879 -35.359482,138.802505 -35.358059,138.802307 -35.356808,138.799133 -35.356838,138.795547 -35.356491,138.792511 -35.355824,138.789841 -35.354507,138.789032 -35.353504,138.785461 -35.352077,138.783997 -35.351822,138.782333 -35.350903,138.781036 -35.348969,138.775452 -35.348682,138.774643 -35.348389,138.773804 -35.347443,138.773315 -35.343792,138.772339 -35.342892,138.768311 -35.342091,138.767303 -35.342197,138.762787 -35.340038,138.761368 -35.340405,138.757599 -35.340401,138.756409 -35.34079,138.751862 -35.338531,138.750381 -35.336971,138.749893 -35.335285,138.748505 -35.333675,138.747589 -35.336178,138.746597 -35.336838,138.744095 -35.337875,138.743088 -35.338623,138.741653 -35.341484,138.741013 -35.343227,138.738678 -35.346264,138.735916 -35.348942,138.733337 -35.35281,138.733749 -35.35471,138.737518 -35.36013,138.738403 -35.362499,138.739502 -35.366261,138.739792 -35.369129,138.740997 -35.371483,138.742081 -35.375221,138.743378 -35.380707,138.744659 -35.382828,138.746033 -35.386585,138.746048 -35.388317,138.745361 -35.389034,138.73999 -35.390545,138.734222 -35.392048,138.732437 -35.392998,138.727829 -35.396095,138.726395 -35.397671,138.725845 -35.399048,138.725967 -35.400806,138.727112 -35.401955,138.727249 -35.40807,138.727158 -35.4095,138.722519 -35.420898,138.721481 -35.423744,138.721909 -35.426815,138.721924 -35.430336,138.720123 -35.43391,138.719223 -35.438435,138.719142 -35.438554))');
    // $kangarooIsland = $reader->read('POLYGON((136.705161 -36.048421,136.705231 -36.052345,136.695435 -36.060875,136.702148 -36.065968,136.70752 -36.059624,136.716568 -36.060059,136.717928 -36.054143,136.718002 -36.053822,136.724548 -36.048592,136.732925 -36.046524,136.746536 -36.047745,136.755478 -36.052082,136.765976 -36.046967,136.771057 -36.047054,136.772186 -36.040596,136.778473 -36.035831,136.784653 -36.034966,136.792053 -36.036591,136.809052 -36.037712,136.814774 -36.039612,136.824188 -36.035439,136.827835 -36.028679,136.836288 -36.028206,136.839722 -36.022831,136.850677 -36.021824,136.852859 -36.019928,136.891327 -36.034405,136.905899 -36.044762,136.91806 -36.04509,136.922958 -36.041271,136.927185 -36.04092,136.92955 -36.036949,136.940277 -36.030891,136.948532 -36.032482,136.955475 -36.02998,136.982391 -36.025959,136.993561 -36.023327,136.996292 -36.021408,137.002594 -36.023514,137.015564 -36.023121,137.02655 -36.028751,137.043518 -36.029381,137.054565 -36.024452,137.072052 -36.023914,137.091965 -36.027428,137.098831 -36.023312,137.105026 -36.022892,137.12027 -36.029068,137.124466 -36.033985,137.132111 -36.034435,137.139359 -36.026634,137.143768 -36.024662,137.157364 -36.025608,137.17012 -36.014877,137.17514 -36.013802,137.177109 -36.007774,137.188568 -35.999836,137.181442 -35.998226,137.177734 -35.991688,137.184067 -35.982769,137.202164 -35.9776,137.218506 -35.977306,137.236618 -35.984295,137.249664 -35.98571,137.2547 -35.984631,137.262451 -35.987362,137.272705 -35.99506,137.280807 -35.99342,137.300842 -35.99345,137.304642 -35.996082,137.317688 -35.997257,137.32373 -35.999584,137.332001 -35.99564,137.350647 -35.99617,137.359055 -36.000481,137.369186 -36.000141,137.372742 -36.003235,137.37088 -36.011101,137.37793 -36.011093,137.38028 -36.01836,137.392532 -36.025982,137.404648 -36.036591,137.406006 -36.040905,137.410751 -36.039825,137.44904 -36.066713,137.449722 -36.067192,137.457016 -36.077042,137.459595 -36.077644,137.472687 -36.068707,137.47998 -36.067768,137.481125 -36.062679,137.485992 -36.058609,137.501785 -36.058296,137.517517 -36.040543,137.520584 -36.039974,137.53801 -36.027668,137.566971 -36.025509,137.585403 -36.021877,137.592606 -36.01405,137.599014 -36.012447,137.60379 -36.006771,137.604752 -35.998474,137.613113 -35.991295,137.611664 -35.985378,137.615555 -35.979042,137.60762 -35.973354,137.59819 -35.960606,137.594696 -35.942829,137.595703 -35.935448,137.610886 -35.913795,137.639786 -35.895554,137.651627 -35.890541,137.670502 -35.885273,137.70546 -35.880341,137.723434 -35.879227,137.727768 -35.870808,137.73259 -35.866272,137.730621 -35.861523,137.733536 -35.857971,137.741577 -35.855614,137.750641 -35.856659,137.755859 -35.854172,137.785004 -35.856312,137.791977 -35.855137,137.795731 -35.856834,137.800415 -35.855053,137.816208 -35.855156,137.826843 -35.858894,137.844742 -35.861439,137.865051 -35.866875,137.87001 -35.874722,137.877762 -35.872364,137.881516 -35.869011,137.891434 -35.869781,137.904922 -35.864452,137.913651 -35.864349,137.932755 -35.867985,137.958954 -35.877541,137.971451 -35.883949,137.97229 -35.888737,137.979904 -35.888905,137.999435 -35.895035,138.010284 -35.901962,138.019775 -35.905266,138.040771 -35.907433,138.052368 -35.898487,138.063614 -35.883812,138.068085 -35.883179,138.086533 -35.866611,138.096924 -35.861378,138.109024 -35.851719,138.113556 -35.851997,138.119583 -35.849232,138.125595 -35.85083,138.131424 -35.844631,138.124817 -35.842598,138.12027 -35.837269,138.12027 -35.832447,138.116302 -35.827553,138.115372 -35.821392,138.121719 -35.809891,138.12059 -35.805115,138.115601 -35.811283,138.101868 -35.812286,138.088989 -35.808891,138.074509 -35.802116,138.062973 -35.788105,138.063705 -35.767418,138.061096 -35.761551,138.051346 -35.75367,138.045578 -35.751369,138.039581 -35.745174,138.031174 -35.745735,138.018204 -35.740501,138.008789 -35.733521,137.998413 -35.729332,137.967941 -35.722931,137.957077 -35.724728,137.940109 -35.723312,137.937637 -35.719505,137.913651 -35.722946,137.90419 -35.71986,137.898376 -35.721458,137.891159 -35.727932,137.887772 -35.762032,137.869202 -35.776966,137.862961 -35.780872,137.851715 -35.795986,137.846008 -35.799644,137.828949 -35.801659,137.827682 -35.80423,137.806412 -35.801579,137.777573 -35.789333,137.774185 -35.788998,137.774673 -35.797703,137.772568 -35.800533,137.759979 -35.801914,137.754486 -35.809464,137.759628 -35.81065,137.763 -35.815578,137.769272 -35.816952,137.771301 -35.812977,137.778748 -35.815228,137.796127 -35.813896,137.803635 -35.817062,137.809601 -35.823036,137.80986 -35.827618,137.803848 -35.826004,137.801605 -35.831139,137.793747 -35.836479,137.789566 -35.837322,137.78067 -35.834438,137.767349 -35.827812,137.760132 -35.834965,137.76178 -35.839035,137.760208 -35.846436,137.75119 -35.84631,137.746063 -35.835018,137.748611 -35.830338,137.744232 -35.827511,137.741364 -35.816372,137.741943 -35.806709,137.747498 -35.800308,137.758362 -35.793022,137.767319 -35.792236,137.768036 -35.784863,137.770935 -35.781315,137.777512 -35.778088,137.787643 -35.76807,137.797455 -35.762428,137.798935 -35.758701,137.795181 -35.751953,137.789871 -35.747791,137.788055 -35.740284,137.782562 -35.737732,137.778763 -35.730297,137.768158 -35.726555,137.76033 -35.727531,137.742477 -35.735302,137.731674 -35.738224,137.716782 -35.738537,137.704849 -35.741493,137.666962 -35.743324,137.648804 -35.740532,137.625427 -35.734711,137.609589 -35.738258,137.594177 -35.739494,137.586182 -35.737251,137.575378 -35.729828,137.573196 -35.725773,137.576843 -35.720364,137.571686 -35.718483,137.588547 -35.702511,137.598404 -35.6978,137.601212 -35.692421,137.598404 -35.687241,137.612473 -35.671822,137.623627 -35.665001,137.629196 -35.664112,137.636826 -35.659477,137.63887 -35.655735,137.63649 -35.642963,137.632339 -35.64426,137.622406 -35.642319,137.616043 -35.638874,137.584091 -35.645744,137.574677 -35.643093,137.572205 -35.638821,137.566742 -35.636486,137.564224 -35.626247,137.573669 -35.61375,137.587418 -35.602936,137.60318 -35.593197,137.611267 -35.591991,137.616379 -35.593185,137.623642 -35.597748,137.626511 -35.593513,137.626465 -35.576988,137.630325 -35.570656,137.629578 -35.567238,137.61734 -35.564003,137.605179 -35.572697,137.595627 -35.572578,137.586319 -35.566711,137.583145 -35.570267,137.575699 -35.572594,137.562576 -35.573975,137.553879 -35.579559,137.547516 -35.586437,137.532181 -35.593861,137.521133 -35.597229,137.507919 -35.597,137.498749 -35.588139,137.488068 -35.582539,137.482452 -35.582504,137.474396 -35.589436,137.464035 -35.590023,137.44904 -35.596063,137.442856 -35.598553,137.410446 -35.590702,137.379364 -35.592213,137.371857 -35.588104,137.349442 -35.589085,137.34024 -35.584801,137.317856 -35.580723,137.309494 -35.581688,137.300369 -35.590252,137.279877 -35.601482,137.268539 -35.605068,137.258316 -35.602646,137.23941 -35.606705,137.21843 -35.619545,137.209717 -35.619598,137.204086 -35.625057,137.182739 -35.625053,137.177063 -35.629364,137.164078 -35.633907,137.153595 -35.631947,137.141815 -35.63232,137.133484 -35.640156,137.125778 -35.643612,137.117325 -35.654892,137.095444 -35.661541,137.072357 -35.666393,137.068665 -35.671555,137.047256 -35.67038,137.039505 -35.672913,137.027145 -35.673065,137.013809 -35.676453,137.003143 -35.676552,136.996048 -35.674931,136.939423 -35.678242,136.890839 -35.691158,136.872833 -35.691002,136.866409 -35.691875,136.860687 -35.695946,136.848282 -35.694931,136.839142 -35.698177,136.825699 -35.699028,136.820465 -35.701473,136.810913 -35.701519,136.803726 -35.70425,136.784561 -35.703423,136.780151 -35.705383,136.776627 -35.714893,136.763626 -35.719624,136.754623 -35.726074,136.743408 -35.72662,136.738281 -35.725159,136.730743 -35.726288,136.718002 -35.72435,136.715652 -35.728775,136.701462 -35.738811,136.690689 -35.743469,136.669525 -35.748184,136.645645 -35.748844,136.63562 -35.751183,136.615555 -35.748974,136.601807 -35.749805,136.592926 -35.752571,136.586166 -35.752293,136.579437 -35.759586,136.577164 -35.765842,136.572495 -35.768723,136.577866 -35.796795,136.576614 -35.800732,136.571381 -35.803394,136.569931 -35.80917,136.565048 -35.813889,136.56633 -35.824638,136.559311 -35.831707,136.558884 -35.835159,136.562302 -35.843098,136.56282 -35.849049,136.560806 -35.854839,136.556442 -35.858398,136.542175 -35.860611,136.539169 -35.862755,136.537491 -35.869911,136.531662 -35.879242,136.534271 -35.888123,136.546951 -35.888245,136.549026 -35.890713,136.542984 -35.894547,136.538498 -35.902004,136.546463 -35.903629,136.550232 -35.906281,136.553024 -35.912861,136.561386 -35.917458,136.57843 -35.934208,136.578674 -35.954163,136.589996 -35.955235,136.594284 -35.963608,136.598541 -35.96418,136.617432 -35.957249,136.625061 -35.9575,136.628143 -35.964069,136.63913 -35.963768,136.643478 -35.966633,136.653152 -35.968662,136.654724 -35.97229,136.684738 -36.001747,136.687958 -36.011066,136.704941 -36.036194,136.705161 -36.048421))');
    // $langhorneCreek = $reader->read('POLYGON((139.149893 -35.363356,139.153549 -35.305645,139.14856 -35.305935,139.135986 -35.310265,139.130188 -35.299015,139.111313 -35.295326,139.064941 -35.278629,139.064941 -35.258862,139.041312 -35.258937,139.040909 -35.258938,139.028351 -35.263241,139.0224 -35.258617,139.007217 -35.249882,139.004135 -35.247787,139.000015 -35.243885,138.993881 -35.239613,138.98912 -35.235722,138.988831 -35.235603,138.987534 -35.236526,138.986954 -35.236374,138.986359 -35.236275,138.981308 -35.235764,138.982437 -35.237476,138.984879 -35.242275,138.977509 -35.244835,138.97699 -35.245647,138.977295 -35.246075,138.977371 -35.246571,138.977676 -35.247009,138.979507 -35.247105,138.979935 -35.247456,138.97963 -35.247879,138.979034 -35.248001,138.978424 -35.248055,138.977859 -35.248199,138.976868 -35.247616,138.976303 -35.247807,138.975769 -35.248055,138.975555 -35.248528,138.975693 -35.249012,138.975708 -35.249519,138.975281 -35.25,138.975037 -35.250561,138.974487 -35.250797,138.973892 -35.250813,138.972778 -35.250435,138.972183 -35.25029,138.971375 -35.25,138.970032 -35.249619,138.969803 -35.249668,138.969955 -35.25,138.969894 -35.250065,138.96994 -35.250751,138.969818 -35.251503,138.969971 -35.251869,138.970123 -35.252022,138.9702 -35.252388,138.970901 -35.253319,138.971268 -35.253742,138.97142 -35.254341,138.971634 -35.25457,138.97142 -35.255119,138.97139 -35.255405,138.97113 -35.256077,138.970932 -35.25634,138.97049 -35.256588,138.970581 -35.257057,138.970444 -35.257343,138.969894 -35.257729,138.969162 -35.258068,138.968582 -35.258469,138.967834 -35.258701,138.967331 -35.258942,138.96701 -35.259155,138.966599 -35.259747,138.966553 -35.260254,138.966217 -35.260674,138.965668 -35.261059,138.965271 -35.261227,138.964935 -35.261627,138.96431 -35.261921,138.964111 -35.262161,138.964111 -35.262447,138.964249 -35.262791,138.963913 -35.263096,138.963898 -35.263908,138.963852 -35.264183,138.963287 -35.264938,138.96257 -35.264874,138.962219 -35.264942,138.962051 -35.265102,138.962021 -35.265388,138.962509 -35.266281,138.962799 -35.266617,138.962906 -35.266914,138.963257 -35.26741,138.963425 -35.267548,138.963043 -35.268036,138.962784 -35.268047,138.962143 -35.268444,138.96167 -35.268509,138.961166 -35.268806,138.960953 -35.269146,138.961166 -35.269482,138.961533 -35.269676,138.961838 -35.27,138.9617 -35.269978,138.962051 -35.270573,138.962357 -35.270996,138.962326 -35.271282,138.962143 -35.271545,138.961624 -35.271839,138.961288 -35.272251,138.961075 -35.272354,138.960724 -35.272339,138.960403 -35.272488,138.959732 -35.272919,138.959183 -35.273098,138.958923 -35.273621,138.958664 -35.273838,138.958633 -35.274227,138.958923 -35.27462,138.958801 -35.275181,138.958618 -35.275417,138.958481 -35.275887,138.958389 -35.275944,138.95813 -35.27647,138.958084 -35.276821,138.957169 -35.277241,138.956818 -35.277515,138.955795 -35.278137,138.955078 -35.278191,138.954498 -35.278164,138.954086 -35.27837,138.953384 -35.278332,138.953217 -35.278488,138.952789 -35.27866,138.952652 -35.278919,138.952637 -35.279217,138.952759 -35.279495,138.953186 -35.279713,138.953522 -35.280117,138.953644 -35.280781,138.954178 -35.281197,138.954575 -35.281578,138.954987 -35.281853,138.95517 -35.282131,138.955505 -35.282257,138.956085 -35.282352,138.956757 -35.28278,138.957138 -35.283092,138.957718 -35.283257,138.958115 -35.283749,138.958527 -35.283924,138.959747 -35.284859,138.960175 -35.285034,138.96077 -35.285118,138.961182 -35.285477,138.961151 -35.285851,138.96077 -35.285851,138.960236 -35.285652,138.960052 -35.285103,138.959 -35.284649,138.95842 -35.284542,138.958298 -35.284599,138.957626 -35.284435,138.956711 -35.283981,138.956131 -35.283993,138.955892 -35.283948,138.955688 -35.283909,138.954697 -35.283924,138.95401 -35.283817,138.953247 -35.283493,138.952026 -35.283108,138.951309 -35.283001,138.950912 -35.282619,138.949966 -35.282558,138.9487 -35.282219,138.948517 -35.281952,138.947205 -35.281853,138.946854 -35.281635,138.946487 -35.28186,138.946457 -35.282169,138.946655 -35.282642,138.946884 -35.282997,138.947586 -35.283482,138.947815 -35.28344,138.94809 -35.283623,138.948257 -35.283989,138.948837 -35.28484,138.948853 -35.285034,138.949295 -35.285931,138.949234 -35.286102,138.948608 -35.28651,138.947693 -35.286415,138.947327 -35.286434,138.946655 -35.286236,138.944901 -35.285973,138.943909 -35.285797,138.943573 -35.285679,138.942566 -35.285458,138.942078 -35.285454,138.941818 -35.285259,138.940994 -35.284885,138.94043 -35.284687,138.939865 -35.284786,138.938995 -35.284496,138.938492 -35.284046,138.938171 -35.283966,138.937454 -35.284019,138.93689 -35.283878,138.936249 -35.283875,138.935791 -35.283779,138.934753 -35.283337,138.934143 -35.283298,138.93364 -35.282875,138.933701 -35.282509,138.933563 -35.282356,138.933228 -35.282253,138.932999 -35.281933,138.9328 -35.281448,138.932419 -35.281254,138.931656 -35.281452,138.931183 -35.281441,138.940704 -35.289433,138.942398 -35.292065,138.944794 -35.29966,138.950455 -35.306347,138.953934 -35.313744,138.95726 -35.316227,138.961823 -35.317745,138.966782 -35.321602,138.965851 -35.336205,138.964676 -35.339523,138.96199 -35.385887,138.963623 -35.388535,138.971329 -35.399559,138.976059 -35.405006,138.976654 -35.405411,138.978226 -35.406853,138.982422 -35.405373,138.998032 -35.401424,139 -35.401031,139.00119 -35.400627,139.003006 -35.40036,139.005417 -35.400028,139.006592 -35.399746,139.008408 -35.399467,139.010208 -35.399143,139.012039 -35.398911,139.013855 -35.398769,139.016296 -35.398479,139.018127 -35.398396,139.018753 -35.398319,139.021057 -35.3978,139.022232 -35.397495,139.022797 -35.397316,139.023407 -35.397205,139.025162 -35.396694,139.025772 -35.396675,139.026352 -35.396553,139.026917 -35.396358,139.028122 -35.396229,139.029236 -35.395794,139.0298 -35.395626,139.030426 -35.39571,139.031021 -35.39563,139.033417 -35.395081,139.033966 -35.394863,139.035156 -35.394642,139.035721 -35.394482,139.03685 -35.394108,139.03746 -35.3941,139.038651 -35.393898,139.039795 -35.39357,139.040985 -35.393356,139.041312 -35.393346,139.041595 -35.393337,139.042801 -35.393181,139.044601 -35.393063,139.045227 -35.392952,139.049652 -35.392445,139.050858 -35.392265,139.052338 -35.392284,139.053543 -35.392426,139.055389 -35.39217,139.05661 -35.392052,139.05957 -35.39212,139.060104 -35.392353,139.060715 -35.392414,139.063095 -35.392986,139.064331 -35.393116,139.065567 -35.393089,139.066772 -35.392933,139.067368 -35.393051,139.067963 -35.392948,139.068573 -35.392918,139.069778 -35.393063,139.070969 -35.39325,139.072159 -35.393246,139.072769 -35.393188,139.073364 -35.393272,139.073944 -35.393448,139.075165 -35.39352,139.07637 -35.393356,139.077576 -35.393246,139.078171 -35.393257,139.079361 -35.393482,139.079987 -35.393475,139.080582 -35.393387,139.082397 -35.393223,139.082993 -35.3932,139.084198 -35.393345,139.085373 -35.393623,139.085938 -35.393822,139.087128 -35.394058,139.087723 -35.394081,139.088928 -35.39402,139.089508 -35.393871,139.090591 -35.393383,139.091141 -35.393169,139.092346 -35.393082,139.092941 -35.393188,139.094162 -35.39325,139.095337 -35.393532,139.095963 -35.393639,139.096558 -35.393661,139.097046 -35.393379,139.097366 -35.392933,139.09819 -35.391605,139.098648 -35.391239,139.099136 -35.390942,139.099716 -35.390774,139.100922 -35.390652,139.101501 -35.390804,139.10202 -35.391071,139.102631 -35.391048,139.103226 -35.390926,139.103714 -35.390617,139.104507 -35.389877,139.105423 -35.389191,139.105972 -35.388931,139.106567 -35.388798,139.107773 -35.388664,139.108994 -35.388691,139.110153 -35.388996,139.110748 -35.389023,139.111328 -35.388874,139.112259 -35.388226,139.112747 -35.387917,139.113281 -35.387676,139.113846 -35.387486,139.114441 -35.387432,139.115082 -35.387535,139.115677 -35.387619,139.116287 -35.38768,139.116882 -35.387627,139.117493 -35.387501,139.118057 -35.387356,139.118484 -35.387001,139.118591 -35.386509,139.118759 -35.386028,139.118851 -35.385532,139.11911 -35.385078,139.119537 -35.384712,139.12001 -35.384392,139.12117 -35.384041,139.12178 -35.38393,139.122986 -35.383762,139.123581 -35.383869,139.12558 -35.384003,139.126785 -35.383953,139.127441 -35.38385,139.128067 -35.383705,139.128662 -35.383499,139.128967 -35.38308,139.129181 -35.382549,139.12999 -35.381763,139.1315 -35.380943,139.132065 -35.38073,139.13269 -35.380661,139.134506 -35.380589,139.135147 -35.380524,139.135666 -35.380276,139.136108 -35.379932,139.136505 -35.379543,139.137436 -35.378872,139.13797 -35.378609,139.139709 -35.378204,139.140335 -35.378105,139.140945 -35.378071,139.141495 -35.377811,139.141998 -35.377502,139.142593 -35.377346,139.143188 -35.3773,139.143799 -35.377384,139.144394 -35.377571,139.146133 -35.378025,139.146759 -35.377983,139.146957 -35.377491,139.147324 -35.37709,139.147919 -35.376842,139.148514 -35.376717,139.149048 -35.376686,139.149893 -35.363356))');
    // $mclarenVale = $reader->read('POLYGON((138.559555 -35.055931,138.558319 -35.056156,138.55806 -35.055012,138.54866 -35.055229,138.5448 -35.055538,138.538422 -35.055668,138.5336 -35.056118,138.533997 -35.060192,138.530121 -35.06049,138.525009 -35.062019,138.525055 -35.063129,138.520248 -35.063545,138.515106 -35.063602,138.511261 -35.063999,138.509293 -35.065765,138.507462 -35.066715,138.503693 -35.069508,138.50032 -35.06995,138.496872 -35.06982,138.495682 -35.073444,138.496094 -35.075932,138.495773 -35.080101,138.493454 -35.084248,138.486487 -35.089878,138.482956 -35.092731,138.480988 -35.094784,138.478653 -35.098278,138.476883 -35.100445,138.4758 -35.102966,138.472748 -35.107655,138.472214 -35.109634,138.47113 -35.111664,138.470337 -35.114403,138.470291 -35.115673,138.468536 -35.118309,138.468094 -35.121044,138.468719 -35.125504,138.469254 -35.12714,138.469116 -35.128433,138.469559 -35.130733,138.468857 -35.135262,138.468964 -35.13755,138.470001 -35.140079,138.469345 -35.141228,138.466721 -35.144241,138.466675 -35.147644,138.468094 -35.149818,138.468475 -35.151157,138.468796 -35.156944,138.469788 -35.161629,138.469604 -35.164753,138.466125 -35.167023,138.465729 -35.168835,138.465607 -35.172226,138.466171 -35.176414,138.467819 -35.18119,138.467148 -35.183826,138.467102 -35.185589,138.469009 -35.190273,138.470276 -35.196983,138.470917 -35.201233,138.470673 -35.206169,138.470963 -35.208015,138.470673 -35.21114,138.468292 -35.21851,138.467758 -35.219357,138.46904 -35.22411,138.470001 -35.230431,138.470245 -35.233845,138.470261 -35.241253,138.469482 -35.242973,138.468033 -35.244877,138.466736 -35.245461,138.46225 -35.245396,138.461868 -35.247009,138.462341 -35.249153,138.4617 -35.250675,138.460892 -35.256844,138.46106 -35.258495,138.46022 -35.26125,138.458679 -35.26342,138.454865 -35.266045,138.449844 -35.269836,138.444885 -35.271004,138.44339 -35.272327,138.442139 -35.278297,138.442429 -35.279629,138.442123 -35.284924,138.442383 -35.286884,138.443207 -35.288628,138.444794 -35.293678,138.44458 -35.295578,138.445419 -35.297832,138.446732 -35.30883,138.446533 -35.311543,138.447021 -35.315907,138.447006 -35.32597,138.446335 -35.333115,138.44632 -35.335545,138.445297 -35.339508,138.444046 -35.341076,138.443054 -35.344353,138.443787 -35.344204,138.44722 -35.345238,138.449875 -35.347729,138.452682 -35.349796,138.453873 -35.350056,138.454941 -35.349438,138.456635 -35.346779,138.459549 -35.34346,138.461044 -35.342621,138.463409 -35.34026,138.467911 -35.337215,138.472931 -35.329788,138.473557 -35.331287,138.475494 -35.332355,138.476913 -35.333694,138.47818 -35.335995,138.478165 -35.338104,138.475784 -35.341122,138.475555 -35.342068,138.477081 -35.343029,138.477539 -35.341465,138.478516 -35.341007,138.479584 -35.338913,138.481873 -35.338223,138.481247 -35.337849,138.480408 -35.33482,138.481293 -35.335361,138.483002 -35.335052,138.481354 -35.332977,138.481613 -35.331512,138.484268 -35.330875,138.486328 -35.332611,138.487061 -35.33152,138.488739 -35.332142,138.489151 -35.330231,138.49115 -35.329536,138.489349 -35.329445,138.487473 -35.328773,138.487793 -35.327679,138.488968 -35.327213,138.48999 -35.326035,138.490997 -35.326839,138.492584 -35.327091,138.492126 -35.326454,138.492661 -35.324158,138.494186 -35.323193,138.496216 -35.323898,138.496735 -35.325352,138.498428 -35.325489,138.498886 -35.324989,138.497803 -35.322842,138.498489 -35.320698,138.49942 -35.320606,138.500137 -35.318954,138.501221 -35.318863,138.502991 -35.319962,138.502563 -35.317562,138.504471 -35.31802,138.506012 -35.316998,138.508423 -35.318764,138.50766 -35.316765,138.508682 -35.314732,138.507858 -35.31382,138.510559 -35.312298,138.511353 -35.310272,138.513382 -35.311993,138.514389 -35.313786,138.515259 -35.313297,138.514389 -35.311447,138.51474 -35.308662,138.516144 -35.308132,138.518341 -35.308327,138.518143 -35.307671,138.516342 -35.306553,138.517593 -35.306053,138.519226 -35.30777,138.519867 -35.306408,138.522186 -35.306934,138.523514 -35.30645,138.523346 -35.304901,138.525375 -35.30489,138.526779 -35.305698,138.527481 -35.304478,138.52832 -35.304424,138.529495 -35.306377,138.529755 -35.307938,138.530319 -35.307655,138.531143 -35.304314,138.532425 -35.304466,138.531479 -35.303085,138.533081 -35.302292,138.533371 -35.300484,138.534775 -35.301762,138.537735 -35.302284,138.538986 -35.301579,138.537125 -35.301167,138.536102 -35.299786,138.537506 -35.298912,138.53717 -35.297592,138.537796 -35.296402,138.539673 -35.297649,138.540909 -35.295902,138.540131 -35.295074,138.539551 -35.29327,138.540512 -35.293644,138.542343 -35.294765,138.543365 -35.294552,138.544083 -35.292927,138.543671 -35.291035,138.544144 -35.290051,138.54541 -35.289829,138.546021 -35.291721,138.546539 -35.291782,138.548813 -35.290222,138.549942 -35.290791,138.550323 -35.293201,138.552048 -35.293163,138.551804 -35.292027,138.553925 -35.291901,138.555283 -35.29052,138.555435 -35.2887,138.556061 -35.288277,138.555618 -35.286224,138.55661 -35.285679,138.55835 -35.288006,138.559586 -35.287506,138.558411 -35.285542,138.562363 -35.286133,138.564774 -35.28429,138.565994 -35.284489,138.566956 -35.286316,138.569855 -35.286388,138.570984 -35.287643,138.574524 -35.290276,138.574921 -35.291115,138.576767 -35.291618,138.579025 -35.29377,138.57959 -35.292255,138.580582 -35.291672,138.585083 -35.284492,138.588135 -35.282791,138.589279 -35.281059,138.590149 -35.27919,138.591415 -35.277458,138.596985 -35.273396,138.598282 -35.271683,138.603683 -35.265991,138.605743 -35.264965,138.609299 -35.262226,138.61026 -35.260338,138.611862 -35.258808,138.613922 -35.257576,138.615692 -35.254944,138.617249 -35.25103,138.618378 -35.249207,138.622238 -35.246719,138.624466 -35.245899,138.62471 -35.241951,138.626968 -35.2384,138.62886 -35.234665,138.63089 -35.233524,138.632629 -35.232086,138.633987 -35.230404,138.634552 -35.228447,138.635315 -35.226444,138.635773 -35.224514,138.635666 -35.222473,138.640244 -35.212643,138.642181 -35.211414,138.646896 -35.210274,138.649078 -35.209339,138.650223 -35.209034,138.651108 -35.208317,138.651703 -35.206406,138.651535 -35.204391,138.65062 -35.202518,138.650208 -35.20055,138.650558 -35.198574,138.651566 -35.196754,138.652451 -35.196083,138.653366 -35.195435,138.654587 -35.193707,138.655212 -35.191776,138.656876 -35.191326,138.661316 -35.193012,138.662521 -35.193092,138.669373 -35.190311,138.670395 -35.189732,138.671341 -35.189079,138.671631 -35.187176,138.671219 -35.185207,138.670715 -35.183266,138.669495 -35.181553,138.666733 -35.179535,138.66568 -35.177734,138.668472 -35.171982,138.669708 -35.170208,138.671768 -35.169186,138.672974 -35.16938,138.674698 -35.170696,138.677902 -35.172298,138.680252 -35.172462,138.681424 -35.170805,138.681458 -35.170757,138.682281 -35.165779,138.68335 -35.164009,138.683441 -35.162014,138.681412 -35.160999,138.679916 -35.159454,138.679916 -35.157482,138.683243 -35.151913,138.685608 -35.1483,138.688644 -35.142803,138.68924 -35.140762,138.688354 -35.138935,138.68335 -35.135952,138.682938 -35.131927,138.68277 -35.126823,138.68219 -35.124859,138.681046 -35.124477,138.677444 -35.124966,138.674973 -35.124619,138.670654 -35.122612,138.671585 -35.116589,138.671402 -35.114712,138.673752 -35.114212,138.674713 -35.113564,138.674606 -35.110615,138.672684 -35.109802,138.670578 -35.110828,138.66922 -35.112465,138.66803 -35.112587,138.667236 -35.111771,138.666916 -35.109917,138.663116 -35.107475,138.660675 -35.107243,138.65831 -35.107651,138.65593 -35.107231,138.654816 -35.107677,138.655701 -35.111652,138.653656 -35.112171,138.652695 -35.110371,138.646027 -35.108387,138.643585 -35.107971,138.641479 -35.106979,138.63913 -35.106403,138.63855 -35.108238,138.640274 -35.10955,138.642548 -35.110222,138.644272 -35.111649,138.643295 -35.112617,138.640945 -35.11211,138.636292 -35.11338,138.633911 -35.11285,138.632492 -35.111237,138.630081 -35.110935,138.625687 -35.109322,138.62323 -35.109341,138.619736 -35.110306,138.618546 -35.110291,138.617416 -35.109821,138.616302 -35.108021,138.614868 -35.106384,138.612274 -35.104206,138.60907 -35.102676,138.608124 -35.10083,138.608246 -35.098862,138.609268 -35.097046,138.610809 -35.095478,138.611389 -35.093529,138.610825 -35.09161,138.610901 -35.089642,138.614578 -35.087074,138.616638 -35.086239,138.617844 -35.086319,138.618439 -35.084438,138.620392 -35.083233,138.619949 -35.081295,138.620651 -35.079391,138.623367 -35.07745,138.625015 -35.075012,138.620377 -35.074265,138.617813 -35.073341,138.616791 -35.072052,138.611191 -35.069454,138.610016 -35.067867,138.60704 -35.065311,138.605301 -35.063213,138.6026 -35.060734,138.602203 -35.059818,138.594666 -35.056454,138.592346 -35.055023,138.589386 -35.052284,138.584015 -35.05014,138.581039 -35.050468,138.576202 -35.051975,138.573441 -35.052174,138.571564 -35.052883,138.567841 -35.055321,138.562576 -35.056107,138.559555 -35.055931))');
    // $southernFleurieu = $reader->read('POLYGON((138.398819 -35.641159,138.400818 -35.639648,138.403854 -35.640739,138.410431 -35.641083,138.411181 -35.640805,138.415192 -35.63932,138.421692 -35.633511,138.428406 -35.630581,138.430923 -35.630142,138.439896 -35.631546,138.449066 -35.630775,138.456161 -35.633278,138.462067 -35.630913,138.467453 -35.631229,138.473816 -35.632786,138.475235 -35.634426,138.478912 -35.634991,138.482697 -35.633087,138.485138 -35.632843,138.494965 -35.63422,138.502274 -35.637318,138.512466 -35.639896,138.516327 -35.642693,138.520691 -35.643761,138.524475 -35.642944,138.52626 -35.640232,138.530716 -35.637707,138.538956 -35.630623,138.54599 -35.626522,138.552338 -35.621696,138.557281 -35.615948,138.561951 -35.611347,138.567902 -35.608307,138.577621 -35.606499,138.579971 -35.60701,138.580673 -35.602776,138.583618 -35.600258,138.586639 -35.599003,138.590149 -35.596058,138.597504 -35.593727,138.600021 -35.593979,138.60173 -35.595726,138.605286 -35.592609,138.604004 -35.590282,138.601151 -35.589397,138.596359 -35.585739,138.596786 -35.582882,138.598358 -35.579445,138.602737 -35.575336,138.605545 -35.571724,138.609421 -35.568604,138.611176 -35.566525,138.612076 -35.563522,138.615112 -35.560844,138.619171 -35.559181,138.624329 -35.558319,138.62439 -35.552242,138.628296 -35.546909,138.631332 -35.544552,138.63533 -35.543335,138.638153 -35.543339,138.642563 -35.541199,138.65062 -35.539799,138.660339 -35.537544,138.676544 -35.53759,138.673218 -35.522007,138.671692 -35.516514,138.666046 -35.515152,138.667831 -35.511475,138.668152 -35.507774,138.669678 -35.505726,138.662964 -35.49979,138.656296 -35.497562,138.656082 -35.492741,138.657013 -35.488571,138.658691 -35.486233,138.659775 -35.478825,138.661606 -35.474834,138.664444 -35.477322,138.668915 -35.479073,138.670822 -35.471256,138.673248 -35.469357,138.67453 -35.465977,138.681229 -35.462036,138.68454 -35.462414,138.686508 -35.460491,138.68631 -35.458286,138.687881 -35.456493,138.69104 -35.456463,138.694809 -35.453087,138.702698 -35.449287,138.706711 -35.450974,138.71022 -35.451248,138.713028 -35.447018,138.713638 -35.444641,138.715622 -35.442272,138.718536 -35.442047,138.719142 -35.438938,138.720123 -35.43391,138.721924 -35.430336,138.721481 -35.423744,138.727158 -35.4095,138.727112 -35.401955,138.725845 -35.399048,138.727829 -35.396095,138.734222 -35.392048,138.745361 -35.389034,138.746033 -35.386585,138.743378 -35.380707,138.740997 -35.371483,138.737518 -35.36013,138.733749 -35.35471,138.733337 -35.35281,138.735916 -35.348942,138.74028 -35.344337,138.743088 -35.338623,138.747589 -35.336178,138.748505 -35.333675,138.747742 -35.331734,138.748306 -35.323818,138.747559 -35.320744,138.748001 -35.317684,138.750229 -35.314106,138.749954 -35.311386,138.752441 -35.304226,138.752594 -35.302204,138.758682 -35.29221,138.760635 -35.289608,138.76767 -35.285343,138.768448 -35.283436,138.768433 -35.278435,138.765549 -35.271931,138.760666 -35.269882,138.758347 -35.264282,138.754913 -35.26313,138.751175 -35.262955,138.748077 -35.26585,138.746384 -35.265453,138.743469 -35.267056,138.740585 -35.270695,138.735397 -35.274441,138.728302 -35.277805,138.724945 -35.2803,138.71991 -35.282257,138.719142 -35.282134,138.717422 -35.281857,138.715973 -35.276794,138.715561 -35.284184,138.71666 -35.289532,138.715897 -35.292461,138.711853 -35.294033,138.706131 -35.297306,138.703629 -35.299297,138.697769 -35.302605,138.694839 -35.305271,138.690048 -35.306976,138.686188 -35.309307,138.682495 -35.31292,138.678589 -35.315777,138.674194 -35.315559,138.670883 -35.316586,138.66745 -35.321808,138.665802 -35.325924,138.662903 -35.327858,138.661728 -35.33049,138.657318 -35.336796,138.65654 -35.340092,138.651428 -35.341717,138.646103 -35.347752,138.644333 -35.348682,138.63179 -35.350681,138.62236 -35.347847,138.619934 -35.348934,138.617233 -35.348129,138.61174 -35.345119,138.605209 -35.344997,138.601089 -35.343643,138.589783 -35.335541,138.582596 -35.326977,138.578979 -35.323643,138.577225 -35.320423,138.580521 -35.313278,138.581757 -35.306465,138.582901 -35.30545,138.580734 -35.296635,138.576767 -35.291618,138.569855 -35.286388,138.566956 -35.286316,138.564774 -35.28429,138.562363 -35.286133,138.558411 -35.285542,138.559586 -35.287506,138.55835 -35.288006,138.55661 -35.285679,138.556061 -35.288277,138.553925 -35.291901,138.550323 -35.293201,138.548813 -35.290222,138.546539 -35.291782,138.54541 -35.289829,138.543671 -35.291035,138.544083 -35.292927,138.542343 -35.294765,138.539551 -35.29327,138.540909 -35.295902,138.539673 -35.297649,138.537796 -35.296402,138.536346 -35.299332,138.537735 -35.302284,138.534775 -35.301762,138.533371 -35.300484,138.531479 -35.303085,138.530319 -35.307655,138.52832 -35.304424,138.526779 -35.305698,138.523346 -35.304901,138.523376 -35.30669,138.520493 -35.306435,138.518341 -35.308327,138.51474 -35.308662,138.514389 -35.313786,138.511353 -35.310272,138.510559 -35.312298,138.507858 -35.31382,138.508423 -35.318764,138.506012 -35.316998,138.502563 -35.317562,138.502991 -35.319962,138.500137 -35.318954,138.497803 -35.322842,138.498428 -35.325489,138.494186 -35.323193,138.492126 -35.326454,138.48999 -35.326035,138.487473 -35.328773,138.49115 -35.329536,138.489151 -35.330231,138.488739 -35.332142,138.486328 -35.332611,138.484268 -35.330875,138.481613 -35.331512,138.483002 -35.335052,138.480408 -35.33482,138.481247 -35.337849,138.479584 -35.338913,138.477081 -35.343029,138.475555 -35.342068,138.478165 -35.338104,138.476913 -35.333694,138.473557 -35.331287,138.472931 -35.329788,138.467911 -35.337215,138.459549 -35.34346,138.454941 -35.349438,138.452682 -35.349796,138.44722 -35.345238,138.443146 -35.344009,138.443085 -35.347702,138.44101 -35.351742,138.437561 -35.353687,138.433548 -35.354126,138.429886 -35.355633,138.422058 -35.360077,138.414703 -35.365726,138.410995 -35.367432,138.396362 -35.368683,138.393326 -35.369225,138.387589 -35.373283,138.385513 -35.373962,138.382996 -35.372299,138.378571 -35.373154,138.374756 -35.374695,138.372574 -35.376797,138.363907 -35.379726,138.36026 -35.384193,138.358704 -35.384571,138.352402 -35.388863,138.349594 -35.391472,138.343414 -35.393967,138.337555 -35.399879,138.332504 -35.406723,138.329391 -35.415173,138.329102 -35.41713,138.325897 -35.421246,138.323456 -35.427231,138.314713 -35.440338,138.3069 -35.4515,138.301849 -35.462517,138.297333 -35.469368,138.291946 -35.474506,138.284851 -35.477367,138.278839 -35.481983,138.273834 -35.485054,138.269867 -35.488346,138.26297 -35.493259,138.252045 -35.498531,138.250656 -35.499954,138.244781 -35.500324,138.240417 -35.503056,138.238174 -35.503189,138.233185 -35.505634,138.228516 -35.506767,138.223679 -35.510727,138.218445 -35.510834,138.216461 -35.512009,138.212952 -35.510845,138.212357 -35.512619,138.20903 -35.514664,138.207642 -35.516499,138.19693 -35.522099,138.192429 -35.525085,138.188309 -35.525513,138.185226 -35.524948,138.180786 -35.52253,138.16597 -35.51981,138.164246 -35.520863,138.160797 -35.527218,138.154359 -35.532451,138.154114 -35.53265,138.151474 -35.533283,138.148956 -35.537708,138.144089 -35.541668,138.137741 -35.548069,138.133469 -35.549789,138.125656 -35.557175,138.121658 -35.562756,138.119278 -35.56794,138.119095 -35.569874,138.11673 -35.573822,138.115051 -35.577888,138.113464 -35.579777,138.114182 -35.582615,138.107849 -35.590961,138.107605 -35.593182,138.105331 -35.595421,138.094101 -35.601875,138.092163 -35.604931,138.092606 -35.608784,138.093735 -35.611393,138.094345 -35.616978,138.093521 -35.619793,138.094147 -35.62603,138.101669 -35.633366,138.114197 -35.634624,138.117096 -35.639645,138.122818 -35.641479,138.125702 -35.64415,138.126434 -35.64608,138.130173 -35.647655,138.134369 -35.646751,138.138351 -35.6511,138.141098 -35.650826,138.14328 -35.654247,138.148743 -35.65617,138.153763 -35.655888,138.155533 -35.659763,138.157913 -35.660114,138.16127 -35.662205,138.16713 -35.662506,138.169785 -35.66209,138.170776 -35.663567,138.175171 -35.664688,138.178207 -35.6646,138.184677 -35.666245,138.193695 -35.666386,138.198044 -35.664944,138.203003 -35.665302,138.208786 -35.664764,138.215134 -35.662766,138.219009 -35.663757,138.224213 -35.661381,138.226059 -35.662106,138.231216 -35.660946,138.237396 -35.656639,138.241745 -35.656467,138.244919 -35.65451,138.245834 -35.654976,138.248093 -35.652798,138.25058 -35.653656,138.252518 -35.651592,138.254532 -35.651482,138.258484 -35.649536,138.262344 -35.644245,138.265991 -35.643227,138.276215 -35.641197,138.279694 -35.641411,138.283066 -35.640682,138.287674 -35.641586,138.295578 -35.641125,138.300034 -35.639793,138.306046 -35.640507,138.314713 -35.640339,138.320816 -35.640812,138.334488 -35.640991,138.33963 -35.640823,138.349152 -35.641354,138.357117 -35.641247,138.361053 -35.64167,138.365234 -35.643406,138.375839 -35.640568,138.379623 -35.639973,138.387726 -35.639912,138.389511 -35.641273,138.392288 -35.640873,138.398819 -35.641159))');
    // $geom = $currencyCreek->union($kangarooIsland)->union($langhorneCreek)->union($mclarenVale)->union($southernFleurieu)->simplify(0.001);
    $json = $writer->write($currencyCreek);
    $factory = new Kitbs\Geoimport\Generator();
    $parser = new GeoIO\WKT\Parser\Parser($factory);
    $geo = $parser->parse($json);
    $inspector = new Kitbs\Geoimport\Inspector();
    $geo = $inspector->rotate($geo);
    dd($geo);
    $json = $geo->jsonSerialize();
    // $geo = $json;