<div dir="auto">Já tentou:<div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">DATA "geom from (select * from limites.car_cpf WHERE cod_cpf_ca = 'cpfp') as foo using unique id using srid=4674"</span><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qui, 17 de out de 2019 11:39, Wirchen Lamas <<a href="mailto:fewirchen@gmail.com">fewirchen@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div>
        
        

<p style="margin-bottom:0cm;line-height:100%;background:transparent"> Por gentileza, Edmar e demais do fórum,</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">É um select em um
mapfile acessando Postgis, não consigo descobrir a sintaxe:</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">Este funciona:</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">DATA "geom from
(select * from ambiente.queim2014 WHERE data >= di) as foo using
unique gid using srid=4326"</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">"PLUGINI3GEO"    '{"plugin":"parametrossql","parametros":[{"titulo"
: "Data inicial","chave" : "di","tipo"
: "input","valores" : "aaaammdd","prog"
: ""}]}'</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">Este não funciona:</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">DATA "geom from
(select * from limites.car_cpf WHERE cod_cpf_ca = cpfp) as foo using
unique id using srid=4674"</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">"PLUGINI3GEO"    '{"plugin":"parametrossql","parametros":[{"titulo"
: "CPF","chave" : "cpfp","tipo"
: "input","valores" : "xxxxxxxxxxx","prog"
: ""}]}'</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">A diferença é que
o primeiro é número e o segundo é string:</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">select * from
ambiente.queim2014 WHERE data >= 20140801</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">select * from
limites.car_cpf WHERE cod_cpf_ca = ‘12345678901’</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent"><br>

</p></div></div>
_______________________________________________<br>
i3geo mailing list<br>
<a href="mailto:i3geo@lists.osgeo.org" target="_blank" rel="noreferrer">i3geo@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/i3geo" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/i3geo</a></blockquote></div>