0

Within ArcMap, I have a road sement layer. I can add a point feature, and get the closest road segment by using near_analysis tool. enter image description here

I want to do it through an ArcGIS service. Based on a given point(lan, lon), I can get the closest road segment through an Restful API.

I publish my model, my road segment and the static point feature to my local ArcGIS server. Also, I can get the closest road segment id through an Restful API, but I cannot change the point feature dynamically. enter image description here

  • I think what is happening is your taxi layer is being published a static feature layer. So every time the geoprocessing service is called it is using the same point. Try turning the taxi feature layer into a model parameter. Then when you call the service you can pass it a new point feature layer. – Dowlers Jul 14 '17 at 21:33
  • how to turn the point feature into model parameters like x and y coordinates? @Dowlers – dongx Jul 24 '17 at 2:39
  • right click on the Taxi input and select Model Parameter. – Dowlers Jul 31 '17 at 18:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.