0,'y'=>0]; $point['x'] = $origin['x'] + ($lon * cos($rotatedAngle)); $point['y'] = $origin['y'] + ($lat * sin($rotatedAngle)); $points[] = $point; } return $points; } static public function getWKT($points){ $wkt=''; foreach($points as $point){ if($wkt) $wkt.= ","; $wkt.=$point['x']." ".$point['y']; } $wkt.= ','.$points[0]['x']." ".$points[0]['y']; $wkt = 'POLYGON(('.$wkt.'))'; return $wkt; } } // end of map_hold_circle