1

I have a model that runs spatial joins in a lines to points relationship and then adds and calculates fields to that join. The parameters are one to one and intersecting at 1 foot. The search distance is so low because the points are already snapped to the lines. During my initial test run, the spatial joins worked fine in the model, but I realize that the difference here is that I was working in a local environment. This time, I am required to run the model using inputs from a network drive. Could this be my issue? Or am I missing something really obvious here? The spatial join is on a dataset of at least 20,000 lines, so it should be taking around 20 minutes to complete. IN this new model, the operation is done in mere seconds, so I know its not doing what its suppose to be doing.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Mar 16, 2016 at 14:34
4
  • Is it creating any output? Do the input layers have common coordinate systems? Commented Mar 16, 2016 at 15:54
  • I have verified the projections and the GCS. Also, there is no output whatsoever being created even though the workspace and layer name are all correct. Yet, the model is saying that it ran successfully. Here is the weird thing: When running the model in model builder in edit mode, the outputs generate and are added to ArcMap. Commented Mar 16, 2016 at 16:17
  • So you say when model builder is open the model runs as expected? Was is the alternative you are running this model, as a tool from toolbox or from a script? Are you putting the same datasets in to the model when you run it this other way? Are there selections or does model logic expect a selection to exist? Commented Mar 18, 2016 at 10:06
  • Yes when in edit mode, the operation will write to the output location and add the result to the map display. But, when running as a tool with input parameters (like every other tool in the ArcToolbox) it does not write a new dataset to an output location. This model is part 2 of a custom toolbox and depends on the results from the first model. However, after checking and rechecking, changing the input feature class (as a parameter) does not affect the results of the model (when performed in edit mode). Commented Mar 21, 2016 at 14:24

1 Answer 1

2

This question has been resolved. In order to generate an output for spatial join, the output dataset has to be set as a parameter and the workspace of the model tool must match the workspace of the map document. If they match, the output is generated and added to ArcMap TOC upon completion of the model.

answered Mar 22, 2016 at 15:21

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.