[QGIS-Developer] Locator questions

Andreas Neumann a.neumann at carto.net
Tue Nov 7 11:00:15 PST 2017


Hi Richard,

Thanks for the info. Nyall also suggested your repo to have a look at 
integrating our own search provider.

I think both a blog post and description in the manual would be helpful ;-)

I will try and will ask again if I need some help.

Thanks,

Andreas


On 07.11.2017 15:53, Richard Duivenvoorde wrote:
> On 07-11-17 14:47, Andreas Neumann wrote:
>> Hi,
>>
>> I am starting to explore the new locator widget (the one in the bottom
>> left in the status bar (thanks Nyall!)) and have some questions:
>>
>> My questions are around the feature filter of the active layer, prefixed
>> with "f":
>>
>>    * In what attributes is it actually searching? In any attribute?
>>    * Could I prefix in which attribute I want to search?
>>    * What if I want to search in attributes that have a represent_value
>>      (e.g. a relation reference widget) - meaning I don't want to search
>>      for internal code, but human-readable values stored in another
>>      table? I am specifically refering to the relation reference widget.
>>    * How would I display the result of a non-spatial table? Could we, if
>>      the layer is non-spatial, open the feature form when I click on a
>>      result in the result list?
>>    * Is there somewhere some documentation around how to best use the
>>      locator (in general, not restricted to finding features)? I don't
>>      think that everything is self-explanatory.
>>
>> Thanks for any information around the locator and maybe for some answers
>> to my above questions!
> Hi Andreas,
>
> I've been looking around with it too, by first creating a locator for
> our national geocoder-service (which has a suggest-service):
>
> https://github.com/rduivenvoorde/pdoklocatorplugin
>
> And added a nomatim-search after finding out how easy it was...
>
> See:
> https://github.com/rduivenvoorde/pdoklocatorplugin/blob/master/pdoklocator/plugin.py
>
> That is the minimal stuff you need (I think).
>
> Install http://plugins.qgis.org/plugins/pdoklocator/
>
> It is an experimental/temporary one, I want to remove it later.
>
> I asked Nyall some questions some weeks ago some questions too:
> https://lists.osgeo.org/pipermail/qgis-developer/2017-September/049857.html
> And Nyall's answers:
> https://lists.osgeo.org/pipermail/qgis-developer/2017-October/049905.html
>
> For most questions the answer is:
> yes you can implement what you want :-)
>
> We could/should write a blog about it ...
>
> Regards,
>
> Richard Duivenvoorde
>
>



More information about the QGIS-Developer mailing list