Fwd: [mapserver-users] WFS Filter with CGI Controls ?

Mehmet m.sirin07 at googlemail.com
Wed Apr 1 11:29:17 PDT 2009


---------- Forwarded message ----------
From: Mehmet <m.sirin07 at googlemail.com>
Date: 2009/4/1
Subject: Re: [mapserver-users] WFS Filter with CGI Controls ?
To: Yewondwossen Assefa <yassefa at dmsolutions.ca>


hey,

that's an good idea! And it worked for example with EXPRESSION ('[type]' eq
'motorway')
thank you

kind regards
m.sirin

2009/3/31 Yewondwossen Assefa <yassefa at dmsolutions.ca>

Mehmet,
>
>  One possibility would be to use variable substitution I guess: you can
> define your expression in the class with a value that would be replace from
> the url (http://mapserver.org/mapfile/variable_sub.html):
>
>  something like this (not tested)
>   EXPRESSION ("[TYPE]" = "%ms_type%"). You would then set
> my_type=residential in the url.
>
> Best Regards
>
> Mehmet wrote:
>
>> Hi,
>>
>> For example I want to use the Openstreetmap data, more precisely streets.
>> And there are attributes like "name", "type", etc. Now I want to display
>> some features of "type" for instance by choosing "residential". The question
>> is: How to do that via URL and not by employing a client?
>>
>> kind regards
>>
>> 2009/3/30 Yewondwossen Assefa <yassefa at dmsolutions.ca <mailto:
>> yassefa at dmsolutions.ca>>
>>
>>    Hi There,
>>
>>     I am not sure I understand the question properly? Do you mean
>>    getting the schema (attributes) of a layer? If that is the case
>>    there is a DescribeSchema operation on a wfs server.
>>
>>    Best Regards
>>
>>
>>
>>    Mehmet wrote:
>>
>>
>>
>>        Hi, using the wfs_filter in a wms/wfs client works without
>>        problems. But I wonder If can use "wfs_filter" via URL (not for
>>        getting a XML File by GetFeature..that is I'm not meaning
>>        &Filter=<Filter><
>>
>>  PropertyIsGreaterThan><PropertyName>AREA</PropertyName><Literal>100</Literal></PropertyIsGreaterThan></Filter>
>>        ).
>>
>>        It's for showing a dropdown menu in which users can choose what
>>        type of roads they want to display (the geodata comes from
>>        openstreetmap).
>>        Is it possible?
>>
>>
>>
>>
>>        By the way: I just have the Mapserver 4.10 running.
>>
>>
>>
>>        Thank you
>>        M.Sirin
>>
>>
>>
>>  ------------------------------------------------------------------------
>>
>>        _______________________________________________
>>        mapserver-users mailing list
>>        mapserver-users at lists.osgeo.org
>>        <mailto:mapserver-users at lists.osgeo.org>
>>        http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>>    --    ----------------------------------------------------------------
>>    Assefa Yewondwossen
>>    Software Analyst
>>
>>    Email: assefa at dmsolutions.ca <mailto:assefa at dmsolutions.ca>
>>    http://www.dmsolutions.ca/
>>
>>    Phone: (613) 565-5056 (ext 14)
>>    Fax:   (613) 565-0925
>>    ----------------------------------------------------------------
>>
>>
>>
>
> --
> ----------------------------------------------------------------
> Assefa Yewondwossen
> Software Analyst
>
> Email: assefa at dmsolutions.ca
> http://www.dmsolutions.ca/
>
> Phone: (613) 565-5056 (ext 14)
> Fax:   (613) 565-0925
> ----------------------------------------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090401/386de72c/attachment.htm>


More information about the MapServer-users mailing list