Esri / visibility-addin-dotnet

ArcGIS Add-in provides the capability to quickly do line of sight analyses.
Apache License 2.0
14 stars 19 forks source link

Changing the map projection after being set to a non projected coordinate system causes failure #304

Open topowright-zz opened 6 years ago

topowright-zz commented 6 years ago

Background

Currently the gp tools that we use for the addin can conduct line of sight (LLOS) and Viewshed (RLOS) using the data connected to this issue that is projected in WGS 1984 Web Mercator Auxiliary Sphere. This same data does not produce good results when running from the Visibility add-in.

Current State

Enviorment

Currently installed ICAP, which can be found here: http://solutions.arcgis.com/defense/help/icap/

note: this does not happen without ICAP installed.

If a user has a data set that has set the projection of the map then the user does not have the ability to change the data frame to a projected coordinate system that matches the input elevation to allow Visibility to run RLOS or LLOS.

Initial try

  1. Open All Source Project
  2. Add ElevationUTM_Zone10 dataset
  3. Run RLOS Result will be an error that the spatial reference of the layer does not match the data frame

Second try

  1. Right click the map and select properties
  2. Change the dataframe spatial reference to the reference of the elevation dataset.
  3. Clear the graphics on the add-in and run the RLOS again

User should get results, instead they are given the following issue: image

All test data can be found in the box folder shared previously.

topowright-zz commented 5 years ago

@lfunkhouser , @nfeuerstein received feedback from @CTLocalGovTeam today and they said that they are experiencing the bug when ICAP is installed, but not when it is not installed. They are going to look into the issue further to see what could be the challenge. This was tested on ArcGIS Pro 2.2.

dfoll commented 5 years ago

Sai called me about this early today. I think we need to talk clearly about this issue if we want it to be addressed.

Now the important part

From my conversation with @saip I got the impression that this is something wrong with ICAP and/or core code and is something @CTLocalGovTeam could best address if we first work with core/ICAP and figure out exactly what the problem is.

@saip please correct me if I misspoke

jmccausland commented 5 years ago

I'm unable to reproduce this. ArcGIS Pro 2.3 build 14072 Visibility (pulled master) ICAP (pulled dev)

image

Dbarnes1 commented 5 years ago

I'm able to reproduce this, ArcGIS Pro 2.3 build 14229, Military Tools 3.2, ICAP 2.0 beta Build 580. I mistakenly opened up a duplicate issue here:https://github.com/Esri/military-tools-desktop-addins/issues/77