Hola Jose!

I believe that variables in the Mapfile are limited to a couple of options:
- In CONNECTION
- IN DATA (as you use it)
- In EXPRESSION when you use classes (I use it there a lot)
- Mapserver Has to be CGI

Is the link something like: http://www.yourserver.com/cgi-bin/maserv?map=x&var=5000&...&;... ? Than it should work If all above is ok.

As described here:
http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub

Kind regards,

Milo van der Linden
www.3dsite.nl



Jose Gregorio Campos schreef:
I have a problem with the Substitution of Variable in MAPSERVER %var%
Tengo problema con la Sustitucion de Variable en MAPSERVER %var%

DATA "the_geom from (SELECT * FROM parcelas WHERE gid > '%var%') as foo using srid=32619 using unique gid"

I execute and the IMAGE as LINK Broken
Ejecuto y queda la IMAGEN como ENLACE (LINK) Roto

Change to prove
Cambio para probar

DATA "the_geom from (SELECT * FROM parcelas WHERE gid > 5000) as foo using srid=32619 using unique gid"

and everything is well
y todo resulta bien

THAT I MUST REVIEW
QUE DEBO REVISAR

Thanks and excuse my English badly
Gracias y disculpen mi mal Ingles
------------------------------------------------------------------------

_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users


--


        

Milo van der Linden
skype: milovanderlinden <skype:milovanderlinden?add>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.3dsite.nl

                

De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted.

_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to