Boa tarde, tenho uma conexão com o postgres no arquivo geral1windowv6.map onde realizo este select :
DATA 'the_geom FROM "schema"."tabela" USING UNIQUE id USING srid=4326'
e gostaria que ele realizasse uma filtragem nos dados como neste select aqui:
DATA "the_geom FROM (select the_geom from schema.tabela where cidade = 'Vitoria' and data = '19-12-2011' and arquivo = 'arquivo1' ) as foo USING UNIQUE id USING srid=4326"
mas ele não retorna nada.
Autor: Thiago Brasil Dutra

1313 comentários
i3GEO.mapa.ativaTema("tab_dados_gps");
var temp = function(){
i3GEO.atualiza();
};
//sql='the_geom FROM (SELECT * FROM "cdd_eixos"."tab_dados_gps" WHERE id > 0) AS foo USING UNIQUE id USING srid=4326'; //este funciona sql = 'the_geom FROM (SELECT * FROM "cdd_eixos"."tab_dados_gps" WHERE cdd = '+ cdd + ' AND data2 = ' + data + ' AND arquivo = ' + arquivo + ' USING UNIQUE id USING srid=4326';
i3GEO.php.alteraData(temp,i3GEO.temaAtivo,sql); }