Hi Thx for the replies, they were very helpful, especially the Full Precision view. Seems like sometimes my lines are a little bit shifted.
As Hans said the buffer is giving me the result I want, but it also includes lines that are not intersecting my path but are running very close to it. So I created a very small buffer (0.0001 degrees) around my path and used this in the base port of the spatialfilter, as candidates I still use the bigger buffer with the complete road topology (at least the part I cut out). This gives me the desired result. Many thanks, Klaas Ardinois Ontrack Navigation Biebuycklaan 28 B-9050 Gent Belgiƫ Tel.: +32 479 60 37 04 E-mail: [EMAIL PROTECTED] Web: http://www.ontracknavigation.com -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of mark2atsafe Sent: woensdag 14 december 2005 20:58 To: [email protected] Subject: [fme] Re: Spatial relator question Hi What you are doing sounds correct (and very ingenious). I tried a very small example dataset of my own and it seemed to work correctly. You don't really say where the problem is so it's difficult to diagnose. In general... Make sure you don't have a group-by set on the SpatialFilter. Don't get confused between the SpatialFilter and SpatialRelator. If data does pass the filter check in Viewer to see what the _predicate attribute reports. It will tell you what sort of matches you are getting. Switch the base/candidate inputs on the transformer. I find that the logic of which one should pass/match is a little confusing. Again check the _predicate values after this to see what passed and why. You also might try... Chopping the data with a Chopper to a max of 2 vertices per line Snapping (use the AnchoredSnapper) in case the road sections don't exactly overlay the track - FME is very exacting in its matching. Use View->Options->Display Full Precision in the Viewer to check exactly what FME is basing its calculations on. Hope this helps, Mark Mark Ireland, Product Support Engineer Safe Software Inc. Surrey, BC, CANADA [EMAIL PROTECTED] http://www.safe.com Solutions for Spatial Data Translation, Distribution and Access --- In [email protected], "Klaas Ardinois" <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I have a full set of 8 shapefiles containing a road network and a mapinfo > TAB that contains a track I created (half of it is based on the road network > other half is completely off road, the track consists of multiple short > lines that are connected). > > What I would like to do is have an output (for now in the visualizer) that > shows me my path and the first few meters of roads that are connected > directly to my path. > > To do this I set up a workbench where I take my track through a Bufferer. > The output of this bufferer is then directed to the clipper port of a > clipper. On the clippee port is my set of shape files. > > The Inside and clipped_inside ports of the clipper are then directed to the > candidate port of a spatialfilter. On the base port of this filter is my > original track. > > In the spatialfilter I select multiple bases, no bounding box (with bounding > box didn't really improve the result), pass against one base and pass > criteria is everything except disjoint. > > Any suggestions? > > > > Thanks in advance, > > > > > > Klaas Ardinois > > > > Ontrack Navigation > > Biebuycklaan 28 > > B-9050 Gent > > Belgiƫ > > Tel.: +32 479 60 37 04 > > E-mail: [EMAIL PROTECTED] > > Web: http://www.ontracknavigation.com > Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team. Visit www.safe.com/services for details. Yahoo! Groups Links Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team. Visit www.safe.com/services for details. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
