[Qgis-developer] Domains

Maurício de Paulo mauricio.dev at gmail.com
Fri Sep 18 07:43:24 EDT 2009


Hi list,
I was asked about QGIS and field domains and I began to search for some
answers. As far as I could see, QGIS have domain support and one can set
these domains. Is there a way to set QGIS to search the domains from a table
or file? (like doing a join in a domain table).
The purpose of this is that ESRI PGeo comes with the gdb_codeddomains inside
it's own dataset, and one could read these data and set as comboboxes in
qgis. When talking about SpatiaLite, Postgis and Shapefiles, we could use
domain tables to allow the user to set the attributes from these lists
rather than setting numbers like 0, 1, 2.
I was thinking about writing a plugin to read the parameters from a
nonspatial table and set the domains using QgsVectorLayer::setEditType *
ValueMap*, but I think it's an odd approach for this problem.
Does anyone have experience with this and can shead a light on how it would
be easier to the user to see these domains? The main difference from PGeo is
that we don't have a fixed domain table so I think it should be flexible
enough to read the domains from tables from any dataset qgis suport.
Maurício de Paulo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20090918/9cd77fde/attachment.html


More information about the Qgis-developer mailing list