Spatial index builder should use linked_location_id sample attribute data
Closed this issue · 1 comments
johnvanbreda commented
To reproduce:
- Create a sample attribute with the system function set to linked_location_id (integer).
- Add a control to a recording form so the user can fill in this value, e.g.:
[smpAttr:48]
@control_type=location_autocomplete
@autofillFromLocationTypeId=15
@extraParams={"location_type_id":15}
- Add some records which straddle the boundary of the locations in the layer (in this example 15 is the vice county layer). You are asked to pick which side of the boundary the record lies.
- Now save the records.
- Once the records are spatially indexed, example
cache_samples_functional.location_ids
and you will see that both location IDs have been indexed for each side of the boundary. The expected outcome is that just the one you chose is indexed.
johnvanbreda commented
Fixed in the develop branch.