Commit 0200040cda1961df9246c7642be2da3d44f98e1a
1 parent
ec3427fc
Exists in
master
and in
7 other branches
#249
Showing
2 changed files
with
2 additions
and
55 deletions
Show diff stats
ferramentas/uploaddbf/index.htm
| ... | ... | @@ -1,53 +0,0 @@ |
| 1 | -<html> | |
| 2 | -<head> | |
| 3 | -<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
| 4 | -<link rel="stylesheet" type="text/css" href="../../css/i3geo_ferramentas.css"> | |
| 5 | -<title></title> | |
| 6 | -<style type="text/css" >button{background:url(../../imagens/tic.png) 98% 50% no-repeat;}</style> | |
| 7 | -<link rel="stylesheet" type="text/css" href="../../pacotes/yui270/build/button/assets/skins/sam/button.css"/> | |
| 8 | -<style type="text/css"> | |
| 9 | -body { | |
| 10 | - margin:0; | |
| 11 | - padding:0;border:0px; | |
| 12 | -} | |
| 13 | -</style> | |
| 14 | -</head> | |
| 15 | -<body name="ancora" style="overflow:auto" class="yui-skin-sam"> | |
| 16 | -<div style="top:5px;left:10px;display:block;position:absolute"> | |
| 17 | -<form id=f action="upload.php" method="post" ENCTYPE="multipart/form-data"> | |
| 18 | - <pre style="font-size:12px"> | |
| 19 | -arquivo: <input class=digitar type="file" size=20 name="filedbf"> | |
| 20 | -</pre> | |
| 21 | -<table> | |
| 22 | -<tr> | |
| 23 | - <td>tipo:</td> | |
| 24 | - <td> | |
| 25 | - <select name='tipoarquivo'> | |
| 26 | - <option value='dbf' select >dbf</option> | |
| 27 | - <option value='csvpv' >csv separador ';'</option> | |
| 28 | - <option value='csvv' >csv separador ','</option> | |
| 29 | - </select><br> | |
| 30 | - </td> | |
| 31 | -</tr> | |
| 32 | -<tr> | |
| 33 | - <td>nome coluna x:</td> | |
| 34 | - <td><input class=digitar type="input" size=20 name="nomex"></td> | |
| 35 | -</tr> | |
| 36 | -<tr> | |
| 37 | - <td>nome coluna y:</td> | |
| 38 | - <td><input class=digitar type="input" size=20 name="nomey"></td> | |
| 39 | -</tr> | |
| 40 | -</table> | |
| 41 | -Projeção: | |
| 42 | -<div id=listaepsg style='left:0px;overflow:auto;height:60px'></div> | |
| 43 | -<div onclick='submete()' style='top:10px;left:0px'> | |
| 44 | - <input id=botao1 type="button" value="Carregar" size=12 name="submit" /> | |
| 45 | - <input type="hidden" name="MAX_FILE_SIZE" value="10000" /> | |
| 46 | -</div> | |
| 47 | -</form> | |
| 48 | -</div> | |
| 49 | - | |
| 50 | -<script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script> | |
| 51 | -<script language="JavaScript" type="text/javascript" src="index.js"></script> | |
| 52 | -</body> | |
| 53 | -</html> | |
| 54 | 0 | \ No newline at end of file |
ferramentas/uploaddbf/upload.php
| ... | ... | @@ -126,8 +126,8 @@ if (isset($_FILES['i3GEOuploaddbffile']['name'])) |
| 126 | 126 | $novolayer->setmetadata("ITENSDESC",$its); |
| 127 | 127 | $novolayer->set("template","none.htm"); |
| 128 | 128 | } |
| 129 | - if($epsg != "") | |
| 130 | - {$novolayer->setProjection("init=epsg:".$epsg);} | |
| 129 | + if($uploaddbfEPSG != "") | |
| 130 | + {$novolayer->setProjection("init=epsg:".$uploaddbfEPSG);} | |
| 131 | 131 | $adiciona = ms_newLayerObj($mapa, $novolayer); |
| 132 | 132 | $salvo = $mapa->save($map_file); |
| 133 | 133 | echo "Tema criado!!!"; | ... | ... |