Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Distance and Direction holds on to previous coordinate system, bad results #527

Closed
BobBooth opened this issue Feb 27, 2018 · 18 comments
Closed

Comments

@BobBooth
Copy link
Contributor

BobBooth commented Feb 27, 2018

  • If you open ArcMap
  • open Distance and Direction add-in
  • add a basemap (sets the data frame to Web Mercator)
  • change the data frame to WGS84,

the add-in seems to be mis-handling the current coordinate system for line construction.

  • Create a line interactively.
  • Add two points in different hemispheres.
  • The line is labeled plausibly, but the resulting feature is invisible unless you zoom in many times to the center of the label.
    Using the ArcMap measure tool, the distance I got in my test case is 171 meters.
    image

ArcMap 10.6.0.8321
DD 2.2.0.26

@BobBooth
Copy link
Contributor Author

BobBooth commented Feb 27, 2018

@csmoore @kgonzago - I just found this while setting up to do a checklist test for #503
I feel like I've seen this before, but didn't see it in the issues.

@csmoore
Copy link
Member

csmoore commented Feb 27, 2018

@BobBooth - you are correct this is a previous/known issue (with all of the addins) - recorded here: Esri/visibility-addin-dotnet#248 - but a good time to see if there is any progress on this

@BobBooth
Copy link
Contributor Author

@csmoore - thanks, I didn't think to look in Visibility.

@BobBooth
Copy link
Contributor Author

If you set the coordinate system to WGS84 before adding the basemap, the tool works as expected.
image

@lfunkhouser lfunkhouser added this to the APR 2018 Sprint 6 milestone Mar 8, 2018
@lfunkhouser lfunkhouser removed this from the APR 2018 Sprint 6 milestone Mar 28, 2018
@topowright-zz
Copy link
Contributor

We need to understand if this happens with LInes, Circles, Ellipses and Rings.

@topowright-zz topowright-zz added the D-ArcMap Dependency on ArcMAP core team label Apr 13, 2018
@topowright-zz
Copy link
Contributor

topowright-zz commented Aug 29, 2018

This challenge could be related to how we are creating the graphics containers during the interactive selection. I think that we are placing the spatial reference on these points during that initial graphics creation. If we can update this spatial reference when the map changes it could be the fix.

Steps to replicate:
Open a new ArcMap session
Add a basemap (Web Aux Sphere is the projection)
Create a line using interactive
Change the dataframe coordinate system to GCS 1984
Draw another line
Result
Graphics do not show up on the map if the element is saved to a database object (feature class or shape file it is created successfully)

Possible Solution
When the spatial reference is created the graphics container that we are creating needs to be deleted and a new container needs to be created to allow the graphics to be drawn correctly.

@topowright-zz
Copy link
Contributor

@saip I am able to replicate this issue with ArcMap 10.7 and ArcMap 10.6.1

@topowright-zz
Copy link
Contributor

Currently multiple users are not able to replicate this issue. @lfunkhouser can you take a closer 👀

@BobBooth
Copy link
Contributor Author

BobBooth commented Jan 9, 2019

This appears to be working correctly now. Tested switching between Web Mercator and WGS84 Geographic, was able to draw lines, circles, ellipses in ArcMap 10.3.1 with the 1/7/19 build of Military Tools.

Tested on 10.6.0 (with the 1/7/19 build of Military Tools) and the problem still exists.
Repro steps:

  1. Open ArcMap (10.6).
  2. Open Distance and Direction (from recent build of Military Tools).
  3. Add a basemap to ArcMap. Dataframe will be set to Web Mercator.
  4. Draw some lines from Points, interactively.
    image.png
  5. Open the Data Frame Properties and switch to WGS84.
    image.png
  6. Draw some more lines. Notice that the feedback line appears, but there is no apparent output.
    However, a green dot and label will appear off the coast of Africa (at 0,0).
    image.png

This also affects the Circle, Ellipse, and Rings tabs.

@lfunkhouser
Copy link
Member

Add workaround documentation for 10.5.1-10.6.1 for this release. Issue will be addressed for next release.

@BobBooth
Copy link
Contributor Author

Added workaround sentence to DD and MT Resources doc.

@BobBooth
Copy link
Contributor Author

Moving from In Progress to March release backlog, because the work-around instructions have been added to the doc for January release. We will look at fixing the actual problem in 10.5.1+ in the March release.

@csmoore
Copy link
Member

csmoore commented Jul 31, 2019

This issue is resolved with the released addin on 10.7.1.

This issue was similar to Esri/visibility-addin-dotnet#327 ,
Esri/visibility-addin-dotnet#327 (comment) but no changes were needed to the D&D addin.

Note: from 10.5.1-10.7 - this is a know SDK issue: Esri/arcobjects-sdk-community-samples#7

@dfoll
Copy link
Collaborator

dfoll commented Aug 2, 2019

Reviewed what versions do and do not work. And updated the known issue accordingly

ArcMap Version Military Tools Version Reproducible
10.4.1 3.5/317 no
10.5 3.5/317 no
10.5.1 3.5/317 yes
10.6 3.5/317 yes
10.6.1 3.5/317 yes
10.7 3.5/317 yes
10.7.1 3.5/317 no

@dfoll
Copy link
Collaborator

dfoll commented Aug 2, 2019

Ready to qc the doc and move to done

@csmoore csmoore self-assigned this Aug 2, 2019
@csmoore
Copy link
Member

csmoore commented Aug 2, 2019

Doc verified (D&D 105, MT 329) :

  1. Distance and Direction October Resources

image

  1. D&D pdf:

image

  1. Military Tools October Resources

image

  1. MT pdf:

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants