Commit 09da8a8197ad3e8ccd1ca5dd1a307f8aa4e0549a
1 parent
14aa6dc3
Exists in
master
and in
7 other branches
Rotina para adaptar os mapfiles restaurados do banco de dados para substituir AN…
…NOTATION (depreciado no Mapserver 7) por POINT
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
classesphp/funcoes_gerais.php
... | ... | @@ -2826,7 +2826,10 @@ function restauraMapaAdmin($id_mapa,$dir_tmp){ |
2826 | 2826 | //verifica se existem parametros junto com o registro |
2827 | 2827 | $registro = explode(",",$registro); |
2828 | 2828 | $mapfile = $registro[0]; |
2829 | - $s = fwrite($baseh,base64_decode($mapfile)); | |
2829 | + //adapta para versoes novas do mapserver | |
2830 | + $mapfile = base64_decode($mapfile); | |
2831 | + $mapfile = str_replace("TYPE ANNOTATION","TYPE POINT",$mapfile); | |
2832 | + $s = fwrite($baseh,$mapfile); | |
2830 | 2833 | fclose($baseh); |
2831 | 2834 | } |
2832 | 2835 | $dbh = null; | ... | ... |