Commit fb45df0fdc1f440c5d955ff86de0622f10755fa2
1 parent
4ca08c4c
Exists in
master
and in
7 other branches
inclusão de DD na ferramenta coordenadas
Showing
1 changed file
with
14 additions
and
1 deletions
Show diff stats
classesjs/classe_coordenadas.js
| @@ -102,6 +102,13 @@ i3GEO.coordenadas = { | @@ -102,6 +102,13 @@ i3GEO.coordenadas = { | ||
| 102 | ativo: true, | 102 | ativo: true, |
| 103 | defepsg: "" | 103 | defepsg: "" |
| 104 | }, | 104 | }, |
| 105 | + "dd":{ | ||
| 106 | + idhtml: "localizarxy", | ||
| 107 | + tipo: "metrica", | ||
| 108 | + titulo: "Déc. de grau", | ||
| 109 | + ativo: true, | ||
| 110 | + defepsg: "" | ||
| 111 | + }, | ||
| 105 | "policonicaSad69":{ | 112 | "policonicaSad69":{ |
| 106 | idhtml: "localizarxy", | 113 | idhtml: "localizarxy", |
| 107 | tipo: "metrica", | 114 | tipo: "metrica", |
| @@ -456,7 +463,13 @@ i3GEO.coordenadas = { | @@ -456,7 +463,13 @@ i3GEO.coordenadas = { | ||
| 456 | return; | 463 | return; |
| 457 | } | 464 | } |
| 458 | } | 465 | } |
| 459 | - p = i3GEO.coordenadas.calculaProj4(i3GEO.coordenadas.defOrigem,destino,x,y); | 466 | + // |
| 467 | + //no caso de dd | ||
| 468 | + // | ||
| 469 | + if(temp.defepsg === "") | ||
| 470 | + {p = {x:x,y:y};} | ||
| 471 | + else | ||
| 472 | + {p = i3GEO.coordenadas.calculaProj4(i3GEO.coordenadas.defOrigem,destino,x,y);} | ||
| 460 | i3GEO.util.defineValor(onde+configProj+"X","value",p.x); | 473 | i3GEO.util.defineValor(onde+configProj+"X","value",p.x); |
| 461 | i3GEO.util.defineValor(onde+configProj+"Y","value",p.y); | 474 | i3GEO.util.defineValor(onde+configProj+"Y","value",p.y); |
| 462 | }, | 475 | }, |