Re: [MapServer-users] Content of WMS based on attribute
Hi, The standard WMS way would be to use SLD or SLD_BODY with a filter https://mapserver.org/ogc/sld.html. -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Marcin Niemyjski via MapServer-users Lähetetty: perjantai 19. elokuuta 2022 15.31 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [MapServer-users] Content of WMS based on attribute Hello, I am wondering if it is possible to modify the GetMap request so that it displays elements of the Postgresql database based on the value of their attributes, e.g., having a set of polygons representing fields by writing crop = sunflower in the GetMap request, the polygons representing that crop will be returned. Thanks, Marcin ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MapServer-users] Content of WMS based on attribute
You can also use Dimensions: https://mapserver.org/ogc/wms_dimension.html#enabling-dimension-support-in-mapserver Which is supported outside vendor specific parameters. Dimensions can be e.g. a codelist of values (text), and not just time or elevation dimension. Dimensions will be reflected in GetCapabilities-document, so you can build your user interface on top of that. -Bjørn Ove Jörg Thomsen (WhereGroup): > Hello Marcin, > > no problem, you can achieve this with vendor specific parameters and > run-time-substitution: > https://mapserver.org/cgi/runsub.html > > Jörg > > > > > > Am 19.08.22 um 14:30 schrieb Marcin Niemyjski via MapServer-users: > > Hello, > > > > I am wondering if it is possible to modify the GetMap request so that it > > displays elements of the Postgresql database based on the value of their > > attributes, e.g., having a set of polygons representing fields by > > writing crop = sunflower in the GetMap request, the polygons > > representing that crop will be returned. > > > > Thanks, > > Marcin > > > > > > ___ > > MapServer-users mailing list > > MapServer-users@lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Viele Grüße, > Jörg Thomsen > > - > Aufwind durch Wissen! > Jetzt neu: Web-Seminare und Online-Schulungen > bei der www.foss-academy.com > - > > Jörg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Tel: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11 > > joerg.thom...@wheregroup.com > www.wheregroup.com > > Geschäftsführer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > --- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > ___ > MapServer-users mailing list > MapServer-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MapServer-users] Content of WMS based on attribute
Hello Marcin, no problem, you can achieve this with vendor specific parameters and run-time-substitution: https://mapserver.org/cgi/runsub.html Jörg Am 19.08.22 um 14:30 schrieb Marcin Niemyjski via MapServer-users: Hello, I am wondering if it is possible to modify the GetMap request so that it displays elements of the Postgresql database based on the value of their attributes, e.g., having a set of polygons representing fields by writing crop = sunflower in the GetMap request, the polygons representing that crop will be returned. Thanks, Marcin ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users -- Viele Grüße, Jörg Thomsen - Aufwind durch Wissen! Jetzt neu: Web-Seminare und Online-Schulungen bei der www.foss-academy.com - Jörg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Tel: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thom...@wheregroup.com www.wheregroup.com Geschäftsführer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 --- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
[MapServer-users] Content of WMS based on attribute
Hello, I am wondering if it is possible to modify the GetMap request so that it displays elements of the Postgresql database based on the value of their attributes, e.g., having a set of polygons representing fields by writing crop = sunflower in the GetMap request, the polygons representing that crop will be returned. Thanks, Marcin ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users