Thomas RAFFIN wrote:
>
> Hi, try
>
> $mylayer->setfilter($wdata);
>
> the documentation for mapscript is here:
> http://mapserver.org/mapscript/index.html#mapscript
>
> Thomas
>
>
Thanks it works!
I had to read the documentation!
thank you very much
-
Salvatore Larosa
GPG
I have solved!
i changed:
$wdata = 'aree ="' .$_COOKIE['nome_visitatore'].'"';
wiht
$wdata= "the_geom FROM (select * from bacini where aree =
'".$_COOKIE['nome_visitatore']."') as foo using unique gid";
-
Salvatore Larosa
GPG: 0xE504BBE2 (FP: D9B2 CA87 81CD 1B91 E24D 3B42 D0F7 FA01 E50
Hi, try
$mylayer->setfilter($wdata);
the documentation for mapscript is here:
http://mapserver.org/mapscript/index.html#mapscript
Thomas
Salvator*eL*arosa a écrit :
>
> Ernesto Barrera wrote:
>
>>
>> Hi Salvatore,
>>
>> This is not exactly the same case but it might help
>>
>> My "MAPF
Ernesto Barrera wrote:
>
>
>
> Hi Salvatore,
>
> This is not exactly the same case but it might help
>
> My "MAPFILE" has a raster layer named 'landuse':
>
> LAYER
> NAME landuse
> TYPE RASTER
> DATA "file01.tif"
> END
>
> and I was interested in giving the user the cap
In 30 seconds, just an idea...
If you are PHP developer, you should try to replace all lines that
contain "ms_newMapObj" in pmapper by:
- open the specified mapfile
- search an replace all "$x" with "$_SESSION['x']"
- save file temporary
- load this one.
Or maybe look at the "ms_newMapOb
Thomas RAFFIN wrote:
>
> I agree with Armin.
>
> If you want to do this with pmapper, it needs to re-write the msMap
> object loading and parse those variable to replace them.
>
>
>
HOW CAN I TO DO THIS?
WHAT FILES SHOULD CHANGE?
THANKS!
-
Salvatore Larosa
GPG: 0xE504BBE2 (
I agree with Armin.
If you want to do this with pmapper, it needs to re-write the msMap
object loading and parse those variable to replace them.
Armin Burger a écrit :
> On 14/05/2009 13:07, Salvator*eL*arosa wrote:
>
>> Can I put a variable in the mapfile?
>>
>>
>
> If you use Mapserver
On 14/05/2009 13:07, Salvator*eL*arosa wrote:
> Can I put a variable in the mapfile?
>
If you use Mapserver as CGI: yes, if you use Mapserver as Mapscript: no
at least this is how I understand it.
> For example:
> the keyword "DATA" in the mapfile can insert a variable "$ user" as follows:
>