[mapserver-users] [Fwd: A Question]

Daniel Morissette morissette@dmsolutions.ca
Fri, 11 Oct 2002 10:36:57 -0400


This is a multi-part message in MIME format.
--------------E2386627DDDDB67D3F98DAAB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

 
--------------E2386627DDDDB67D3F98DAAB
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline

Received: from xcalibur.dmsolutions.ca (www2.dmsolutions.on.ca [209.217.116.146])
	by in3.magma.ca (Magma's Mail Server) with ESMTP id g9BEXrmQ005886
	for <morisset@magma.ca>; Fri, 11 Oct 2002 10:33:53 -0400 (EDT)
Received: from adsl.netbank.com.br (adsl.netbank.com.br [200.203.199.86])
	by xcalibur.dmsolutions.ca (8.11.2/8.11.2) with SMTP id g9BEXpt16223
	for <morissette@dmsolutions.ca>; Fri, 11 Oct 2002 10:33:52 -0400
Received: (qmail 9549 invoked from network); 11 Oct 2002 14:38:11 -0000
Received: from 4-096.ctame700-2.telepar.net.br (HELO ecosconsult.com.br) (200.193.153.96)
  by adsl.netbank.com.br with SMTP; 11 Oct 2002 14:38:11 -0000
Message-ID: <3DA6E204.8050603@ecosconsult.com.br>
Date: Fri, 11 Oct 2002 11:36:52 -0300
From: "ajimenez@ecosconsult.com.br" <ajimenez@ecosconsult.com.br>
Reply-To: ajimenez@ecosconsult.com.br
Organization: EcosConsult
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: morissette@dmsolutions.ca
Subject: A Question
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Mozilla-Status2: 00000000

Hello.
I write you i other times, now a have e litter problem, i try to set a 
layer filter by php  code , when a call a setfilter function this work 
fine but when de call to map->draw method execute a get e error, this 
only happend when de filter condition to the layer is put, my data is in 
PostGIS data base, here is fragment of my code

//Set layer filter
$Layer->gpoMap->getlayerbyname("lotes");
$Layer->setFilter("area_lote <  $value");

//later
..................

$gpoMap->draw();


I get the error:

*Warning*: MapServer Error in msPOSTGISLayerWhichShapes(): prep_DB:Error 
executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it 
failed too). in 
*/usr/local/apache/htdocs/centroPG/htdocs/ecosigdemo.php3* on line *646*

*Fatal error*: Call to a member function on a non-object in 
*/usr/local/apache/htdocs/centroPG/htdocs/ecosigdemo.php3* on line *648*

I am do a test, i set the same filter in mapfile layer definition

LAYER
..........
FILTER""area_lote <  500"

..........
this work fine.


what are wrong?

Sorry my english.

Best regards.

-- 
Lic. Amaury Jiménez Marrero
EcosConsult.
R. Mons. Ivo Zanlorenzi 847 cj.4
Curitiba. PR.
Brasil.
80.740-590
Telef: ++55-41-3391461



--------------E2386627DDDDB67D3F98DAAB--