2 Replies Latest reply on May 1, 2012 10:56 AM by gbushek

    migrating arcobject code

    gbushek
      I have some old ArcObject code that i'm migrating and was wondering if there was an easier way now to do this in the REST API's. The user will input a street name and 2 cross street names.  I need to get the geometry of the first street that falls within the 2 cross streets. The original code is quite complex in that it uses ArcObject IPath.QueryPointAndDistance() and IPath.GetSubCurve() and a few other things.  Can't quite decipher why they do this but it was also written like 6-10 years ago so maybe its antiquated code since replaced by newer stuff.  Personally, I would have thought they could have gotten the 2 intersections and just did a spatial intersect with the first street or something but I'm not sure what the thought process was.  If I still need to do something similar woould I need to write a GP service to do this? I know its a shot in the dark but if anyone has any ideas please let me know. Otherwise, i'll just press on.

      thanks, Gary