Skip to main content
Tweeted twitter.com/StackGIS/status/1454916093626232834
added 1 character in body; edited tags; edited title
Source Link
Taras
  • 34k
  • 4
  • 73
  • 148

NULL values from overlaywithinwhen using overlay_within function of field calculatorin Field Calculator

I have two layers, a point layer and a polyonpolygon layer ('Sektorplan'). The polygon layer attribute table has a Sektor"Sektor" column ('1','2', ...).

The Goal

I want to add a new column (sector"Sector") to the attribute table of the point layer to indicate in which sector the point is located.

Tried so far

I used overlay_within('Sektorplan', Sektor) in the field calculator of the point layer.

The Problem

The resulting column only shows NULL. Using Using a virtual fieldVirtual Field or not does not make any difference. The The preview of the field calculator shows up correct (['1']).

Pictures say more than a thousand words

The table of the polygon layer

field calculator

resulting point layer table

Anyone knows what causes this? My search-fu failed me.

NULL values from overlaywithin function of field calculator

I have two layers, a point layer and a polyon layer ('Sektorplan'). The polygon layer attribute table has a Sektor column ('1','2', ...).

The Goal

I want to add a new column (sector) to the attribute table of the point layer to indicate in which sector the point is located.

Tried so far

I used overlay_within('Sektorplan', Sektor) in the field calculator of the point layer.

The Problem

The resulting column only shows NULL. Using a virtual field or not does not make any difference. The preview of the field calculator shows up correct (['1']).

Pictures say more than a thousand words

The table of the polygon layer

field calculator

resulting point layer table

Anyone knows what causes this? My search-fu failed me.

NULL values when using overlay_within function in Field Calculator

I have two layers, a point layer and a polygon layer ('Sektorplan'). The polygon layer attribute table has a "Sektor" column ('1','2', ...).

The Goal

I want to add a new column ("Sector") to the attribute table of the point layer to indicate in which sector the point is located.

Tried so far

I used overlay_within('Sektorplan', Sektor) in the field calculator of the point layer.

The Problem

The resulting column only shows NULL. Using a Virtual Field or not does not make any difference. The preview of the field calculator shows up correct (['1']).

Pictures say more than a thousand words

The table of the polygon layer

field calculator

resulting point layer table

Anyone knows what causes this? My search-fu failed me.

added 4 characters in body; edited tags
Source Link
Kadir Şahbaz
  • 78k
  • 57
  • 257
  • 404

I have two layers, a point layer and a polyon layer ('Sektorplan''Sektorplan'). The polygon layer attribute table has a 'Sektor'Sektor column ('1','2', ...).

The Goal

I want to add a new column ('sector'sector) to the attribute table of the point layer to indicate in which sector the point is located.

Tried so far

I used overlay_within('Sektorplan', Sektor) in the field calculator of the point layer.

The Problem

The resulting column only shows NULL. Using a virtual field or not does not make any difference. The preview of the field calculator shows up correct (['1']).

Pictures say more than a thousand words

The table of the polygon layer

field calculator

resulting point layer table

Anyone knowknows what causes this? My search-fu failed me.

I have two layers, a point layer and a polyon layer ('Sektorplan'). The polygon layer attribute table has a 'Sektor' column ('1','2', ...).

The Goal

I want to add a new column ('sector') to the attribute table of the point layer to indicate in which sector the point is located.

Tried so far

I used overlay_within('Sektorplan',Sektor) in the field calculator of the point layer.

The Problem

The resulting column only shows NULL. Using a virtual field or not does not make any difference. The preview of the field calculator shows up correct (['1']).

Pictures say more than a thousand words

The table of the polygon layer

field calculator

resulting point layer table

Anyone know what causes this? My search-fu failed me.

I have two layers, a point layer and a polyon layer ('Sektorplan'). The polygon layer attribute table has a Sektor column ('1','2', ...).

The Goal

I want to add a new column (sector) to the attribute table of the point layer to indicate in which sector the point is located.

Tried so far

I used overlay_within('Sektorplan', Sektor) in the field calculator of the point layer.

The Problem

The resulting column only shows NULL. Using a virtual field or not does not make any difference. The preview of the field calculator shows up correct (['1']).

Pictures say more than a thousand words

The table of the polygon layer

field calculator

resulting point layer table

Anyone knows what causes this? My search-fu failed me.

Source Link

NULL values from overlaywithin function of field calculator

I have two layers, a point layer and a polyon layer ('Sektorplan'). The polygon layer attribute table has a 'Sektor' column ('1','2', ...).

The Goal

I want to add a new column ('sector') to the attribute table of the point layer to indicate in which sector the point is located.

Tried so far

I used overlay_within('Sektorplan',Sektor) in the field calculator of the point layer.

The Problem

The resulting column only shows NULL. Using a virtual field or not does not make any difference. The preview of the field calculator shows up correct (['1']).

Pictures say more than a thousand words

The table of the polygon layer

field calculator

resulting point layer table

Anyone know what causes this? My search-fu failed me.