Hi @shanetorrens3,
To Merge Data Excel with Lines ( Spatial Database ) i suggest you to use the transformer FeatureMerger. Into this transformer you configurate the attributes that are merged.
Thanks,
Danilo
Hi @shanetorrens3, like @danilo_inovacao suggested the FeatureMerger can be your friend here provided you have an attribute common to both datasets to merge on.
Thanks for your response, I have used FeatureMerger to join the ExcelSheet and GIS-Roadsegments.
However what I need to do is find out which GIS-RoadSegment (AssetId) the chainage in the Excel Sheet falls on.
Excel Sheet
GIS - RoadSegments
Common Attribute
Road_Id
Road_Id
Attributes
Chainage
eg:1053
AssetId
eg: 1
StartChainage
eg: 425
EndChainage
eg:2051
Hi @shanetorrens3, the InlineQuerier with this SQL Query might help you.
select
a."Road_Id",
a."Chainage",
b."AssetId"
from "ExcelSheet" as a
left outer join "GIS_RoadSegments" as b
on a."Road_Id" = b."Road_Id"
and a."Chainage" between b."StartChainage" and b."EndChainage"
Alternatively, a geometric operation could also be a solution.
- Create points having coordinates ("Chainage", 0) from the ExcelSheet.
- Replace each GIS-RoadSegment with a line connecting between ("StartChainage", 0) and ("EndChainage", 0).
- Use a transformer such as SpatialFilter (Group By: Road_Id) to transfer attributes of a road segment to spatially related points. the SpatialRelater or PointOnLineOverlayer could also be used alternatively.
Thanks for your response, I have used FeatureMerger to join the ExcelSheet and GIS-Roadsegments.
However what I need to do is find out which GIS-RoadSegment (AssetId) the chainage in the Excel Sheet falls on.
Excel Sheet
GIS - RoadSegments
Common Attribute
Road_Id
Road_Id
Attributes
Chainage
eg:1053
AssetId
eg: 1
StartChainage
eg: 425
EndChainage
eg:2051
@shanetorrens3 is there more than one RoadSegment record with the same Road_Id? I think you need to give us a little more detail. Then we should be able to give you a solution