esri / distance-direction-addin-dotnet Goto Github PK
View Code? Open in Web Editor NEWAdd-in provides the ability to easily and quickly create geodesy lines, circles, ellipses and range rings.
License: Apache License 2.0
Add-in provides the ability to easily and quickly create geodesy lines, circles, ellipses and range rings.
License: Apache License 2.0
From @mcalamito
When a distance of "8" is typed in the input box, it automatically adds the ".00"
Recommendation is to populate the input field with user input only. Do not auto-populate with ".00" after input.
From @lfunkhouser on March 9, 2016 17:6
transferring labels to another repo
Copied from original issue: ArcGIS/solutions-desktop-templates#247
When manually inputting world Mercator coordinates, an invalid coordinate error is displayed, after entering a valid World Mercator coordinate.
This repo is 'private' so very few people have access to it, can it be shared in the same manner as coordinate conversion? https://github.com/Esri/coordinate-conversion-addin-dotnet
The center point could dynamically update as the user moves the cursor when Diameter is selected in the drop down. This will prevent the Center Point location to display a different location than the user initially selected and could be confusing.
Feedback from @mcalamito
Shown by the "2" in the screenshot, add labels:
Type: Geodesic
Start: [coord]
End: [coord]
Distance: [dist]
Bearing: [bear]
I like how there is an Axis bracket that compacts the Major and Minor. If this design is staying, we should also create an Orientation bracket as the Angle and Unit both apply to the Orientation.
Is there any way to remove the overwrite existing feature class warning message that pops up when creating a NEW feature class? It is a bit misleading.
Enhancement: Add choice of units Nautical Miles. Important for user base.
We should have a add-in description
Currently, I can only create ellipses by interacting directly on the map. As a user, I need to be able to input the proper parameters (center point, major and minor axis, and orientation).
For manual entry using Circle tool, input UTM coordinates of 42S 271512 3674322
For radius, input value of 120,000abcdef.00 - need to be input one character at a time. A circle is drawn with radius of 120,000
If you "Clear Graphics" after the above, the graphic is cleared and Center Point and Radius are reset. If you cut & paste the above radius, and then select 'Clear Graphics', the Center Point and Radius values are not reset.
All Circle, Ellipse, and Ring graphics and feature layers (using the Save As button) are creating polylines as their geometries. These geometries must be of type polygon.
Saving graphics as features (shapefile, feature class, and KML) is crucial, but so is saving the attributes that correspond to these features. The user will be inputting information into the Distance and Direction form or drawing on the map interactively. These values must be present in the attribute table when the graphic is saved to a feature or the user will not have values associated with each feature.
For any input field that has a unit, the corresponding Column/Field header name in the attribute will end with "_x" where x = the unit in which defines the input field.
The following columns and values should be included when writing graphics to features:
Lines: Start_Pt, End Pt, Dist_x, Angle_x - where x is the unit the user chose from the unit dropdown.
Circle: Center_Pt, Radius_x OR Diameter_x - depending on if the user chose Radius or Diameter
Ellipse: Center_Pt, Minor_x, Major_x, Orient_x - where x is the unit the user chose from the unit dropdown.
Rings: Center_Pt, Rings, Dist_x, Radials - where x is the unit the user chose from the unit dropdown.
These are only suggested column names and I welcome any discussion.
The Ellipse form is significantly larger than all other forms. A re-arrangement on the Ellipse form will reduce the size. Suggestions include having the label be on the same line as the text box. The user will not be inputting very large numerical values that take up an entire line for input.
Minor Axis - text box
Major Axis - text box
Orientation Angle - text box
Orientation Unit - drop down
Decrease the size of the drop-down menus - indicated by the "1" in the screenshot
This enhancement request was from @mcalamito
Feedback from @mcalamito
Lower the "Clear Graphics" button (See "5" in screenshot) and make proper distance between that and the future "Submit" or "OK" button that will be used to create feature layer.
As using a tool in ArcMap, the escape key should cancel the current operation
Circle - Diameter and Radius producing same size circle with interactive input with Map Point Tool
Set Create Circle From: Radius, click on the "four corners", drag a radius to the "O" in Mexico label.
Now switch to Set Create Circle From: Diameter , click "four corners", drag a diameter to the "O" in Mexico label. Both circles will be the same size, shouldn't the diameter be half the size of radius?
From @mcalamito
Switch the text to read "Distance and Bearing" - this is how it is listen in the input form
Center Point coordinates should match what the user has selected in Data Frame properties.
When I dock the Coordinate Tool window, a scroll bar appears to enable me to scroll down to my output coordinates. If I dock my Geodesy window, I have to expand the window in order to see all of the parameters on each tab. This takes up real estate and space in my data frame. Implementing a scroll bar would be a huge asset.
To keep consistency, all other tabs (Lines, Circle, and Range) have a tool tip for the Map Point Tool.
Feedback from @mcalamito
See "4" in the screenshot as an example. The "D" in degrees should be capitalized to maintain consistency.
From @mcalamito
If I switch between From: Points and From: Bearing and Distance, the Clear Graphic button should remain the same size and not change to the size of the "From:" drop-down.
Currently, the Clear Graphics and Save As buttons are permanently enabled. I can click Save As and create an empty shapefile or feature class. The Clear Graphics and Save As buttons should only be enabled when the proper information is entered or available. They should be disabled otherwise.
Not sure how this should work exactly but it should work differently than it currently does. If the user is in the middle of an operation and they select the Clear Graphics button, it currently draws the graphic but continues to accept the next button click to draw the actual graphic and then removes the previous graphic. The Clear Graphics button could possibly cancel the entire operation.
Circles are drawn incorrectly when Kilometers is selected in the dropdown.
The diameter distance is not calculating and plotting properly.
Feedback from @mcalamito
Indicated by the "3" in the screenshot, Add Tool Tip to button. i.e. "Map Point Tool" or "Interact with Map"
Interactive Ring creation should be ended with double click, rather than (or in addition to) a second click on the Map Point Tool on the Distance and Direction tool.
This behavior would be more consistent with the ArcMap Draw graphics capability for shapes that require multiple clicks to create, and are completed with a double click (i.e line, polygon).
Draw an ellipse graphic. Go to Line tool and select Clear Graphics. Ellipse graphic is not removed.
We still want to rename the repo to match the tool name updates? From geodesy-and-range-addin-dotnet to distance-direction-addin-dotnet?
From @mcalamito
If the input "8.00" is deleted entirely and a new number is typed, such as "89", the number will be 8900.00
There is a huge lag in this typing as well as it is graphically draing a line 8900km
Note, in the screenshot, you can notice the cursor bar after the "89"
Fixing #18 may fix this issue
The user is creating rings based on ranges.
The other tabs are labeled based on what the user creates (i.e. lines, circle, ellipse).
I've got two topics from reviewing the Create a Circle using the Distance Calculator section of the README.md:
As it reads now:
Create a Circle using the Distance Calculator
1. Choose the Circles tab on the Geodesy and Range Tool
2. Start an interactive session by selecting the arrow icon
3. Enter a starting point and the distance of the circles radius by clicking on the map
4. Expand the Distance Calculator section
5. Enter a time
6. Enter a rate
7. Press Enter key and the graphic will be drawn on the map
Create a Circle using the Distance Calculator
1. Choose the Circles tab on the Geodesy and Range Tool
2. Expand the Distance Calculator section
3. Start an interactive session by selecting the arrow icon (**Map Point Tool**)
4. Enter a **Center Point** by clicking on the map
5. Enter a **Time** and unit
6. Enter a **Rate** and unit
7. Press Enter key and the graphic will be drawn on the map
Or ask the user to use the Map Point tool to draw the center point, it will then rubberband with the cursor as it moves, but then expand the Distance Calculator section, which will stop the rubber banding but still keep the centerpoint.
Create a Circle using the Distance Calculator
1. Choose the Circles tab on the Geodesy and Range Tool
2. Start an interactive session by selecting the arrow icon (**Map Point Tool**)
3. Enter a **Center Point** by clicking on the map (a rubber band will follow the cursor at this point)
4. Expand the Distance Calculator section
5. Enter a **Time** and unit
6. Enter a **Rate** and unit
7. Press Enter key and the graphic will be drawn on the map
From @mcalamito
If the user has input information in the Lines tab and begins drawing, a warning should be displayed prompting them that loss of data will occur if the tab is switched to Circles.
Center Point: [coord]
Number of Rings: [num]
Distance: [dist]
Number of Radials: [num]
From @mcalamito
If the "From:" option is switched, the original graphic should be cleared.
This should follow similar suit for when the user switches tabs from Line to Circle.
If I begin to draw a graphic using "From: Points" and then switch to "From: Bearing and Distance", two graphics are now displayed on the screen.
Example is trying to calculate distance traveled in 28 minutes at 60 nautical miles per hour. Initially have Time: 28 Minutes and Rate: 60 Nautical Mile, and have used Map Point tool to set center. The Radius shows 1680 metes. Then change the units on time from Minutes to Hours (28 goes to 0.466666), Radius does not update. In both cases the radius should be 51781.92 meters or 27.9 Nautical Miles.
The initial center point preview plots in the correct location. However, after entering in a diameter distance, the center point shifts and is no longer in the original location.
Testing the Range tab while writing up the solutions pages for creating range rings with the Add-in. When I add a number for the radials (I'm assuming as there are no dialog labels for the input boxes yet) I'm getting an incorrect number.
If I type 4, I get 8.
If I type 8, I get 16.
If I type 0, I get 0.
If I type 1, I get 2.
If I type 3, I get 6.
I expected that If I type 3, I would get 3, and that they would be about 120 degrees apart. If I type 4 I would get 4 and they would be 90 degrees apart.
Select the Center Point on the map. When selecting the radius / diameter, there is a vertical line that flickers from the center point
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.