Results 1 to 2 of 2

Thread: Using pIDentify on Raster File

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2020
    Posts
    1

    Using pIDentify on Raster File

    Hello,

    I am writing a code in VB.NET to identity a point on a Map using ArcMap as my interface. I am encountering the problem of my function ONLY retrieving the point on Map in debugging mode, but when I run in Auto Run(runtime) mode it fails. I am not understanding why this is happening. Any assistance will be much appreciated. Thank you.

    Here is the code:

    'IDENTIFY TOOL: IDENTIFY ON RASTER LAYER (Raster DataSet)
    pPoint = activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(lonx, laty)
    pGeom = pPoint
    pIdentify = CType(pRLayer, IIdentify)

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,807

    Re: Using pIDentify on Raster File

    Quote Originally Posted by ersmarlon View Post
    Hello,

    I am writing a code in VB.NET to identity a point on a Map using ArcMap as my interface. I am encountering the problem of my function ONLY retrieving the point on Map in debugging mode, but when I run in Auto Run(runtime) mode it fails. I am not understanding why this is happening. Any assistance will be much appreciated. Thank you.

    Here is the code:

    'IDENTIFY TOOL: IDENTIFY ON RASTER LAYER (Raster DataSet)
    pPoint = activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(lonx, laty)
    pGeom = pPoint
    pIdentify = CType(pRLayer, IIdentify)
    Hello ersmarlon,

    It looks like more information is needed. Perhaps you could upload your entire project? Here's a link I found https://community.esri.com/thread/32636. Does this help you any further?

    yours,
    Peter Swinkels

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width