Spatial searching

In the map options, you can activate and configure the address search bar, based on external web services (nominatim, google or french IGN). See Map options . Additionally, you can add spatial searching capability to Lizmap. This means you will allow the users to search within spatial data, such as countries, points of interests, etc. You have two ways to add searching capability in Lizmap:

  • For QGIS 2 and QGIS 3, you can create a table or view lizmap_search in your PostgreSQL database to store the search data for all your Lizmap projects.

  • For QGIS 2 only, you can use the plugin QuickFinder to configure a data search per QGIS project.

QuickFinder Plugin

Aviso

This is for QGIS 2 only. This plugin has not been ported to QGIS 3.

O objetivo deste plugin é proporcionar uma pesquisa rápida entre grandes conjuntos de dados, pesquisando dentro de um ficheiro qtfs gerado através do QGIS Desktop.

Pré-requisitos

  • You must have install at least the 7.x version of PHP in your Lizmap server.

Configuration

Dentro do QGIS

  • install QuickFinder Plugin, for QGIS 2 only

  • choose a layer(s), define the fields to search among, pick the geometry storage format (WKT or Extent) and store Full Text Searchs (FTS) vector into a file database (.qfts). The filename must be identical to the QGIS project filename. Ex: myproject.qfts for a QGIS project stored as myproject.qgs.

Aviso

Apenas funcionam os formatos WKT ou Extent para armazenamento das geometrias, uma vez que o formato binário (WKB) não pode ser descodificado pelo LWC.

Inside LWC:

  • colocar o ficheiro da base de dados na pasta onde se encontra o projeto QGIS, utilizar a ferramenta de pesquisa (pesquisar) e fazer zoom para o elemento escolhido.