Why is the result of the tool Near different in Modelbuilder?

732
3
Jump to solution
05-13-2020 09:13 AM
RobinRutten2
New Contributor

When I run the tool Near from the analysis toolbox, I get a correct result. When I run the script with the same settings in Arcpy AND in modelbuilder, I end with a total different result. Also, the Near result of modelbuilder is not correct. Can someone tell me what I am doing wrong?

Result Analyses toolbox

Result ModelBuilder

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

by chance are you working with mixed coordinate systems? and/or one of them is in decimal degrees?

Also note, that any environment settings that arcpy "sees" need to be set explicitly in modelbuilder,

My preference is to use projected data to remove that as an issue.


... sort of retired...

View solution in original post

3 Replies
DanPatterson
MVP Esteemed Contributor

by chance are you working with mixed coordinate systems? and/or one of them is in decimal degrees?

Also note, that any environment settings that arcpy "sees" need to be set explicitly in modelbuilder,

My preference is to use projected data to remove that as an issue.


... sort of retired...
RobinRutten2
New Contributor

Thank you Dan. Using projected data helped me to solve my problem!

0 Kudos
DanPatterson
MVP Esteemed Contributor

Robin Rutten‌ perhaps you could mark the correct answer so others can discover the solution


... sort of retired...
0 Kudos