I created a simple model that includes a near geoprocessing tool with a point feature layer as an input and a line feature layer as a near feature and it works perfectly in desktop. Now I would like to publish it to my server as a geoprocessing service to be able to consume it using javascript API and use feature layers as parameters. I know that the geoprocessing services in this case only accepts featuresets rather than feature layers as inputs but in my case I need to use the feature layers that are published in my server. How can I modify my model to successfully publish the service? and how should I set my inputs?


1 Answer 1


Haven't tested this, but you can use the Copy Features tool to make a feature class from a feature layer.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.