diff --git a/classesphp/proxy.php b/classesphp/proxy.php
index 22d2aaa..ae06979 100644
--- a/classesphp/proxy.php
+++ b/classesphp/proxy.php
@@ -21,8 +21,14 @@ if(isset($i3geo_proxy_server) && $i3geo_proxy_server != ""){
$resultado = curl_exec($ch);
if($_GET["tipoRetornoProxy"] == "string"){
echo '"'.$resultado.'"';
+ exit;
}
-else{
- echo $resultado;
+
+if($_GET["tipoRetornoProxy"] == "json"){
+ $r = array($resultado);
+ //echo json_encode(str_replace(array("\n","\r","\t"),"",$r));
+ echo json_encode($r);
+ exit;
}
+echo $resultado;
?>
\ No newline at end of file
diff --git a/ferramentas/editorol/editorol.js b/ferramentas/editorol/editorol.js
index e5d9abd..09cd4b7 100755
--- a/ferramentas/editorol/editorol.js
+++ b/ferramentas/editorol/editorol.js
@@ -748,15 +748,15 @@ i3GEO.editorOL =
}
},
captura : function(x,y,tema) {
- var d = 0.1,
+ var d = 0.1,
layer = i3geoOL.getLayersByName(tema)[0],
xy = [x,y],
u = layer.getSource().getUrls()[0],
poligono, retorno;
-
+
u += "&REQUEST=getfeature&service=wfs&version=1.0.0";
u += "&OUTPUTFORMAT=gml2&typename=undefined";
-
+
// remove parametros nao desejados
if (i3GEO.Interface.openlayers.googleLike === true) {
u += "&SRS=EPSG:3857";
@@ -790,11 +790,26 @@ i3GEO.editorOL =
"&filter=Geometry" + poligono
+ "";
retorno = function(r){
+ //FIXME nao funciona
//parser gml
+ var f,c,format;
+ /*
+ format = new ol.format.GML2({
+ featurePrefix: "ms",
+ geometryName : "msGeometry",
+ featureNS : "http://mapserver.gis.umn.edu/mapserver"
+ });
+ */
+ //console.info(r[0])
+ format = new ol.format.GML2();
+ f = format.readFeatures(r[0]);
+ //console.info(f);
+ c = i3GEO.desenho.layergrafico.getSource();
+ c.addFeature(f);
};
u = i3GEO.configura.locaplic + "/classesphp/proxy.php?"
+ u
- + "&tipoRetornoProxy=string";
+ + "&tipoRetornoProxy=json";
cpJSON.call(u, "foo", retorno, "");
},
salvaGeometrias : function() {
@@ -1085,7 +1100,7 @@ i3GEO.editorOL =
fill: new ol.style.Fill({
color: 'rgba(' + i3GEO.editorOL.simbologia.fillColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')'
})
- })
+ })
);
evt.feature.setId(i3GEO.util.uid());
i3GEO.desenho.layergrafico.getSource().addFeature(evt.feature);
@@ -1170,7 +1185,7 @@ i3GEO.editorOL =
fill: new ol.style.Fill({
color: 'rgba(' + i3GEO.editorOL.simbologia.fillColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')'
})
- })
+ })
);
evt.feature.setId(i3GEO.util.uid());
i3GEO.desenho.layergrafico.getSource().addFeature(evt.feature);
@@ -1407,7 +1422,7 @@ i3GEO.editorOL =
temp.onclick = function(){
i3GEO.editorOL.listaGeometrias();
};
- i3GEOpanelEditor.appendChild(temp);
+ i3GEOpanelEditor.appendChild(temp);
}
//TODO abrir em uma janela flutuante interna
if (botoes.ajuda === true) {
@@ -1538,7 +1553,7 @@ i3GEO.editorOL =
/*
if (botoes.salva === true) {
-
+
button = new OpenLayers.Control.Button({
displayClass : "editorOLsalva",
trigger : function() {
@@ -1549,11 +1564,11 @@ i3GEO.editorOL =
});
controles.push(button);
adiciona = true;
-
+
}
if (botoes.identifica === true) {
//TODO incluir codigo ol3
-
+
botaoIdentifica =
new OpenLayers.Control.WMSGetFeatureInfo(
{
@@ -1630,7 +1645,7 @@ i3GEO.editorOL =
// button.events.register("getfeatureinfo", this, showInfo);
controles.push(botaoIdentifica);
adiciona = true;
-
+
}
*/
@@ -1850,7 +1865,7 @@ i3GEO.editorOL =
+ '
| | '
+ ' '
+ ''
-
+
+ '
'
+ 'Divide intersecção ao digitalizar
'
+ ''
@@ -2127,8 +2142,8 @@ i3GEO.editorOL =
uniaojts : function(geoms) {
var n = geoms.length,
fwkt = new ol.format.WKT(),
- rwkt = new jsts.io.WKTReader(),
- wwkt = new jsts.io.WKTWriter(),
+ rwkt = new jsts.io.WKTReader(),
+ wwkt = new jsts.io.WKTWriter(),
g, i, uniao;
if (n > 1) {
uniao = fwkt.writeFeatures([geoms[0]]);
diff --git a/ferramentas/melhorcaminho/index.js b/ferramentas/melhorcaminho/index.js
index 7615f89..becbd9c 100644
--- a/ferramentas/melhorcaminho/index.js
+++ b/ferramentas/melhorcaminho/index.js
@@ -369,7 +369,7 @@ i3GEOF.melhorcaminho = {
executa: function(){
if(i3GEOF.melhorcaminho.aguarde.visibility === "visible")
{return;}
- var raster = "",ptax,ptbx,ptby,ptby,pta,ptb,lut=[],lutObjs,n,i;
+ var raster = "",ptax,ptbx,ptby,pta,ptb,lut=[],lutObjs,n,i;
//pega tema com raster
if($i("i3GEOmelhorcaminhoRaster")){
raster = $i("i3GEOmelhorcaminhoRaster").value;
diff --git a/ferramentas/melhorcaminho/index.php b/ferramentas/melhorcaminho/index.php
index c6da6ad..65dc300 100755
--- a/ferramentas/melhorcaminho/index.php
+++ b/ferramentas/melhorcaminho/index.php
@@ -1,18 +1,18 @@
-
+
Twitter
-
+
-
+
-
+
diff --git a/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/models/Result.js b/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/models/Result.js
index 04a85fb..92b6e2c 100755
--- a/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/models/Result.js
+++ b/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/models/Result.js
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2012 OSBI Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
/**
* Holds the resultset for a query, and notifies plugins when resultset updated
*/
@@ -21,12 +21,12 @@ var Result = Backbone.Model.extend({
result: null,
firstRun: false,
-
+
initialize: function(args, options) {
// Keep reference to query
this.query = options.query;
},
-
+
parse: function(response) {
// Show the UI if hidden
$(this.workspace).unblock();
@@ -43,11 +43,11 @@ var Result = Backbone.Model.extend({
hasRun: function() {
return this.firstRun;
},
-
- lastresult: function () {
+
+ lastresult: function() {
return this.result;
},
-
+
url: function() {
return encodeURI(this.query.url() + "/result/" + this.query.get('formatter'));
}
--
libgit2 0.21.2