Rouzaud (2013) has a done this and published an example of a custom
identification map tool:
http://3nids.wordpress.com/2013/02/14/identify-feature-on-map/
Btw: The solution I proposed is only able to work with features on a
single layer. For multiple layer you would have to implement your own
dialog.
Matthias
On Mon 10 Feb 2014 03:11:05 PM CET, Gino Pirelli wrote:
QgsMapTool is available in PyQGIS:
http://www.qgis.org/en/docs/pyqgis_developer_cookbook/canvas.html#writing-custom-map-tools
On 10 February 2014 14:49, Josua S <[email protected]
<mailto:[email protected]>> wrote:
Hello Matthias
Thank you very much for your quick answer! I have a question left:
Is it possible to inherit the identify maptool and use it only
using Python? Or does this have to be done in C++?
Josua
----------------------------------------
> Date: Mon, 10 Feb 2014 14:39:59 +0100
> From: [email protected] <mailto:[email protected]>
> To: [email protected] <mailto:[email protected]>
> CC: [email protected]
<mailto:[email protected]>
> Subject: Re: [Qgis-developer] Custom "Identify Results" Window
>
> Hi Josua,
>
> I don't think the possibility is available OOTB yet, but it
should be
> straightforward to create your own maptool which inherits from the
> identify maptool and uses a QgsDualView with a request (or filter)
> limiting the available features to only the relevant feature
ids. This
> should get you a list of all features and their form when selected.
>
> Would be nice to be see this in core as well in the future.
>
> Best
> Matthias
>
> On Mon 10 Feb 2014 02:29:37 PM CET, Josua S wrote:
>> Hello
>>
>> I am working on a QGIS Plugin with a touch-optimized GUI. So it
is actually very useful to be able to create custom feature forms.
However if I use the Identify tool and there are two or more
features near together, QGIS does not show my feature form but a
"Identify Results" window containing all the features nearby. So
my question is: Is there a possibility to create a custom
"Identify Results" window with Python if there are several
features? Or is there a setting to change its behavior? Thank you
very much for your help.
>>
>> Josua
>> _______________________________________________
>> Qgis-developer mailing list
>> [email protected]
<mailto:[email protected]>
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
_______________________________________________
Qgis-developer mailing list
[email protected] <mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer