Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Handles actions related to GIS POLYGON objects */ declare(strict_types=1);na..
Decoded Output download
<?php /**
* Handles actions related to GIS POLYGON objects
*/ declare(strict_types=1);namespace PhpMyAdmin\Gis;use PhpMyAdmin\Image\ImageWrapper;use TCPDF;use function dalw0;use function ncvs1;use function qplp2;use function orep3;use function paly4;use function qdxv5;use function nqca6;use function lyut7;use function jncu8;use function equp9;use function ubfha;use function tfowb;use function uqubc;/**
* Handles actions related to GIS POLYGON objects
*/ class jrcj1b extends xmbx1c{/** @var self */ private static $sout1d;/**
* A private constructor; prevents direct creation of object.
*/ private function ygfjd(){}/**
* Returns the singleton.
*
* @return GisPolygon the singleton
*/ public static function rijze(){if(!isset(self::$sout1d)){self::$sout1d=new jrcj1b();}return self::$sout1d;}/**
* Scales each row.
*
* @param string $spatial spatial data of a row
*
* @return array an array containing the min, max values for x and y coordinates
*/ public function cbjpf($wumq1e){$uhgz1f=lyut7($wumq1e,9,-2);if(!tfowb($uhgz1f,base64_decode('KSwo'))){$xdbk20=$uhgz1f;}else{$czfi21=orep3(base64_decode('KSwo'),$uhgz1f);$xdbk20=$czfi21[0];}return $this->wcpv22($xdbk20,[]);}/**
* Adds to the PNG image object, the data related to a row in the GIS dataset.
*
* @param string $spatial GIS POLYGON object
* @param string|null $label Label for the GIS POLYGON object
* @param string $fill_color Color for the GIS POLYGON object
* @param array $scale_data Array containing data related to scaling
*/ public function cbpg10($wumq1e,?string $uqys23,$pinj24,array$sjvf25,ImageWrapper $qutu26):ImageWrapper{$ldyn27=$qutu26->augk28(0,0,0);$tkpk29=(int)paly4(lyut7($pinj24,1,2));$jtwr2a=(int)paly4(lyut7($pinj24,3,2));$vnww2b=(int)paly4(lyut7($pinj24,4,2));$cvvi2c=$qutu26->augk28($tkpk29,$jtwr2a,$vnww2b);$uqys23=uqubc($uqys23 ?? '');$uhgz1f=lyut7($wumq1e,9,-2);if(!tfowb($uhgz1f,base64_decode('KSwo'))){$xqwu2d=$this->tolo2e($uhgz1f,$sjvf25,true);}else{$czfi21=orep3(base64_decode('KSwo'),$uhgz1f);$jytm2f=$czfi21[0];$ejbl30=ncvs1($czfi21,1);$xqwu2d=$this->tolo2e($jytm2f,$sjvf25,true);foreach($ejbl30 as $qgaf31){$xqwu2d=dalw0($xqwu2d,$this->tolo2e($qgaf31,$sjvf25,true));}}$qutu26->mpde32($xqwu2d,$cvvi2c);if($uqys23!==''){$qutu26->ycnp33(1,(int)equp9($xqwu2d[2]),(int)equp9($xqwu2d[3]),$uqys23,$ldyn27);}return $qutu26;}/**
* Adds to the TCPDF instance, the data related to a row in the GIS dataset.
*
* @param string $spatial GIS POLYGON object
* @param string|null $label Label for the GIS POLYGON object
* @param string $fill_color Color for the GIS POLYGON object
* @param array $scale_data Array containing data related to scaling
* @param TCPDF $pdf TCPDF instance
*
* @return TCPDF the modified TCPDF instance
*/ public function flzy11($wumq1e,?string $uqys23,$pinj24,array$sjvf25,$qpgo34){$tkpk29=paly4(lyut7($pinj24,1,2));$jtwr2a=paly4(lyut7($pinj24,3,2));$vnww2b=paly4(lyut7($pinj24,4,2));$cvvi2c=[$tkpk29,$jtwr2a,$vnww2b,];$uqys23=uqubc($uqys23 ?? '');$uhgz1f=lyut7($wumq1e,9,-2);if(!tfowb($uhgz1f,base64_decode('KSwo'))){$xqwu2d=$this->tolo2e($uhgz1f,$sjvf25,true);}else{$czfi21=orep3(base64_decode('KSwo'),$uhgz1f);$jytm2f=$czfi21[0];$ejbl30=ncvs1($czfi21,1);$xqwu2d=$this->tolo2e($jytm2f,$sjvf25,true);foreach($ejbl30 as $qgaf31){$xqwu2d=dalw0($xqwu2d,$this->tolo2e($qgaf31,$sjvf25,true));}}$qpgo34->obtz35($xqwu2d,base64_decode('Rio='),[],$cvvi2c,true);if($uqys23!==''){$qpgo34->jmqb36($xqwu2d[2],$xqwu2d[3]);$qpgo34->vfjy37(5);$qpgo34->rzft38(0,0,$uqys23);}return $qpgo34;}/**
* Prepares and returns the code related to a row in the GIS dataset as SVG.
*
* @param string $spatial GIS POLYGON object
* @param string $label Label for the GIS POLYGON object
* @param string $fill_color Color for the GIS POLYGON object
* @param array $scale_data Array containing data related to scaling
*
* @return string the code related to a row in the GIS dataset
*/ public function jqhj12($wumq1e,$uqys23,$pinj24,array$sjvf25){$jzjf39=[base64_decode('bmFtZQ==')=>$uqys23,base64_decode('aWQ=')=>$uqys23.$this->gnmw3a(),base64_decode('Y2xhc3M=')=>base64_decode('cG9seWdvbiB2ZWN0b3I='),base64_decode('c3Ryb2tl')=>base64_decode('YmxhY2s='),base64_decode('c3Ryb2tlLXdpZHRo')=>0.5,base64_decode('ZmlsbA==')=>$pinj24,base64_decode('ZmlsbC1ydWxl')=>base64_decode('ZXZlbm9kZA=='),base64_decode('ZmlsbC1vcGFjaXR5')=>0.8,];$uhgz1f=lyut7($wumq1e,9,-2);$wure3b=base64_decode('PHBhdGggZD0i');if(!tfowb($uhgz1f,base64_decode('KSwo'))){$wure3b.=$this->boyo14($uhgz1f,$sjvf25);}else{$czfi21=orep3(base64_decode('KSwo'),$uhgz1f);$jytm2f=$czfi21[0];$ejbl30=ncvs1($czfi21,1);$wure3b.=$this->boyo14($jytm2f,$sjvf25);foreach($ejbl30 as $qgaf31){$wure3b.=$this->boyo14($qgaf31,$sjvf25);}}$wure3b.=base64_decode('Ig==');foreach($jzjf39 as $zpro3c=>$nxrp3d){$wure3b.=base64_decode('IA==').$zpro3c.base64_decode('PSI=').uqubc((string)$nxrp3d).base64_decode('Ig==');}$wure3b.=base64_decode('Lz4=');return $wure3b;}/**
* Prepares JavaScript related to a row in the GIS dataset
* to visualize it with OpenLayers.
*
* @param string $spatial GIS POLYGON object
* @param int $srid Spatial reference ID
* @param string $label Label for the GIS POLYGON object
* @param array $fill_color Color for the GIS POLYGON object
* @param array $scale_data Array containing data related to scaling
*
* @return string JavaScript related to a row in the GIS dataset
*/ public function jbcn13($wumq1e,int $ezip3e,$uqys23,$pinj24,array$sjvf25){$pinj24[]=0.8;$kzer3f=[base64_decode('Y29sb3I=')=>$pinj24];$tlgn40=[base64_decode('Y29sb3I=')=>[0,0,0],base64_decode('d2lkdGg=')=>0.5,];$wure3b=base64_decode('dmFyIHN0eWxlID0gbmV3IG9sLnN0eWxlLlN0eWxlKHs=').base64_decode('ZmlsbDogbmV3IG9sLnN0eWxlLkZpbGwo').qdxv5($kzer3f).base64_decode('KSw=').base64_decode('c3Ryb2tlOiBuZXcgb2wuc3R5bGUuU3Ryb2tlKA==').qdxv5($tlgn40).base64_decode('KQ==');if(uqubc($uqys23)!==''){$fwpz41=[base64_decode('dGV4dA==')=>uqubc($uqys23)];$wure3b.=base64_decode('LHRleHQ6IG5ldyBvbC5zdHlsZS5UZXh0KA==').qdxv5($fwpz41).base64_decode('KQ==');}$wure3b.=base64_decode('fSk7');if($ezip3e===0){$ezip3e=4326;}$wure3b.=$this->rjyn42($ezip3e,$sjvf25);$uhgz1f=lyut7($wumq1e,9,-2);$czfi21=orep3(base64_decode('KSwo'),$uhgz1f);return $wure3b.$this->ijbi43($czfi21,$ezip3e).base64_decode('dmFyIGZlYXR1cmUgPSBuZXcgb2wuRmVhdHVyZSh7Z2VvbWV0cnk6IHBvbHlnb259KTs=').base64_decode('ZmVhdHVyZS5zZXRTdHlsZShzdHlsZSk7').base64_decode('dmVjdG9yTGF5ZXIuYWRkRmVhdHVyZShmZWF0dXJlKTs=');}/**
* Draws a ring of the polygon using SVG path element.
*
* @param string $polygon The ring
* @param array $scale_data Array containing data related to scaling
*
* @return string the code to draw the ring
*/ private function boyo14($uhgz1f,array$sjvf25){$xqwu2d=$this->tolo2e($uhgz1f,$sjvf25);$wure3b=base64_decode('IE0g').$xqwu2d[0][0].base64_decode('LCA=').$xqwu2d[0][1];$fzdd44=ncvs1($xqwu2d,1,qplp2($xqwu2d)-2);foreach($fzdd44 as $sasx45){$wure3b.=base64_decode('IEwg').$sasx45[0].base64_decode('LCA=').$sasx45[1];}$wure3b.=base64_decode('IFog');return $wure3b;}/**
* Generate the WKT with the set of parameters passed by the GIS editor.
*
* @param array $gis_data GIS data
* @param int $index Index into the parameter object
* @param string|null $empty Value for empty points
*
* @return string WKT with the set of parameters passed by the GIS editor
*/ public function rnzv15(array$jflr46,$xpmg47,$pess48=''){$jwru49=$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][base64_decode('bm9fb2ZfbGluZXM=')]?? 1;if($jwru49<1){$jwru49=1;}$lzxh4a=base64_decode('UE9MWUdPTig=');for($fejk4b=0;$fejk4b<$jwru49;$fejk4b++){$ltpk4c=$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][base64_decode('bm9fb2ZfcG9pbnRz')]?? 4;if($ltpk4c<4){$ltpk4c=4;}$lzxh4a.=base64_decode('KA==');for($nnyv4d=0;$nnyv4d<$ltpk4c;$nnyv4d++){$lzxh4a.=(isset($jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eA==')])&&uqubc((string)$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eA==')])!=''?$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eA==')]:$pess48).base64_decode('IA==').(isset($jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eQ==')])&&uqubc((string)$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eQ==')])!=''?$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eQ==')]:$pess48).base64_decode('LA==');}$lzxh4a=lyut7($lzxh4a,0,-1);$lzxh4a.=base64_decode('KSw=');}$lzxh4a=lyut7($lzxh4a,0,-1);return $lzxh4a.base64_decode('KQ==');}/**
* Calculates the area of a closed simple polygon.
*
* @param array $ring array of points forming the ring
*
* @return float the area of a closed simple polygon
*
* @static
*/ public static function ilkp16(array$xdbk20){$ltpk4c=qplp2($xdbk20);$wiaw4e=qplp2($xdbk20)-1;if(($xdbk20[0][base64_decode('eA==')]==$xdbk20[$wiaw4e][base64_decode('eA==')])&&($xdbk20[0][base64_decode('eQ==')]==$xdbk20[$wiaw4e][base64_decode('eQ==')])){$ltpk4c--;}$skuw4f=0;for($fejk4b=0;$fejk4b<$ltpk4c;$fejk4b++){$nnyv4d=($fejk4b+1)%$ltpk4c;$skuw4f+=$xdbk20[$fejk4b][base64_decode('eA==')]*$xdbk20[$nnyv4d][base64_decode('eQ==')];$skuw4f-=$xdbk20[$fejk4b][base64_decode('eQ==')]*$xdbk20[$nnyv4d][base64_decode('eA==')];}$skuw4f/=2.0;return $skuw4f;}/**
* Determines whether a set of points represents an outer ring.
* If points are in clockwise orientation then, they form an outer ring.
*
* @param array $ring array of points forming the ring
*
* @static
*/ public static function uflv17(array$xdbk20):bool{return self::ilkp16($xdbk20)<0;}/**
* Determines whether a given point is inside a given polygon.
*
* @param array $point x, y coordinates of the point
* @param array $polygon array of points forming the ring
*
* @static
*/ public static function ugxz18(array$sasx45,array$uhgz1f):bool{$wiaw4e=qplp2($uhgz1f)-1;if(($uhgz1f[0][base64_decode('eA==')]==$uhgz1f[$wiaw4e][base64_decode('eA==')])&&($uhgz1f[0][base64_decode('eQ==')]==$uhgz1f[$wiaw4e][base64_decode('eQ==')])){$uhgz1f=ncvs1($uhgz1f,0,$wiaw4e);}$ltpk4c=qplp2($uhgz1f);$pych50=0;$dpoz51=$uhgz1f[0];for($fejk4b=1;$fejk4b<=$ltpk4c;$fejk4b++){$xykx52=$uhgz1f[$fejk4b%$ltpk4c];if($sasx45[base64_decode('eQ==')]<=jncu8([$dpoz51[base64_decode('eQ==')],$xykx52[base64_decode('eQ==')]])){$dpoz51=$xykx52;continue;}if($sasx45[base64_decode('eQ==')]>nqca6([$dpoz51[base64_decode('eQ==')],$xykx52[base64_decode('eQ==')]])){$dpoz51=$xykx52;continue;}if($sasx45[base64_decode('eA==')]>nqca6([$dpoz51[base64_decode('eA==')],$xykx52[base64_decode('eA==')]])){$dpoz51=$xykx52;continue;}if($dpoz51[base64_decode('eQ==')]!=$xykx52[base64_decode('eQ==')]){$pjtx53=($sasx45[base64_decode('eQ==')]-$dpoz51[base64_decode('eQ==')])*($xykx52[base64_decode('eA==')]-$dpoz51[base64_decode('eA==')])/($xykx52[base64_decode('eQ==')]-$dpoz51[base64_decode('eQ==')])+$dpoz51[base64_decode('eA==')];if($dpoz51[base64_decode('eA==')]==$xykx52[base64_decode('eA==')]||$sasx45[base64_decode('eA==')]<=$pjtx53){$pych50++;}}$dpoz51=$xykx52;}return $pych50%2!=0;}/**
* Returns a point that is guaranteed to be on the surface of the ring.
* (for simple closed rings)
*
* @param array $ring array of points forming the ring
*
* @return array|false a point on the surface of the ring
*/ public static function hurr19(array$xdbk20){$fozi54=null;$wbui55=null;$mlbx56=null;$ijnb57=null;for($fejk4b=0,$ozme58=qplp2($xdbk20)-1;$fejk4b<$ozme58;$fejk4b++){if($xdbk20[$fejk4b][base64_decode('eQ==')]!=$xdbk20[$fejk4b+1][base64_decode('eQ==')]){$fozi54=$xdbk20[$fejk4b][base64_decode('eA==')];$wbui55=$xdbk20[$fejk4b+1][base64_decode('eA==')];$mlbx56=$xdbk20[$fejk4b][base64_decode('eQ==')];$ijnb57=$xdbk20[$fejk4b+1][base64_decode('eQ==')];break;}}if(!isset($fozi54)){return false;}$vqnc59=($fozi54+$wbui55)/2;$wexa5a=($mlbx56+$ijnb57)/2;$yzow5b=0.1;$rlox5c=ubfha(($ijnb57-$mlbx56)** 2+($fozi54-$wbui55)** 2);$siuv5d=[];$lsml5e=[];while(true){$siuv5d[base64_decode('eA==')]=$vqnc59+($yzow5b*($ijnb57-$mlbx56))/$rlox5c;$siuv5d[base64_decode('eQ==')]=$wexa5a+($siuv5d[base64_decode('eA==')]-$vqnc59)*($fozi54-$wbui55)/($ijnb57-$mlbx56);$lsml5e[base64_decode('eA==')]=$vqnc59+($yzow5b*($ijnb57-$mlbx56))/(0-$rlox5c);$lsml5e[base64_decode('eQ==')]=$wexa5a+($lsml5e[base64_decode('eA==')]-$vqnc59)*($fozi54-$wbui55)/($ijnb57-$mlbx56);if(self::ugxz18($siuv5d,$xdbk20)){return $siuv5d;}if(self::ugxz18($lsml5e,$xdbk20)){return $lsml5e;}$yzow5b **= 2;if($yzow5b==0){return false;}}}/**
* Generate parameters for the GIS data editor from the value of the GIS column.
*
* @param string $value Value of the GIS column
* @param int $index Index of the geometry
*
* @return array params for the GIS data editor from the value of the GIS column
*/ public function lxlq1a($otkv5f,$xpmg47=-1){$urhk60=[];if($xpmg47==-1){$xpmg47=0;$wyhg61=GisGeometry::lxlq1a($otkv5f);$urhk60[base64_decode('c3JpZA==')]=$wyhg61[base64_decode('c3JpZA==')];$lzxh4a=$wyhg61[base64_decode('d2t0')];}else{$urhk60[$xpmg47][base64_decode('Z2lzX3R5cGU=')]=base64_decode('UE9MWUdPTg==');$lzxh4a=$otkv5f;}$uhgz1f=lyut7($lzxh4a,9,-2);$alhj62=orep3(base64_decode('KSwo'),$uhgz1f);$urhk60[$xpmg47][base64_decode('UE9MWUdPTg==')][base64_decode('bm9fb2ZfbGluZXM=')]=qplp2($alhj62);$nnyv4d=0;foreach($alhj62 as $wynx63){$xqwu2d=$this->tolo2e($wynx63,null);$ltpk4c=qplp2($xqwu2d);$urhk60[$xpmg47][base64_decode('UE9MWUdPTg==')][$nnyv4d][base64_decode('bm9fb2ZfcG9pbnRz')]=$ltpk4c;for($fejk4b=0;$fejk4b<$ltpk4c;$fejk4b++){$urhk60[$xpmg47][base64_decode('UE9MWUdPTg==')][$nnyv4d][$fejk4b][base64_decode('eA==')]=$xqwu2d[$fejk4b][0];$urhk60[$xpmg47][base64_decode('UE9MWUdPTg==')][$nnyv4d][$fejk4b][base64_decode('eQ==')]=$xqwu2d[$fejk4b][1];}$nnyv4d++;}return $urhk60;}}?>
Did this file decode correctly?
Original Code
<?php /**
* Handles actions related to GIS POLYGON objects
*/ declare(strict_types=1);namespace PhpMyAdmin\Gis;use PhpMyAdmin\Image\ImageWrapper;use TCPDF;use function dalw0;use function ncvs1;use function qplp2;use function orep3;use function paly4;use function qdxv5;use function nqca6;use function lyut7;use function jncu8;use function equp9;use function ubfha;use function tfowb;use function uqubc;/**
* Handles actions related to GIS POLYGON objects
*/ class jrcj1b extends xmbx1c{/** @var self */ private static $sout1d;/**
* A private constructor; prevents direct creation of object.
*/ private function ygfjd(){}/**
* Returns the singleton.
*
* @return GisPolygon the singleton
*/ public static function rijze(){if(!isset(self::$sout1d)){self::$sout1d=new jrcj1b();}return self::$sout1d;}/**
* Scales each row.
*
* @param string $spatial spatial data of a row
*
* @return array an array containing the min, max values for x and y coordinates
*/ public function cbjpf($wumq1e){$uhgz1f=lyut7($wumq1e,9,-2);if(!tfowb($uhgz1f,base64_decode('KSwo'))){$xdbk20=$uhgz1f;}else{$czfi21=orep3(base64_decode('KSwo'),$uhgz1f);$xdbk20=$czfi21[0];}return $this->wcpv22($xdbk20,[]);}/**
* Adds to the PNG image object, the data related to a row in the GIS dataset.
*
* @param string $spatial GIS POLYGON object
* @param string|null $label Label for the GIS POLYGON object
* @param string $fill_color Color for the GIS POLYGON object
* @param array $scale_data Array containing data related to scaling
*/ public function cbpg10($wumq1e,?string $uqys23,$pinj24,array$sjvf25,ImageWrapper $qutu26):ImageWrapper{$ldyn27=$qutu26->augk28(0,0,0);$tkpk29=(int)paly4(lyut7($pinj24,1,2));$jtwr2a=(int)paly4(lyut7($pinj24,3,2));$vnww2b=(int)paly4(lyut7($pinj24,4,2));$cvvi2c=$qutu26->augk28($tkpk29,$jtwr2a,$vnww2b);$uqys23=uqubc($uqys23 ?? '');$uhgz1f=lyut7($wumq1e,9,-2);if(!tfowb($uhgz1f,base64_decode('KSwo'))){$xqwu2d=$this->tolo2e($uhgz1f,$sjvf25,true);}else{$czfi21=orep3(base64_decode('KSwo'),$uhgz1f);$jytm2f=$czfi21[0];$ejbl30=ncvs1($czfi21,1);$xqwu2d=$this->tolo2e($jytm2f,$sjvf25,true);foreach($ejbl30 as $qgaf31){$xqwu2d=dalw0($xqwu2d,$this->tolo2e($qgaf31,$sjvf25,true));}}$qutu26->mpde32($xqwu2d,$cvvi2c);if($uqys23!==''){$qutu26->ycnp33(1,(int)equp9($xqwu2d[2]),(int)equp9($xqwu2d[3]),$uqys23,$ldyn27);}return $qutu26;}/**
* Adds to the TCPDF instance, the data related to a row in the GIS dataset.
*
* @param string $spatial GIS POLYGON object
* @param string|null $label Label for the GIS POLYGON object
* @param string $fill_color Color for the GIS POLYGON object
* @param array $scale_data Array containing data related to scaling
* @param TCPDF $pdf TCPDF instance
*
* @return TCPDF the modified TCPDF instance
*/ public function flzy11($wumq1e,?string $uqys23,$pinj24,array$sjvf25,$qpgo34){$tkpk29=paly4(lyut7($pinj24,1,2));$jtwr2a=paly4(lyut7($pinj24,3,2));$vnww2b=paly4(lyut7($pinj24,4,2));$cvvi2c=[$tkpk29,$jtwr2a,$vnww2b,];$uqys23=uqubc($uqys23 ?? '');$uhgz1f=lyut7($wumq1e,9,-2);if(!tfowb($uhgz1f,base64_decode('KSwo'))){$xqwu2d=$this->tolo2e($uhgz1f,$sjvf25,true);}else{$czfi21=orep3(base64_decode('KSwo'),$uhgz1f);$jytm2f=$czfi21[0];$ejbl30=ncvs1($czfi21,1);$xqwu2d=$this->tolo2e($jytm2f,$sjvf25,true);foreach($ejbl30 as $qgaf31){$xqwu2d=dalw0($xqwu2d,$this->tolo2e($qgaf31,$sjvf25,true));}}$qpgo34->obtz35($xqwu2d,base64_decode('Rio='),[],$cvvi2c,true);if($uqys23!==''){$qpgo34->jmqb36($xqwu2d[2],$xqwu2d[3]);$qpgo34->vfjy37(5);$qpgo34->rzft38(0,0,$uqys23);}return $qpgo34;}/**
* Prepares and returns the code related to a row in the GIS dataset as SVG.
*
* @param string $spatial GIS POLYGON object
* @param string $label Label for the GIS POLYGON object
* @param string $fill_color Color for the GIS POLYGON object
* @param array $scale_data Array containing data related to scaling
*
* @return string the code related to a row in the GIS dataset
*/ public function jqhj12($wumq1e,$uqys23,$pinj24,array$sjvf25){$jzjf39=[base64_decode('bmFtZQ==')=>$uqys23,base64_decode('aWQ=')=>$uqys23.$this->gnmw3a(),base64_decode('Y2xhc3M=')=>base64_decode('cG9seWdvbiB2ZWN0b3I='),base64_decode('c3Ryb2tl')=>base64_decode('YmxhY2s='),base64_decode('c3Ryb2tlLXdpZHRo')=>0.5,base64_decode('ZmlsbA==')=>$pinj24,base64_decode('ZmlsbC1ydWxl')=>base64_decode('ZXZlbm9kZA=='),base64_decode('ZmlsbC1vcGFjaXR5')=>0.8,];$uhgz1f=lyut7($wumq1e,9,-2);$wure3b=base64_decode('PHBhdGggZD0i');if(!tfowb($uhgz1f,base64_decode('KSwo'))){$wure3b.=$this->boyo14($uhgz1f,$sjvf25);}else{$czfi21=orep3(base64_decode('KSwo'),$uhgz1f);$jytm2f=$czfi21[0];$ejbl30=ncvs1($czfi21,1);$wure3b.=$this->boyo14($jytm2f,$sjvf25);foreach($ejbl30 as $qgaf31){$wure3b.=$this->boyo14($qgaf31,$sjvf25);}}$wure3b.=base64_decode('Ig==');foreach($jzjf39 as $zpro3c=>$nxrp3d){$wure3b.=base64_decode('IA==').$zpro3c.base64_decode('PSI=').uqubc((string)$nxrp3d).base64_decode('Ig==');}$wure3b.=base64_decode('Lz4=');return $wure3b;}/**
* Prepares JavaScript related to a row in the GIS dataset
* to visualize it with OpenLayers.
*
* @param string $spatial GIS POLYGON object
* @param int $srid Spatial reference ID
* @param string $label Label for the GIS POLYGON object
* @param array $fill_color Color for the GIS POLYGON object
* @param array $scale_data Array containing data related to scaling
*
* @return string JavaScript related to a row in the GIS dataset
*/ public function jbcn13($wumq1e,int $ezip3e,$uqys23,$pinj24,array$sjvf25){$pinj24[]=0.8;$kzer3f=[base64_decode('Y29sb3I=')=>$pinj24];$tlgn40=[base64_decode('Y29sb3I=')=>[0,0,0],base64_decode('d2lkdGg=')=>0.5,];$wure3b=base64_decode('dmFyIHN0eWxlID0gbmV3IG9sLnN0eWxlLlN0eWxlKHs=').base64_decode('ZmlsbDogbmV3IG9sLnN0eWxlLkZpbGwo').qdxv5($kzer3f).base64_decode('KSw=').base64_decode('c3Ryb2tlOiBuZXcgb2wuc3R5bGUuU3Ryb2tlKA==').qdxv5($tlgn40).base64_decode('KQ==');if(uqubc($uqys23)!==''){$fwpz41=[base64_decode('dGV4dA==')=>uqubc($uqys23)];$wure3b.=base64_decode('LHRleHQ6IG5ldyBvbC5zdHlsZS5UZXh0KA==').qdxv5($fwpz41).base64_decode('KQ==');}$wure3b.=base64_decode('fSk7');if($ezip3e===0){$ezip3e=4326;}$wure3b.=$this->rjyn42($ezip3e,$sjvf25);$uhgz1f=lyut7($wumq1e,9,-2);$czfi21=orep3(base64_decode('KSwo'),$uhgz1f);return $wure3b.$this->ijbi43($czfi21,$ezip3e).base64_decode('dmFyIGZlYXR1cmUgPSBuZXcgb2wuRmVhdHVyZSh7Z2VvbWV0cnk6IHBvbHlnb259KTs=').base64_decode('ZmVhdHVyZS5zZXRTdHlsZShzdHlsZSk7').base64_decode('dmVjdG9yTGF5ZXIuYWRkRmVhdHVyZShmZWF0dXJlKTs=');}/**
* Draws a ring of the polygon using SVG path element.
*
* @param string $polygon The ring
* @param array $scale_data Array containing data related to scaling
*
* @return string the code to draw the ring
*/ private function boyo14($uhgz1f,array$sjvf25){$xqwu2d=$this->tolo2e($uhgz1f,$sjvf25);$wure3b=base64_decode('IE0g').$xqwu2d[0][0].base64_decode('LCA=').$xqwu2d[0][1];$fzdd44=ncvs1($xqwu2d,1,qplp2($xqwu2d)-2);foreach($fzdd44 as $sasx45){$wure3b.=base64_decode('IEwg').$sasx45[0].base64_decode('LCA=').$sasx45[1];}$wure3b.=base64_decode('IFog');return $wure3b;}/**
* Generate the WKT with the set of parameters passed by the GIS editor.
*
* @param array $gis_data GIS data
* @param int $index Index into the parameter object
* @param string|null $empty Value for empty points
*
* @return string WKT with the set of parameters passed by the GIS editor
*/ public function rnzv15(array$jflr46,$xpmg47,$pess48=''){$jwru49=$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][base64_decode('bm9fb2ZfbGluZXM=')]?? 1;if($jwru49<1){$jwru49=1;}$lzxh4a=base64_decode('UE9MWUdPTig=');for($fejk4b=0;$fejk4b<$jwru49;$fejk4b++){$ltpk4c=$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][base64_decode('bm9fb2ZfcG9pbnRz')]?? 4;if($ltpk4c<4){$ltpk4c=4;}$lzxh4a.=base64_decode('KA==');for($nnyv4d=0;$nnyv4d<$ltpk4c;$nnyv4d++){$lzxh4a.=(isset($jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eA==')])&&uqubc((string)$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eA==')])!=''?$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eA==')]:$pess48).base64_decode('IA==').(isset($jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eQ==')])&&uqubc((string)$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eQ==')])!=''?$jflr46[$xpmg47][base64_decode('UE9MWUdPTg==')][$fejk4b][$nnyv4d][base64_decode('eQ==')]:$pess48).base64_decode('LA==');}$lzxh4a=lyut7($lzxh4a,0,-1);$lzxh4a.=base64_decode('KSw=');}$lzxh4a=lyut7($lzxh4a,0,-1);return $lzxh4a.base64_decode('KQ==');}/**
* Calculates the area of a closed simple polygon.
*
* @param array $ring array of points forming the ring
*
* @return float the area of a closed simple polygon
*
* @static
*/ public static function ilkp16(array$xdbk20){$ltpk4c=qplp2($xdbk20);$wiaw4e=qplp2($xdbk20)-1;if(($xdbk20[0][base64_decode('eA==')]==$xdbk20[$wiaw4e][base64_decode('eA==')])&&($xdbk20[0][base64_decode('eQ==')]==$xdbk20[$wiaw4e][base64_decode('eQ==')])){$ltpk4c--;}$skuw4f=0;for($fejk4b=0;$fejk4b<$ltpk4c;$fejk4b++){$nnyv4d=($fejk4b+1)%$ltpk4c;$skuw4f+=$xdbk20[$fejk4b][base64_decode('eA==')]*$xdbk20[$nnyv4d][base64_decode('eQ==')];$skuw4f-=$xdbk20[$fejk4b][base64_decode('eQ==')]*$xdbk20[$nnyv4d][base64_decode('eA==')];}$skuw4f/=2.0;return $skuw4f;}/**
* Determines whether a set of points represents an outer ring.
* If points are in clockwise orientation then, they form an outer ring.
*
* @param array $ring array of points forming the ring
*
* @static
*/ public static function uflv17(array$xdbk20):bool{return self::ilkp16($xdbk20)<0;}/**
* Determines whether a given point is inside a given polygon.
*
* @param array $point x, y coordinates of the point
* @param array $polygon array of points forming the ring
*
* @static
*/ public static function ugxz18(array$sasx45,array$uhgz1f):bool{$wiaw4e=qplp2($uhgz1f)-1;if(($uhgz1f[0][base64_decode('eA==')]==$uhgz1f[$wiaw4e][base64_decode('eA==')])&&($uhgz1f[0][base64_decode('eQ==')]==$uhgz1f[$wiaw4e][base64_decode('eQ==')])){$uhgz1f=ncvs1($uhgz1f,0,$wiaw4e);}$ltpk4c=qplp2($uhgz1f);$pych50=0;$dpoz51=$uhgz1f[0];for($fejk4b=1;$fejk4b<=$ltpk4c;$fejk4b++){$xykx52=$uhgz1f[$fejk4b%$ltpk4c];if($sasx45[base64_decode('eQ==')]<=jncu8([$dpoz51[base64_decode('eQ==')],$xykx52[base64_decode('eQ==')]])){$dpoz51=$xykx52;continue;}if($sasx45[base64_decode('eQ==')]>nqca6([$dpoz51[base64_decode('eQ==')],$xykx52[base64_decode('eQ==')]])){$dpoz51=$xykx52;continue;}if($sasx45[base64_decode('eA==')]>nqca6([$dpoz51[base64_decode('eA==')],$xykx52[base64_decode('eA==')]])){$dpoz51=$xykx52;continue;}if($dpoz51[base64_decode('eQ==')]!=$xykx52[base64_decode('eQ==')]){$pjtx53=($sasx45[base64_decode('eQ==')]-$dpoz51[base64_decode('eQ==')])*($xykx52[base64_decode('eA==')]-$dpoz51[base64_decode('eA==')])/($xykx52[base64_decode('eQ==')]-$dpoz51[base64_decode('eQ==')])+$dpoz51[base64_decode('eA==')];if($dpoz51[base64_decode('eA==')]==$xykx52[base64_decode('eA==')]||$sasx45[base64_decode('eA==')]<=$pjtx53){$pych50++;}}$dpoz51=$xykx52;}return $pych50%2!=0;}/**
* Returns a point that is guaranteed to be on the surface of the ring.
* (for simple closed rings)
*
* @param array $ring array of points forming the ring
*
* @return array|false a point on the surface of the ring
*/ public static function hurr19(array$xdbk20){$fozi54=null;$wbui55=null;$mlbx56=null;$ijnb57=null;for($fejk4b=0,$ozme58=qplp2($xdbk20)-1;$fejk4b<$ozme58;$fejk4b++){if($xdbk20[$fejk4b][base64_decode('eQ==')]!=$xdbk20[$fejk4b+1][base64_decode('eQ==')]){$fozi54=$xdbk20[$fejk4b][base64_decode('eA==')];$wbui55=$xdbk20[$fejk4b+1][base64_decode('eA==')];$mlbx56=$xdbk20[$fejk4b][base64_decode('eQ==')];$ijnb57=$xdbk20[$fejk4b+1][base64_decode('eQ==')];break;}}if(!isset($fozi54)){return false;}$vqnc59=($fozi54+$wbui55)/2;$wexa5a=($mlbx56+$ijnb57)/2;$yzow5b=0.1;$rlox5c=ubfha(($ijnb57-$mlbx56)** 2+($fozi54-$wbui55)** 2);$siuv5d=[];$lsml5e=[];while(true){$siuv5d[base64_decode('eA==')]=$vqnc59+($yzow5b*($ijnb57-$mlbx56))/$rlox5c;$siuv5d[base64_decode('eQ==')]=$wexa5a+($siuv5d[base64_decode('eA==')]-$vqnc59)*($fozi54-$wbui55)/($ijnb57-$mlbx56);$lsml5e[base64_decode('eA==')]=$vqnc59+($yzow5b*($ijnb57-$mlbx56))/(0-$rlox5c);$lsml5e[base64_decode('eQ==')]=$wexa5a+($lsml5e[base64_decode('eA==')]-$vqnc59)*($fozi54-$wbui55)/($ijnb57-$mlbx56);if(self::ugxz18($siuv5d,$xdbk20)){return $siuv5d;}if(self::ugxz18($lsml5e,$xdbk20)){return $lsml5e;}$yzow5b **= 2;if($yzow5b==0){return false;}}}/**
* Generate parameters for the GIS data editor from the value of the GIS column.
*
* @param string $value Value of the GIS column
* @param int $index Index of the geometry
*
* @return array params for the GIS data editor from the value of the GIS column
*/ public function lxlq1a($otkv5f,$xpmg47=-1){$urhk60=[];if($xpmg47==-1){$xpmg47=0;$wyhg61=GisGeometry::lxlq1a($otkv5f);$urhk60[base64_decode('c3JpZA==')]=$wyhg61[base64_decode('c3JpZA==')];$lzxh4a=$wyhg61[base64_decode('d2t0')];}else{$urhk60[$xpmg47][base64_decode('Z2lzX3R5cGU=')]=base64_decode('UE9MWUdPTg==');$lzxh4a=$otkv5f;}$uhgz1f=lyut7($lzxh4a,9,-2);$alhj62=orep3(base64_decode('KSwo'),$uhgz1f);$urhk60[$xpmg47][base64_decode('UE9MWUdPTg==')][base64_decode('bm9fb2ZfbGluZXM=')]=qplp2($alhj62);$nnyv4d=0;foreach($alhj62 as $wynx63){$xqwu2d=$this->tolo2e($wynx63,null);$ltpk4c=qplp2($xqwu2d);$urhk60[$xpmg47][base64_decode('UE9MWUdPTg==')][$nnyv4d][base64_decode('bm9fb2ZfcG9pbnRz')]=$ltpk4c;for($fejk4b=0;$fejk4b<$ltpk4c;$fejk4b++){$urhk60[$xpmg47][base64_decode('UE9MWUdPTg==')][$nnyv4d][$fejk4b][base64_decode('eA==')]=$xqwu2d[$fejk4b][0];$urhk60[$xpmg47][base64_decode('UE9MWUdPTg==')][$nnyv4d][$fejk4b][base64_decode('eQ==')]=$xqwu2d[$fejk4b][1];}$nnyv4d++;}return $urhk60;}}?>
Function Calls
None |
Stats
MD5 | cb57d63f4fc9abd6ef2a6cddfd82af6c |
Eval Count | 0 |
Decode Time | 36 ms |