Commit 1b352a169f8871eff852f9a599da6f045c9626f3
1 parent
445da017
Exists in
master
and in
7 other branches
ampliado o tempo de conexão
Showing
1 changed file
with
14 additions
and
1 deletions
Show diff stats
classesphp/classe_analise.php
... | ... | @@ -134,6 +134,7 @@ Include: |
134 | 134 | */ |
135 | 135 | function analiseDistriPt($locaplic,$dir_tmp,$R_path,$numclasses,$tipo,$cori,$corf,$tmpurl,$sigma="",$limitepontos="TRUE",$tema2="") |
136 | 136 | { |
137 | + set_time_limit(180); | |
137 | 138 | // |
138 | 139 | //pega os dados do tema dois para as funções que o utilizam |
139 | 140 | // |
... | ... | @@ -240,6 +241,7 @@ $locaplic - Onde fica o I3Geo. |
240 | 241 | */ |
241 | 242 | function mapaRelatorioAnaliseDist($arqpt,$dimx,$dimy,$dir_tmp,$R_path,$locaplic) |
242 | 243 | { |
244 | + set_time_limit(180); | |
243 | 245 | $nomedir = dirname($arqpt)."/"; |
244 | 246 | $rcode[] = 'dadosx<-scan("'.$arqpt.'x")'; |
245 | 247 | $rcode[] = 'dadosy<-scan("'.$arqpt.'y")'; |
... | ... | @@ -875,6 +877,7 @@ $locaplic - Localização do I3geo. |
875 | 877 | */ |
876 | 878 | function pontoEmPoligono($temaPt,$temasPo,$locaplic) |
877 | 879 | { |
880 | + set_time_limit(180); | |
878 | 881 | if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) |
879 | 882 | include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); |
880 | 883 | else |
... | ... | @@ -1018,7 +1021,7 @@ itemdestino - nome do item na tabela de atributos do tema de origem que será acr |
1018 | 1021 | */ |
1019 | 1022 | function distanciaptpt($temaorigem,$temadestino,$temaoverlay,$locaplic,$itemorigem,$itemdestino) |
1020 | 1023 | { |
1021 | - //error_reporting(E_ALL); | |
1024 | + set_time_limit(180); | |
1022 | 1025 | //para manipular dbf |
1023 | 1026 | if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) |
1024 | 1027 | include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); |
... | ... | @@ -1145,6 +1148,7 @@ nome do layer criado com o buffer. |
1145 | 1148 | */ |
1146 | 1149 | function criaBuffer($distancia,$locaplic,$unir="nao") |
1147 | 1150 | { |
1151 | + set_time_limit(180); | |
1148 | 1152 | //para manipular dbf |
1149 | 1153 | if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) |
1150 | 1154 | include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); |
... | ... | @@ -1203,6 +1207,7 @@ nome do layer criado com o buffer. |
1203 | 1207 | $items = pegaItens($this->layer); |
1204 | 1208 | // cria o dbf |
1205 | 1209 | $def = array(); |
1210 | + $def[] = array("i3geo","C","254"); | |
1206 | 1211 | foreach ($items as $ni) |
1207 | 1212 | {$def[] = array($ni,"C","254");} |
1208 | 1213 | $db = xbase_create($nomeshp.".dbf", $def); |
... | ... | @@ -1210,6 +1215,7 @@ nome do layer criado com o buffer. |
1210 | 1215 | $dbname = $nomeshp.".dbf"; |
1211 | 1216 | for($i = 0;$i < count($buffers);++$i) |
1212 | 1217 | { |
1218 | + $reg[] = $i; | |
1213 | 1219 | foreach ($items as $ni) |
1214 | 1220 | {$reg[] = $shapes[$i]->values[$ni];} |
1215 | 1221 | $novoshpf->addShape($buffers[$i]); |
... | ... | @@ -1251,6 +1257,7 @@ $locaplic - Localização do I3geo. |
1251 | 1257 | */ |
1252 | 1258 | function criaCentroide($locaplic) |
1253 | 1259 | { |
1260 | + set_time_limit(180); | |
1254 | 1261 | //para manipular dbf |
1255 | 1262 | if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) |
1256 | 1263 | include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); |
... | ... | @@ -1342,6 +1349,7 @@ $npty - Número de pontos em Y (opcional) |
1342 | 1349 | */ |
1343 | 1350 | function gradeDePontos($xdd,$ydd,$px,$py,$locaplic,$nptx,$npty) |
1344 | 1351 | { |
1352 | + set_time_limit(180); | |
1345 | 1353 | //para manipular dbf |
1346 | 1354 | if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) |
1347 | 1355 | include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); |
... | ... | @@ -1453,6 +1461,7 @@ $npty - Número de pontos em Y (opcional) |
1453 | 1461 | */ |
1454 | 1462 | function gradeDePol($xdd,$ydd,$px,$py,$locaplic,$nptx,$npty) |
1455 | 1463 | { |
1464 | + set_time_limit(180); | |
1456 | 1465 | //para manipular dbf |
1457 | 1466 | if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) |
1458 | 1467 | include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); |
... | ... | @@ -1590,6 +1599,7 @@ $npty - Número de pontos em Y (opcional) |
1590 | 1599 | */ |
1591 | 1600 | function gradeDeHex($xdd,$ydd,$px,$py,$locaplic,$nptx,$npty) |
1592 | 1601 | { |
1602 | + set_time_limit(180); | |
1593 | 1603 | //para manipular dbf |
1594 | 1604 | if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) |
1595 | 1605 | include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); |
... | ... | @@ -1730,6 +1740,7 @@ $locaplic - Localização do I3geo |
1730 | 1740 | */ |
1731 | 1741 | function nptPol($temaPt,$temaPo,$locaplic) |
1732 | 1742 | { |
1743 | + set_time_limit(180); | |
1733 | 1744 | //para manipular dbf |
1734 | 1745 | if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) |
1735 | 1746 | include_once($this->locaplic."/pacotes/phpxbase/api_conversion.php"); |
... | ... | @@ -1785,6 +1796,7 @@ Salva o mapa acrescentando um novo layer com o resultado. |
1785 | 1796 | */ |
1786 | 1797 | function agrupaElementos($item,$locaplic) |
1787 | 1798 | { |
1799 | + set_time_limit(180); | |
1788 | 1800 | //para manipular dbf |
1789 | 1801 | if(!isset($item)){$item="";} |
1790 | 1802 | if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) |
... | ... | @@ -1897,6 +1909,7 @@ $locaplic - Localização do I3geo |
1897 | 1909 | */ |
1898 | 1910 | function dissolvePoligono($item,$locaplic) |
1899 | 1911 | { |
1912 | + set_time_limit(180); | |
1900 | 1913 | //para manipular dbf |
1901 | 1914 | if(!isset($item)){$item="";} |
1902 | 1915 | if(file_exists($this->locaplic."/pacotes/phpxbase/api_conversion.php")) | ... | ... |