jkuoppam

Creating a GP service to create lines from points

Discussion created by jkuoppam on Mar 13, 2012
Latest reply on Apr 17, 2012 by jkuoppam
Hi,

I'm trying to accomplish the following:
- the end user should be able to select at least 2 points in the JS web client
- the JS web client would submit the selected points to a geoprocessing service
- the GP service would generate a line feature using PointsToLine tool
- the line feature would be visible to the end user in the JS web client

What I've tried is the following:
[ATTACH=CONFIG]12638[/ATTACH]

It works when it's placed in a file geodatabase and run in ArcMap. Publishing it into ArcGIS for Server 10.1 Prerelease and running it from there finishes succesfully/without errors, but doesn't append the new line feature into the target dataset (ChainCandidates). Instead, it adds a new item into the TOC in ArcMap, called Model [numbers]-> Target. That one doesn't contain the new line feature either, only the older ones.

What am I missing here? I've tried toggling Model Parameters (P), different data types and other settings, but can't get it right. Any suggestions?

Or is my approach flawed - how would you accomplish the things listed above?

Attachments

Outcomes