Hi Hans, and thanks for your reply. I think I have found the solution for my problem. The road lines were MultiLines. I cleaned up the dataset, so that it only consists of single lines, and it seems to work then. But I still dont't quite understand why MultiLines shold give me the result that I got. By the way, I'm using FME 2007 build 4275. Regards, Knut Jetlund
--- In [email protected], Hans van der Maarel <[EMAIL PROTECTED]> wrote: > > Knut, > > > I'm working on a project where I want to find natural reservations and > > other protected areas within a distance (200m) from public roads. I'm > > using a buffer and clipper to identify the part of the areas that lies > > within the given distance. My next step is to calculate the potential > > conflict based on the kind of protected area and the shortest distance > > from the road. To do this, I need to find the distance from the closest > > vertex in the protected area to the road. > > And here's my problem: If I use the NEIGHBOURFINDER with the roads as > > the base and the areas as candidates, the _distance attribute is > > correct (for instance 88m). But if I use the areas as base, and the > > roads as candidates, the _distance attribute gets a totaly different > > value (0.03m), even though it's the same objects that are identified as > > neighbours. > > Of course, I can solve my problem by using the first approach, which > > gives me the correct result. But does anyone have an explanation to why > > I get different ressults? > > That's really odd. I can't reproduce it over here, I set up a basic test > and the distances come out the same. > > Could you check the _angle attributes? There should be a difference of > 180 degrees between them. What about the _closest_base_x and > _closest_base_y attributes vs the _closest_candidate_x and > _closest_candidate_y attributes? They should be the same values, but > swapped. > > What version/build of FME are you using? > -- > Hans van der Maarel > Red Geographics > > Zevenbergsepoort 44b www.redgeographics.com > 4791 AE Klundert [EMAIL PROTECTED] > The Netherlands phone: +31-168-401035 > For insights into what's up at Safe Software and what's on the development horizon, visit Safe's blog at spatial-etl.blogspot.com. Safe Software has also made slides available that outline enhancements planned for FME 2007. The slides are from the "Road Ahead" presentation given on Day 2 of the FME Worldwide Users Conference. To view these slides, visit www.safe.com/2006uc. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/fme/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/
