Re: [pmapper-users] RES: Attribute search
Brought to you by:
arminburger
From: Thomas R. <tr...@si...> - 2014-09-17 08:45:44
|
Hi, After few search, it already works, but you have to specify 1 entry in search.xml for each layer (and not 1 for the whole group). This could be useful for suggest or options fields or sql_where if the queries are not the same in different layer in the same group... ==> 1 entry for each layer (not group !) you want to search in. ==> Just add the attribut "groupname". Example: <layer type="postgis" name="my_layer_name" groupname="my_group_name"> Hope this helps Thomas Le 22/07/2014 12:03, Thomas RAFFIN a écrit : > Hi, > > My version doesn't works with groups, sorry... > > > Le 17/07/2014 21:38, Thomas RAFFIN a écrit : >> Hi, >> >> I think I've got this code. >> >> I will check it tomorrow. >> >> Le 17/07/2014 19:39, Juliano C. P. Agostinho a écrit : >>> Thank you. >>> >>> I will try implement one search to groups if I have success I will send to >>> you. >>> >>> -----Mensagem original----- >>> De: Armin Burger [mailto:arm...@gm...] >>> Enviada em: quinta-feira, 17 de julho de 2014 14:16 >>> Para: Juliano C. P. Agostinho; pma...@li... >> >>> "pma...@li..." >>> Assunto: Re: [pmapper-users] Attribute search >>> >>> Attribute searches just work on layers, not groups. So in your case you have >>> to decide which of the grouped layers to use for the search. In principal it >>> would be possible to use the same mechanism as for identify (collecting >>> results for layers of a group) but that was never implemented. >>> >>> /a >>> >>> On 07/17/2014 06:37 PM, Juliano C. P. Agostinho wrote: >>>> Hi, >>>> >>>> >>>> >>>> I have one problem, I have 2 SHAPEfiles (point and polygon) and I want >>>> search in both. >>>> >>>> >>>> >>>> Exemple: >>>> >>>> I want search Topdown's city in all SHP's (point and polygon) in same >>> time. >>>> Is there one way? >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> MAPFILE: >>>> >>>> >>>> >>>> LAYER >>>> >>>> NAME "City" >>>> >>>> GROUP CITY >>>> >>>> MAXSCALE 7000 >>>> >>>> TYPE POLYGON >>>> >>>> STATUS OFF >>>> >>>> DATA City_polig.shp" >>>> >>>> CLASS >>>> >>>> NAME " " >>>> >>>> STYLE >>>> >>>> OUTLINECOLOR 128 128 128 >>>> >>>> LINECAP butt >>>> >>>> WIDTH 2 >>>> >>>> PATTERN 5 5 END >>>> >>>> END >>>> >>>> TEMPLATE void >>>> >>>> END >>>> >>>> METADATA >>>> >>>> "DESCRIPTION" "city" >>>> >>>> "RESULT_FIELDS" "NAME" >>>> >>>> "RESULT_HEADERS" "Name" >>>> >>>> "LAYER_ENCODING" "ISO-8859-1" >>>> >>>> "ows_title" "City" >>>> >>>> END >>>> >>>> END >>>> >>>> >>>> >>>> LAYER >>>> >>>> NAME "City" >>>> >>>> GROUP CITY >>>> >>>> MAXSCALE 7000 >>>> >>>> TYPE POINT >>>> >>>> STATUS OFF >>>> >>>> DATA "City_point.shp" >>>> >>>> CLASS >>>> >>>> NAME " " >>>> >>>> STYLE >>>> >>>> SYMBOL "circle1" >>>> >>>> COLOR 128 128 128 >>>> >>>> SIZE 10 >>>> >>>> END >>>> >>>> TEMPLATE void >>>> >>>> END >>>> >>>> METADATA >>>> >>>> "DESCRIPTION" "city" >>>> >>>> "RESULT_FIELDS" "NAME" >>>> >>>> "RESULT_HEADERS" "Name" >>>> >>>> "LAYER_ENCODING" "ISO-8859-1" >>>> >>>> "ows_title" "City" >>>> >>>> END >>>> >>>> END >>>> >>>> >>>> >>>> >>>> >>>> <searchitem name="City" description="City"> >>>> >>>> <layer type="shape" name="City"> >>>> >>>> <field type="s" name="NAME" description="Name:" >>> wildcard="0"> >>>> </field> >>>> >>>> </layer> >>>> >>>> </searchitem> >>>> >>>> >>>> >>>> >>> ---------------------------------------------------------------------------- >>> -- >>>> Want fast and easy access to all the code in your enterprise? Index and >>>> search up to 200,000 lines of code with a free copy of Black Duck >>>> Code Sight - the same software that powers the world's largest code >>>> search on Ohloh, the Black Duck Open Hub! Try it now. >>>> http://p.sf.net/sfu/bds >>>> _______________________________________________ >>>> pmapper-users mailing list >>>> pma...@li... >>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users >>>> >>> ------------------------------------------------------------------------------ >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> pmapper-users mailing list >>> pma...@li... >>> https://lists.sourceforge.net/lists/listinfo/pmapper-users >>> >>> -- Thomas RAFFIN Chef de Projet Internet tr...@si... <mailto:tr...@si...> Sirap <http://sirap.fr> Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex |