Esri / distance-direction-addin-dotnet

Add-in provides the ability to easily and quickly create geodesy lines, circles, ellipses and range rings.
Apache License 2.0
17 stars 22 forks source link

BUG-000120038 The Military Tools Distance and Direction tool does not work in a .mxd file if it contains data projected to British National Grid. #666

Closed lfunkhouser closed 5 years ago

lfunkhouser commented 5 years ago
Salesforce ID: BUG-000120038
Salesforce Submitter: Margaret Maher
Salesforce Submit Date: 2/12/2019 3:37 AM
Salesforce Bug Type: Failure/Error
Salesforce Severity: Medium
Repro Data: \\esri.com\sf_filestore\PRD\Attachments\Defects\BUG-000120038
Work Around: (n/a)
Product: ArcGIS for Desktop
Functional Category: ArcGIS for Defense
Client Platform: (n/a)
Version Found: 10.6.1
Planned Version Fixed: (n/a)
Comment: (n/a)
BobBooth commented 5 years ago

It looks as though most of the DD tools do work - the exception seems to be Lines with the Distance and Direction construction method, when the data frame contains (not just set to) BNG data: British_National_Grid WKID: 27700 Authority: EPSG Projection: Transverse_Mercator False_Easting: 400000.0 False_Northing: -100000.0 Central_Meridian: -2.0 Scale_Factor: 0.9996012717 Latitude_Of_Origin: 49.0 Linear Unit: Meter (1.0)

Name: GCS_OSGB_1936 Angular Unit: Degree (0.0174532925199433) Prime Meridian: Greenwich (0.0)

Datum: D_OSGB_1936

Spheroid: Airy_1830 Semimajor Axis: 6377563.396 Semiminor Axis: 6356256.909237285 Inverse Flattening: 299.3249646

dfoll commented 5 years ago

copied from BUG-000120038

Synopsis:

The Military Tools Distance and Direction tool does not work in a .mxd file if it contains data projected to British National Grid.

Steps to Repro:

  1. Open "Copy_of_ESRI Sample Map.mpk", which contains several layers of data, including one layer, OS_Open_Raster basemap, which is projected to British National Grid (BNG). In the Distance and Direction dialog, attempt to create a line. This will not work, with the raster projected to BND in the map document.

  2. Open "ESRI Sample map remove openraster.mpk" from which the OS_Open_Raster basemap has been removed. Using the Distance and Direction dialog, you will find that you can create lines all over the map, and save to a shapefile or geodatabase feature class.

  3. Open "ESRI Sampe map add BNG layer.mpk" which contains a vector layer gb_counties_BNG.shp.

Again, with data in the map projected to British National Grid, a Distance and Direction line cannot be created. I added this vector data, to confirm that the problem was with the British National Grid coordinate system, and not the raster basemap.

DD_issue666_sample_data.zip

dfoll commented 5 years ago

@CTLocalGovTeam is having some issues repro-ing this issue. it is requested that our team confirm it can be reproduced.

dfoll commented 5 years ago

As written I could not repro this by explicitly following the steps. We have seen a known limitation in the past when dealing with graphics and changing the data frame coordinate system on versions 10.5.1- 10.7. If there are some other implied steps for this repro case that were not explicitly stated, this is likely related/the same issue.

If the problem is meant to be reproducible with the explicit steps given above, the ArcGIS for Defense team will need more information to fix this.

Internal issues where this core limitation manifested itself: Visibility #327 Distance and Direction #527

dfoll commented 5 years ago

I will be reaching out to Margaret to get more info

dfoll commented 5 years ago

I reached out to Margaret and she vaguely remembered working on this issue, but did not recall specifics. We could not repro together. the only case we could repro was when we changed the coordinate system of the data and encountered this core issue. I zipped up a map package that is saved in British National Grid, showing that if you don't have to change the data frame (all the examples given start in Web Mercator) the issue is not reproducible.

I think this should be closed as non-reproducible.

Updated_DD_issue_sample_data.zip