[Qgis-user] Filling field with data

Pat Brown mistyhaven at gmail.com
Mon Sep 23 16:24:41 PDT 2013


Thanks Andreas,
   I used a crude but effective workaround by selecting the polygon and
then the points in the polygon and then doing a simple {case when
"Variable" is NULL then 'String' else "Variable" end} for each polygon (I
only had nine so it wasn't too much of a strain) and it worked fine.

Cheers,

Pat


On 23 September 2013 22:24, Andreas Neumann <a.neumann at carto.net> wrote:

> Hi Pat,
>
> The "Vector" --> "Data management tools" --> "Join attributes by
> location" will also join attributes from the polygon layer - of course,
> depending on the spatial join, it will have to aggregate the data like
> you also have to in SQL if you have a 1:n relation - but you can also
> choose to use the attributes of the first hit.
>
> Other than that I do not think the field calculator allows to reference
> data from other layers.
>
> In QGIS 2.1 we will work on database relations. Although spatial joins
> are not the primary goal of this work, we may work on these as well.
>
> Hope this helps.
>
> Andreas
>
> Am 23.09.2013 19:41, schrieb Pat Brown:
> > Hi,
> >    I have a polygon layer and a point layer. Using "Points in Polygons" I
> > have isolated a set of points that occur in one particular polygon. This
> > polygon has a name in the polygon Attribute Table. I have created a field
> > in the point table and now I want to read from the polygon table the name
> > of the polygon and write it into the point table against each of the
> points
> > in the selection. I cannot work out the syntax in the calculator to read
> > from one table and write to another table. Can anyone help please?
> >
> > Pat
> >
> >
> >
> > _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> >
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130924/1ab60a23/attachment.html>


More information about the Qgis-user mailing list